回答済み
How to use symbolic variables and functions (Syms) in a Simulink Matlab Function?
I think the only solution is to use the syms function inside a separate .m file and call that file as extrinsic. Create a ne...

11年以上 前 | 5

| 採用済み

回答済み
About CVXGEN: how to call a custom C-mex from an MATLAB Function block in simulink?
It looks to me that the problem you are hitting is that cell arrays are not supported inside MATLAB Function Block. I see two wo...

11年以上 前 | 0

回答済み
embbed function simulink with signal
I was able to make your example work in Simulink after adding the following line before call to "linspace": assert(N<10000)...

12年以上 前 | 0

| 採用済み

回答済み
Trouble with variable-input sizes in Embedded Matlab
To fix this problem, go to Ports and Data Manager (menu Tools / Edit Data Ports), click on the line for "Pairs", check the check...

14年以上 前 | 0

回答済み
Multi-dimensional arrays indexing for an embedded matlab function in simulink
Hi David-Linus, As Fangjun said, these look like two different issues. Can you show me your model so I can see the problem?

14年以上 前 | 0

回答済み
Multi-dimensional arrays indexing for an embedded matlab function in simulink
Please try replacing > images = zeros(x,y); with > images = zeros(x,y,count); Embedded MATLAB function block does no...

14年以上 前 | 0

| 採用済み