MATLAB Answers

How can I save data in a multidimensional array

9 views (last 30 days)
Mariana
Mariana on 18 Jan 2020
Commented: Mariana on 24 Jan 2020 at 15:43
I want to build a multidimensional array that saves the follwing data.
Size of the array should be the following:
Vego : 0 - 180
Aego : -3 - 5
Atarget: -3 - 5
Rel_v: 0-150
Rel_a : -5 - 5
Rel_x : 0 - 180
The idea is be filling up this array with these values from the table

  1 Comment

Sindar
Sindar on 20 Jan 2020
What does "0 - 180" mean in terms of size?
Do you have this table in some other program and want to read the data in? If so, try the import tool (https://www.mathworks.com/help/matlab/import_export/select-spreadsheet-data-interactively.html)

Sign in to comment.

Accepted Answer

KSSV
KSSV on 20 Jan 2020
As you have Table T in your hand. You have what you want in hand already. You can access your required array suing.
T.Vego
T.Rel_x
Read about Table for further information.
Note that, it is not reuired to save each table data into individual variable seperately. It is waste of time and memory.

  1 Comment

Mariana
Mariana on 24 Jan 2020 at 15:43
Yes, I share the same opinion with you a multidimensional array is not optimal for this application. I just wanted to know more points of view.

Sign in to comment.

More Answers (0)

Sign in to answer this question.


Translated by