Inputting an equation as a variable
显示 更早的评论
hello. i need a way to have the user input an equation as a variable and then have it evaluate that function at various points during a for loop. please help
K=input('input equation') For N=1:1:4 ANSWER(N)=K(N)
采纳的回答
更多回答(0 个)
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!