Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
Alex Yande
Alex Yande el 2 de Abr. de 2019
Comentada: Alex Yande el 3 de Abr. de 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

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by