What should I write in the command window for this input of the function?
Afficher commentaires plus anciens
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 commentaires
Mehmed Saad
le 6 Avr 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
le 6 Avr 2020
Can you provide the body of the function?
redroses
le 6 Avr 2020
Tommy
le 6 Avr 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
le 6 Avr 2020
Tommy
le 6 Avr 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
le 6 Avr 2020
redroses
le 6 Avr 2020
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Programming dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!