How can i set input command for undefined variable?
1 回表示 (過去 30 日間)
古いコメントを表示
I have a input.
x_ang = [0 0 15 15 30, fliplr([0 0 15 15 30])];% [X,NN] = RunLength(x_ang);
it = 10; x=4;y=10;
if a comment on x_ang,
%x_ang = [0 0 15 15 30, fliplr([0 0 15 15 30])];% [X,NN] = RunLength(x_ang);
and if "x_ang" is not available, then i want to input automatically x_ang, then how can i make condition for this?
0 件のコメント
採用された回答
Walter Roberson
2016 年 8 月 8 日
if ~exist('x_ang', 'var')
x_ang = input('Enter x_ang values');
end
0 件のコメント
その他の回答 (0 件)
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!