What should be modified inside the for loop?
Mostra commenti meno recenti
For each value of f_x_loop, I need x_a to take one of the five values from s_x_index for each iteration instead of one value for all the iteration.
s_x_index=[0.01 0.02 0.03 0.04 0.05]
for i = 1:length(s_x_index)
x_a = s_x_index(i);
f_x_loop = (F*x_a)/(s*Q)
f_x_loop_save(i) = f_x_loop(i)
end
Please let me know if the given information is not sufficient.
Thanks
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Loops and Conditional Statements 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!