- Load it to workspce and use it as a paraemeter (https://www.mathworks.com/help/simulink/ug/parameter-arguments-in-matlab-function-block-functions.html)
- Insert a "From File" block into the Simulink model and connect it to the matlab function
- Load the array inside your function block with R = load('Ramp')
using an array in a Simulink Matlab function block
조회 수: 5 (최근 30일)
이전 댓글 표시
I have an array 'Ramp.mat'
This array has some data (4x4 matrix) which I want to use while making the code for Simulink Matlab function block .
May I know which command I can use to use data from mat file.
Had it been a .m file then I could have used load 'Ramp' command , but in this case it is not applicable.
Please help .
댓글 수: 1
rubindan
2020년 5월 20일
There are at least 3 ways to do that:
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!