MATLAB: How can i read values from text file

text file text scan

Good morning everyone. New day and one more Question too. It is about again read from text files. I take datas from device as a text file. In first Picture you see that i defined Parameters as a structure which are in s Matrix. The next step that i should do is: under these Parameters there are too many value that each column belong to one Parameter. First question how can i read values from text file (be careful there are semicoluns too)and than after i read how can i connect this numbers with Parameters.
<<
>>

Best Answer

Do not do this. Dynamically assigning variable names is a really bad idea in MATLAB:
The best alternatives are to keep your data in an array (e.g. as they are returned from your file-reading function), or if you require key-value access to your data then use a structure . Structures do allow dynamic fieldnames , and this is much more robust than dynamic variables.
If you have a newer version of matlab you can also use a table , which stores the data together in one array but also allows key-name access to the columns.
Summary: use a structure or table to store your data.