![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/211760/image.png)
Error in using "width" and "fcn" block in SIMULINK
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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](https://www.mathworks.com/matlabcentral/answers/uploaded_files/211602/untitled.png)
0 comentarios
Respuesta aceptada
madhan ravi
el 3 de Abr. de 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);
Más respuestas (0)
Ver también
Categorías
Más información sobre Sources en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!