Help with iterating to get one final value with for loop

1 回表示 (過去 30 日間)
Jim Tom
Jim Tom 2017 年 11 月 6 日
編集済み: Jim Tom 2017 年 11 月 6 日
if true
% code
end

回答 (1 件)

Karan Gill
Karan Gill 2017 年 11 月 6 日
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.

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by