How do I create a matrix with functions?
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
I have a function with two variables, I want to generate a matrix of function outputs with one range of each output. How do I do that?
0 件のコメント
回答 (1 件)
Guillaume
2015 年 12 月 3 日
var1 = 1:10; %row vector for one input
var2 = (1:5)'; %column vector for the other
m = bsxfun(@yourfun, var1, var2)
0 件のコメント
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!