Help with iterating to get one final value with for loop
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
if true
% code
end
0 comentarios
Respuestas (1)
Karan Gill
el 6 de Nov. de 2017
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.
0 comentarios
Ver también
Categorías
Más información sobre Loops and Conditional Statements en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!