how to solve this error when i use matlab function
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Simulink does not have enough information to determine output sizes for this block. If you think the errors below are inaccurate, try specifying types ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1596611/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1596611/image.png)
function y = fcn(R1,R2,w,f,l)
y = (1-(R1/R2)^w*exp(1)^(-f*l/R2));
5 Commenti
Walter Roberson
il 23 Gen 2024
Try
function y = fcn(R1,R2,w,f,l)
y = 0;
y = (1-(R1./R2).^w.*exp(-f.*l./R2);
Risposte (1)
Fangjun Jiang
il 22 Gen 2024
Make sure your function is correct. Manually give a numerical example value to obtain the resulting y value.
In the MATLAB Function block editor, click "Edit data" and specify the size of y, for example, 1, or [2,3] or whatever.
0 Commenti
Vedere anche
Categorie
Scopri di più su Sources in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!