Invalid syntax at num2str. A'(' might be missing a closing ')'
显示 更早的评论
Hello everyone! Im writing simple code for a intro class and continue to get a syntax error "Invalid expression". For this homework, the instructure wants use num2str that seems to be where my error originates. Im sure its a simple mistake. All help is apriciated. Thank you!
disp((' (a) tanh(e)=' num2str(tanh(exp(1)))))
采纳的回答
更多回答(1 个)
Cameron B
2020-1-26
disp([' (a) tanh(e)=',num2str(tanh(exp(1)))])
类别
在 帮助中心 和 File Exchange 中查找有关 Entering Commands 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!