from File and if block conditions error
이전 댓글 표시
Hello everyone,
I am building a Simulink structure for my homework which is about EVs.
I have Drive_cycle.mat contains time and corresponding speeds. It is directly connected (used goto, from blocks) to if block.
But I am getting an error. And I could not solve it.
I really appreciate any help you can provide. Thank you


댓글 수: 2
Harshit Rastogi
2022년 5월 25일
Hi Hasan, If possible could you please share the model and drive cycle data here. I think that you are giving the drive cycle as input to the 'if' block. As drive cycle has 2 columns , 'if' block is not able to know with whom to compare the given value. Also instead of goto and from block , first open the subsystem and try connecting the drive cycle directly to the if block.
Hasan Atacan Tosun
2022년 5월 26일
채택된 답변
추가 답변 (1개)
Walter Roberson
2022년 5월 27일
0 개 추천
Transpose your mat data. Timestamps are first row not first column.
카테고리
도움말 센터 및 File Exchange에서 Simulink에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!