What should I write in the command window for this input of the function?
Show older comments
Hi All,
Basically, I was given this function by my teacher:
function[stability,lds]=lds_cal(state,hs,fs,time,n_neighbours, plot)
and there is more explainantion of the funtion after this line. I've already insert all the value for the input of this function in the command window such as state, hs, time, fs,n_neighbours. But the problem is I dont know what to write for the "plot" input in the command window.
8 Comments
Mehmed Saad
on 6 Apr 2020
It may be a plot flag i.e. if true means they want plot (figure) of some input param like time against n_neighbours etc
Tommy
on 6 Apr 2020
Can you provide the body of the function?
redroses
on 6 Apr 2020
Tommy
on 6 Apr 2020
Looks like Muhammad was right! Specify plotje as 1 or true if you want a plot to show, as 0 or false if not.
"I also dont know how to plot the code inside my function.."
I apologize, I'm not quite sure what you mean.
redroses
on 6 Apr 2020
Tommy
on 6 Apr 2020
It means when you execute
lds_cal(arg1,arg2,arg3,arg4,arg5,arg6)
it will display a plot when arg6 evaluates to true.
redroses
on 6 Apr 2020
redroses
on 6 Apr 2020
Accepted Answer
More Answers (0)
Categories
Find more on 2-D and 3-D Plots 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!