To reach 600km I have to repeat the driving cycle of 40kms many times to reach 600km using simulink ?How can I do this ?

1 次查看(过去 30 天)
Hi!!!I have created a program using a long vector of driving cycle in the matlab code before starting the simulink .But I want to create a single driving cycle inside the simulink and repeat the same .for example ,I want to reach 600kms to reach 600kms I have to repeat 40kms several times .I want to do this in simulink ?How can I do it ?there is any block to do this ?or I should do with the help of math function block ?Thank you.

回答(1 个)

Harini pushparaj
Harini pushparaj 2017-10-31
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

类别

Help CenterFile Exchange 中查找有关 Block Libraries 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by