How to fix this error
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Matthew Backert
il 23 Feb 2018
Modificato: James Tursa
il 23 Feb 2018
I need some help fixing this error, I assume it's in the way I call the function. Any help would be much obliged.
0 Commenti
Risposta accettata
James Tursa
il 23 Feb 2018
Modificato: James Tursa
il 23 Feb 2018
You need to save the output of fun into specific elements of T, P, and D. E.g.,
h=0:1:105;
for k=1:numel(h)
[T(k),P(k),D(k)]=fun(h(k));
end
And account for an h input of 0 in your fun.m code:
if(0<=h && h<=11) % <-- changed 0<h to 0<=h
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Clocks and Timers in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!