필터 지우기
필터 지우기

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

조회 수: 1 (최근 30일)
Alex Yande
Alex Yande 2019년 4월 2일
댓글: Alex Yande 2019년 4월 3일
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

채택된 답변

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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by