Effacer les filtres
Effacer les filtres

Help with iterating to get one final value with for loop

2 vues (au cours des 30 derniers jours)
Jim Tom
Jim Tom le 6 Nov 2017
Modifié(e) : Jim Tom le 6 Nov 2017
if true
% code

Réponses (1)

Karan Gill
Karan Gill le 6 Nov 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.


En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by