Está en la página 1de 1

switch a

case 1

if get(handles.RLCS,'value') && get(handles.GraVR, 'value'); %Graficar


Voltaje Resistencia. Cir circuito RLC en serie.
axes(handles.axes3);
x=0:1:10;
y= 1+x;
plot(x,y);

else get(handles.RLCS,'value') %Si se usa Voltaje C para graficar.

axes(handles.axes3);
x=0:1:10;
y=x.^3;
plot(x,y);

end

case 2

if get(handles.RLCS,'value') && get(handles.GraVC, 'value') %Graficar


Voltaje Condensador Cir RLC serie.
axes(handles.axes3);
x=0:1:10;
y= x.*4;
plot(x,y);

else get(handles.RLCS,'value')
axes(handles.axes3);
x=0:1:10;
y=4*x;
plot(x,y);

end

end

También podría gustarte