How can I turn this pseudo code into a Matlab code?

5 views (last 30 days)
S
S on 12 Feb 2015
Commented: dpb on 12 Feb 2015
I want to make a for loop that describes this but I am unsure how to start. I am making a function with the input X.
Pseudo code:
If X is not given,
look for the object 'Hfig4' and extract the data saved under the 'userdata' field.
How can I turn this into matlab code?
  1 Comment
dpb
dpb on 12 Feb 2015
What have you tried???
doc nargin
doc findobj
Doesn't seem to be any need for any for loop; an if...end clause, perhaps.

Sign in to comment.

Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!