No se carga archivo tipo .mat para realizar demas calculos y graficar en guide de matlab
Publicado por CHRISTIAN S (3 intervenciones) el 07/07/2020 23:18:24
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
% --- Executes on button press in pushbutton3.
function pushbutton3_Callback(hObject, eventdata, handles)
% three variables if_value, ea_value, and n_0.
%cargar archivo .mat q contiene las demas variables
load fig9_9.mat
% First, initialize the values
v_t = 120;
r_f = 25;
r_a = 0.06;
i_l = 10:10:300;
n_f = 1000;
f_ar0 = 500;
% Calculate the armature current for each load.
i_a = i_l - v_t / r_f;
% Now calculate the internal generated voltage for
% each armature current.
e_a = v_t - i_a * r_a;
% Calculate the armature reaction MMF for each armature
% current.
f_ar = (i_a / 200) * f_ar0;
% Calculate the effective field current.
i_f = v_t / r_f - f_ar / n_f;
% Calculate the resulting.
e_a0 = interp1(if_values,ea_values,i_f,'spline');
% Calculate the resulting s
n = ( e_a ./ e_a0 ) * n_0;
% Calculate the induced torque corresponding to each
% speed from Equations (8-55) and (8-56).
t_ind = e_a .* i_a ./ (n * 2 * pi / 60);
% Dibujar
plot(t_ind,n,'Color','k','LineWidth',2.0);
hold on;
xlabel('\tau_{ind} (N-m)');
ylabel('\itn_{m} \rm\bf(r/min)');
title ('\bfShunt DC motor torque-speed characteristic');
axis([ 0 600 1100 1300]);
grid on;
hold off;
% hObject handle to pushbutton3 (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