Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

how can I return vector to GUI?

4 visualizaciones (últimos 30 días)
AbuYusuf
AbuYusuf el 20 de Jul. de 2017
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by