how can i assign values to variables?

1 次查看(过去 30 天)
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 个评论
cemsi888
cemsi888 2015-1-28
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

请先登录,再进行评论。

采纳的回答

Stalin Samuel
Stalin Samuel 2015-1-28
for it=1:181
zeile{it,1}=dataArray{1,it}
end
  7 个评论
cemsi888
cemsi888 2015-1-28
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 2015-1-28
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?

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Workspace Variables and MAT-Files 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by