Question: In this code, the error in front of you appears in the image, which is that the function Velocity_OEM is not defined. Please fix the
In this code, the error in front of you appears in the image, which is that the function Velocity_OEM is not defined. Please fix the error, execute the code in MATLAB, and show the results.
x=0:30:240;
y=[7 5 13 6 20 14 12 6 8];
plot(x,y,'--rs','LineWidth',2)
xlabel('air supply angle');
ylabel('predicted percentage of dissatisfaction');
title(' predicted percentage of dissatisfaction in AC room');
x=0:0.5:2.5;
temperature_OEM=([21 24.3 24.67 24.75 24.79 24.86]);
temperature_DSM=([20.6 23 23.4 23.7 24.1 24.3 ]);
temperature_SST_SAS=([20.76 22.6 23.3 23.8 23.9 24.31]);
plot(x,Velocity_OEM);
hold on
xlable('H(m)')
ylable('Velocity in min per second')
plot(x,Velocity_DSM)
hold on
plot(x,Velocity_SST_SAS)
figure
semilogy(x,temperature_OEM,'bp-.','LineWidth',2)
hold on
semilogy(x,temperature_DSM,'mo-.','LineWidth',2)
semilogy(x,temperature_SST_SAS,'rd-.','LineWidth',2)
Title('Avreage temperature distribution')
grid on
xlabel('H(m)')
ylabel('Temperature in degree celsius')
legend('OEM(sim )', 'DSM(sim)', 'SST_SAS (sim)')

Velocity OEM. + x=0:30:240; y=[7 5 13 6 20 14 12 6 8]; plot(x,y,'--rs', 'LineWidth', 2) xlabel('air supply angle'); ylabel('predicted percentage of dissatisfaction'); title(' predicted percentage of dissatisfaction in AC room'); x=0:0.5:2.5; temperature_0EM=([21 24.3 24.67 24.75 24.79 24.86]); temperature_DSM=([20.6 23 23.4 23.7 24.1 24.3 ]); temperature_SST_SAS=([20.76 22.6 23.3 23.8 23.9 24.31]); plot(x, Velocity_OEM); hold on xlable('H(m)') ylable('Velocity in min per second') plot(x,Velocity_DSM) hold on plot(x, Velocity_SST_SAS) figure semilogy (x, temperature_OEM, 'bp-.', 'LineWidth',2) hold on semilogy(x, temperature_DSM, 'mo-.', 'LineWidth',2) semilogy (x, temperature_SST_SAS, 'rd-.', 'LineWidth', 2) Title('Avreage temperature distribution') grid on xlabel('H(m)') ylabel('Temperature in degree celsius') legend('OEM( sim )', 'DSM(sim)', 'SST_SAS (sim)') Command Window Error in Velocity_OEM (line 13) plot (x, Velocity OEM); >> Velocity OEM Execution of script Velocity_OEM as a function is not supported: C:\Users\ALI\Documents\MATLAB \velocity_OEM.m Error in Velocity_OEM (line 12) plot(x, Velocity OEM) ; fx >>
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
