MATLAB Answers

Help with iterating to get one final value with for loop

3 views (last 30 days)
Jim Tom
Jim Tom on 6 Nov 2017
Edited: Jim Tom on 6 Nov 2017
if true
% code
end

  0 Comments

Sign in to comment.

Answers (1)

Karan Gill
Karan Gill on 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.

  0 Comments

Sign in to comment.