Unable to store function output in an other variable
显示 更早的评论
I created a function to convert a degree value to radian. The function works fine and executed on command prompt. However, when I try to store the output of that function in to a variable, I get ' Too many output arguments error ' .
Below I am pasting the code of function:
function d2r(x) (x.*pi)./180
Above works fine
but doing below gives error
>> clear all >> a = d2r(45) Error using d2r Too many output arguments.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Lengths and Angles 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!