Help with iterating to get one final value with for loop
조회 수: 1 (최근 30일)
이전 댓글 표시
if true
% code
end
댓글 수: 0
답변 (1개)
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!