Help with iterating to get one final value with for loop

回答(1 个)

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.

类别

在 帮助中心 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息

提问:

2017-11-6

编辑:

2017-11-6

Community Treasure Hunt

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

Start Hunting!

Translated by