Effacer les filtres
Effacer les filtres

Error in using "width" and "fcn" block in SIMULINK

1 vue (au cours des 30 derniers jours)
Alex Yande
Alex Yande le 2 Avr 2019
Commenté : Alex Yande le 3 Avr 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

Réponse acceptée

madhan ravi
madhan ravi le 3 Avr 2019
function y = fcn(u)
d = numel(u); % assuming constant blocl is a vector of elements
y = rand(d,9);
  1 commentaire
Alex Yande
Alex Yande le 3 Avr 2019
I don't know why i always use difficult and long techniques. It seems that very easy with your solving.
Thx a lot !!
:))

Connectez-vous pour commenter.

Plus de réponses (0)

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by