how can i assign values to variables?

1 view (last 30 days)
Good Morning every one!! Today i have question too. i have one Matrix which Name is zeile and it includes 181 cell Array which are my 181 Parameters. In Addition i have one Matrix too.Its Name is dataArray and in this Matrix i have all values that belong to 181 Parameter.My question is how can i assign my values to These Parameters?
  5 Comments
cemsi888
cemsi888 on 28 Jan 2015
first of all i got Experiment results as a text file which includes Parameters and values. First of all i read with textscan all my Parameters and than i created my Matrix zeile which includes 181 variables. after that i read values or results of Experiment which Name is dataArray .I checked it last column (182) is empty.Every column in dataArray must be send to variable in Matrix zeile.I mean for one variable one column

Sign in to comment.

Accepted Answer

Stalin Samuel
Stalin Samuel on 28 Jan 2015
for it=1:181
zeile{it,1}=dataArray{1,it}
end
  7 Comments
cemsi888
cemsi888 on 28 Jan 2015
As you see in attached file in Input_Map_1 there are 181 variables. i want to make calculation with them,But how can i call variables
. what is the correct code that i should write my m file??
cemsi888
cemsi888 on 28 Jan 2015
Any help!!!! i used str2mat to get the values but it does not work because i have 41*1 Matrix and when used this code i get 41*13 Matrix.. do you have any advice to me?

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!