how to put multiple results in edit box?

1 visualización (últimos 30 días)
Rudolf Sila
Rudolf Sila el 23 de Dic. de 2020
Respondida: Walter Roberson el 23 de Dic. de 2020
I'm trying to calculate the matrix via a guide. My matrix have 3x4 then i have 3 results and i need put them in edit box. Input is from editbox and sign from popup menu. I have 3 results and i need to put them in editbox or something else, where i can put them.
c1= str2double(get (handles.edit1,'string'));
c2= str2double(get (handles.edit2,'string'));
c3= str2double(get (handles.edit3,'string'));
h4= str2double(get (handles.edit4,'string'));
c5= str2double(get (handles.edit5,'string'));
...
z1= get (handles.popupmenu1,'value');
switch z1
case 1
h1=c1;
case 2
h1=-c1;
end
z2= get (handles.popupmenu2,'value');
switch z2
case 1
h2=c2;
case 2
h2=-c2;
end
z3= get (handles.popupmenu3,'value');
switch z3
...
A = [h1 h2 h3; h5 h6 h7; h9 h10 h11; h13 h14 h15]
B = [h4; h8; h12; h16]
x = A\B;
set (handles.edit19, 'string', num2str(x))
I know faut is here, but i cant solve it. :(
thx for help :)
edit: i forgot to say my counting is via pushbutton.

Respuestas (1)

Walter Roberson
Walter Roberson el 23 de Dic. de 2020
Set the edit19 property Max to at least 2 (anything greater than one)

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by