trying to use syms and i typed in syms('y') says error
4 次查看(过去 30 天)
显示 更早的评论
y = syms('y')
Error using syms
Using input and output arguments simultaneously is not supported.
0 个评论
采纳的回答
Dyuman Joshi
2023-12-12
编辑:Dyuman Joshi
2023-12-12
syms y
whos
%Clear the initial variable
clear y
whos
%Define via sym()
y = sym('y');
whos
As you can see, the result of both is the same. Choose the function and the corresponding syntax you like.
6 个评论
Dyuman Joshi
2023-12-12
You're welcome.
No need to be sorry, it is kinda confusing initially.
If my answer solved your problem, please consider accept it.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!