Info
この質問は閉じられています。 編集または回答するには再度開いてください。
how can I return vector to GUI?
3 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I have this function and I want to do a GUI for it. The only problem I am facing is U vector; how can I display the matrix U in GUI? should I use regular textbox or any other? Note that the size of U will be changing later depends on the size of x.
function [k,U]=test1(x)
format rat % change decimal into fractional numbers
for i=1:size(x,2)
[Num(i), Den(i)] = numden(sym(x(i))); % Num of simplest form of x
end
Max1 = max([Num(:);Den(:)]);
Min1 = min([Num(:);Den(:)]);
k = max(Max1, abs(Min1)); % get max of abs values of the two
Y = [1 5;3 4]; L = [1 k;1 1]; U = Y.*L;
end
0 件のコメント
回答 (0 件)
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!