simulink input signal from function
이전 댓글 표시
Hello everybody,
I have developed a Simulink model for an electric powertrain: at first, I wrote a script to calculate vehicle power request and saved it as a .mat to import it into a signal editor block in the Simulink model. Though, my teacher wants me to insert the script for power calculation directly through a function block in the model...now the problem is that the block output should be a 960" long signal but it is not considered as a temporal signal (each calculated value associated to each second in the simulation) but as a 1x960 vector...how can I transform the function output from a vector to a signal to be given in input for the simulation?
Thanks for any help.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Modeling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!