Help with iterating to get one final value with for loop
Mostra commenti meno recenti
if true
% code
end
Risposte (1)
Karan Gill
il 6 Nov 2017
0 voti
Do not use f1(i). Instead use subs: https://www.mathworks.com/help/symbolic/subs.html to substitute a value.
And you redeclared f1 as symbolic with syms f1. So you lost your initial value of f1. Then you try f1(i) and it errors.
Categorie
Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!