How do I store a function file to a variable?
显示 更早的评论
I use a function file to run some computations and it looks something like this
x_max(<input1,input2>=answer
after the function computes my command window displays
ans=<answer>
I would like to know how to store this answer a variable for which i could display using fprintf. For example, I would like to display something like
"the value of x_max is <answer>"
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Variables 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!