Index error: must be logical or positive integer.
Mostra commenti meno recenti
T=10:2:60;
f=-1:length(T)+1;
total=-1;
i=f+total;
et=3.5e-4;
dn1=1e-9:100e-9;
if i==0
r=0;
else
% r=(et+((dn1(i+1)-dn1(i))))./((dn1(i)-(dn1(i-1)))+et); upwind and lower
% wind
r=(et+((dn1(i+1)-dn1(i))))./((dn1(i)-(dn1(i-1)))+et);
end
1 Commento
DGM
il 21 Feb 2023
Is i a positive integer or logical value?
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Vehicle Dynamics Blockset in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!