create a variable to store sets
1 次查看(过去 30 天)
显示 更早的评论
I would like to create a variable that stores a set of numbers for an arc (a,b).
S(a,b) = {1,2,3,4,5}
S(b,c) = {3,4,5} etc
but I dont know how to write it in matlab. Please help
0 个评论
采纳的回答
更多回答(1 个)
Azzi Abdelmalek
2013-6-7
S{1,1}='a',
S{1,2}='b'
S{1,3}={1,2,3,4,5}
S{2,1}='b',
S{2,2}='c'
S{2,3}={3,4,5}
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!