スタンドアロンアプリケーションの処理結果を標準出力に出力する方法がわかりません
显示 更早的评论
MATLAB Compilerで作成したスタンドアロンアプリケーションをWindowsのコマンドプロンプト上で実行しても処理結果が標準出力に出力されません。disp関数なども使って見ましたが出力されませんでした。 テストに用いたコードは以下のとおりです。
function testadd(x1,x2)
if ischar(x1)
x1 = str2num(x1);
end
if ischar(x1)
x2=str2num(x2);
end
y = x1 + x2
disp(y)
采纳的回答
更多回答(1 个)
madhan ravi
2018-10-29
x1='1'
x2='6'
result=testadd(x1,x2)
function y=testadd(x1,x2)
if ischar(x1)
x1 = str2num(x1);
end
if ischar(x2)
x2=str2num(x2);
end
y = x1 + x2;
%disp(y)
end
1 个评论
madhan ravi
2018-10-29
The above is an example to illustrate
类别
在 帮助中心 和 File Exchange 中查找有关 スタンドアロン アプリケーション 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
