How to distribute elements of a vector to each of output variable?
5 次查看(过去 30 天)
显示 更早的评论
x = [1,2,3,4,5]
[a,b,c,d,e] = deal(x(1:5))
How do I write code such that a=1, b=2, c=3, d=4, e=5?
1 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 FPGA, ASIC, and SoC Development 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!