Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
a = 0; b = 0; c = 0;
我可以在不使用数组/向量的情况下在一个语句中执行此操作吗?
我会尝试使用该deal功能。
deal
http://www.mathworks.com/help/matlab/ref/deal.html
[a,b,c] = deal(0,0,0);
还有其他方法,但这是一个很好的学习功能。