![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/211760/image.png)
Error in using "width" and "fcn" block in SIMULINK
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
madhan ravi
le 3 Avr 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);
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Sources dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!