![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/211760/image.png)
Error in using "width" and "fcn" block in SIMULINK
조회 수: 1 (최근 30일)
이전 댓글 표시
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
채택된 답변
madhan ravi
2019년 4월 3일
![](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);
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Sources에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!