Can matlab assign a vector of objects?
5 次查看(过去 30 天)
显示 更早的评论
[x,y,z] = [1,2,3]
Say I want to assign the objcts x, y, and z to values 1,2,3
Can I create a vector of objects [x,y,z] and assign it [1,2,3]? Why does
[x,y,z] = [1,2,3] not work? Surely I dont have to laboriously type out
x = 1
y = 2
z = 3
yes?
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Construct and Work with Object Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!