
Error in using "width" and "fcn" block in SIMULINK
2 ビュー (過去 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!!

0 件のコメント
採用された回答
madhan ravi
2019 年 4 月 3 日

function y = fcn(u)
d = numel(u); % assuming constant blocl is a vector of elements
y = rand(d,9);
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Array and Matrix Mathematics についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!