How to find the value of a function for different input?
조회 수: 53 (최근 30일)
이전 댓글 표시
hello !
lets say i have a function f(x)=x^2+3*x;
i want to find the function vaslues from x=1 to x=20.
how to write the code for the above ?
syms x
f=x^2+3*x;
for i=1:20
f(i);
end
above code is showing error. please provide your input !
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!