Necesito graficar en Guide pero solo se pone los nombres de los ejes y no la grafica
Publicado por CHRISTIAN S (3 intervenciones) el 02/07/2020 05:47:11
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
ea_values=[0;21;42;63;84;105.333000000000];
if_values=[0;0.333300000000000;0.6666000000000003];
v_t;
r_f;
% corresponding
e_a0_ref = interp1(if_values,ea_values,5,'spline');
n_ref = 1103;
i_f = v_t ./ r_f;
% Calculate the E_
e_a0 = interp1(if_values,ea_values,i_f,'spline');
% Calculate
n2 = ( e_a0_ref ./ e_a0 ) * n_ref;
%GRAFICAR
% Plot the speed versus r_f curve.
plot(r_f,n2,'Color','r','LineWidth',4.0);
hold on;
xlabel('Field resistance, \Omega','Fontweight','Bold');
ylabel('\itn_{m} \rm\bf(r/min)','Fontweight','Bold');
title ('Velocidad ');
axis([40 70 0 1400]);
grid on;
hold off;
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
Valora esta pregunta


0