Azzera filtri
Azzera filtri

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 visualizzazione (ultimi 30 giorni)
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.

Risposte (1)

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

Categorie

Scopri di più su Schedule Model Components in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by