divide array to multiple varible of array

1 ビュー (過去 30 日間)
Hassan Abulkadder
Hassan Abulkadder 2019 年 12 月 4 日
回答済み: Raj 2019 年 12 月 4 日
i would like to divide an array to group of variables's array
i have this array:
node=[ 2 4 6];
and i want to have the following:
[a b c]=node;
i want to store every value in the (node) to differeant variable accordingly so i will have
is that possible
thank you


Raj 2019 年 12 月 4 日
For the purpose of storing you can use a structure something like this:
MyStructure = struct('Name', {{'a' 'b' 'c'}}, 'Value', [2 4 6])

その他の回答 (0 件)


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by