Info
This question is closed. Reopen it to edit or answer.
how can I return vector to GUI?
3 views (last 30 days)
Show older comments
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 Comments
Answers (0)
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!