1

I have a value where I stock every toolbox of Matlab : toolboxAvailable = ver;

I would like to make an array of every values Name of every structs contained in toolboxAvailable.

I know I could iterate with a loop to get every values from every structs but I would like to know if there is a one line call that I could use.

4
  • What does {toolboxAvailable.Name} return? Commented Jul 23, 2013 at 13:46
  • It returns the name of every toolbox but as ans Commented Jul 23, 2013 at 13:46
  • 1
    Similar to stackoverflow.com/questions/17808996/… and stackoverflow.com/questions/17811746/… Commented Jul 23, 2013 at 13:48
  • The first link is not similar but the second is quite similar but harder to find. Thanks! Commented Jul 23, 2013 at 13:52

1 Answer 1

5

You can turn the output into a cell array with

{toolboxAvailable.Name}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.