Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Undefined function or variable 'Part2iiTime'.

1 visualización (últimos 30 días)
Will Freebairn
Will Freebairn el 29 de Abr. de 2020
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
This is the code. The graph is just blank and says there is an error in the plot line.
function [Part2iiTemp,Part2iiTime]=Part2ii
x=zeros(45,1);
x(:)=175;
IsothermalT=(0:44)';
[B,O,overchargedreactor]=overcharged;
B=B-273;
for y=1:41
if B(y)<175
B(y)=175;
end
end
Part2iiTemp=[x;B];
Part2iiTime=[IsothermalT;overchargedreactor];
end
figure(3)
plot(Part2iiTime,Part2iiTemp)
hold on
title('Part2ii')
ylabel('Time(Minutes)')
xlabel('Temperature')

Respuestas (1)

Cris LaPierre
Cris LaPierre el 29 de Abr. de 2020
Editada: Cris LaPierre el 29 de Abr. de 2020
This error message means MATLAB can't find the function. Where does this function live? Have you saved it yet? Is it in the current folder, or in a folder that exists on your MATLAB Path?
Also, are you aware you have called your function 'Part2ii', and not 'Part2iiTime'?

Community Treasure Hunt

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

Start Hunting!

Translated by