this function you will have test data into two 1D arrays. The input parameters to the function will be void and the output will be the two arrays defined in the function?? help
1 回表示 (過去 30 日間)
古いコメントを表示
%this is my funtion
function [x,y] = getData()
x=[1;2;3];
y=[4;5;8];
end
my issue is that it returns an ans of
ans =
1
2
3
and doesn't display the other array. Can anyone help
0 件のコメント
回答 (1 件)
Walter Roberson
2015 年 11 月 12 日
[x,y] = getdata()
will display both of the outputs.
Note: the question is not sufficiently specific about what "output" means. It could mean displaying to the screen instead of returning from the function.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Markov Chain Models についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!