필터 지우기
필터 지우기

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에서 Schedule Model Components에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by