Jan Simon .Hi..as you said i changed it to eval to other format .I am getting error saying Undefined variable "Data" or class "Data.FTP.Data".What is the write syntax to write it.Thank you!
Error in Vehicle_Model_init (line 43) Speed=Data.(cycle_name(1:end-4)).Data
eval(['Speed = ' cycle_name(1:end-4) '.Data;']);
%eval(['Time = ' cycle_name(1:end-4) '.Time;']);
Speed=Data.(cycle_name(1:end-4)).Data
Time=Data.(cycle_name(1:end-4)).Time