Error in using "width" and "fcn" block in SIMULINK
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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!!
0 Commenti
Risposta accettata
madhan ravi
il 3 Apr 2019
function y = fcn(u)
d = numel(u); % assuming constant blocl is a vector of elements
y = rand(d,9);
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Sources in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!