フィルターのクリア

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 Center および File ExchangeSources についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by