![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/211760/image.png)
Error in using "width" and "fcn" block in SIMULINK
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Alex Yande
am 2 Apr. 2019
Kommentiert: Alex Yande
am 3 Apr. 2019
Hi!
I want to use width of matrix in fcn block for the purpose of creating random matrix, but i got an error message. How can i fix it?
Thx!!
![untitled.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/211602/untitled.png)
0 Kommentare
Akzeptierte Antwort
madhan ravi
am 3 Apr. 2019
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/211760/image.png)
function y = fcn(u)
d = numel(u); % assuming constant blocl is a vector of elements
y = rand(d,9);
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Sources finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!