I get an error for plot called "double"

3 visualizaciones (últimos 30 días)
Jeremy Baker
Jeremy Baker el 15 de Mayo de 2013
Comentada: Timothy Pancho el 24 de En. de 2017
Indat = load('-ascii','C:\Users\jbake_000\Documents\MATLAB\SC101\weather.txt');
Time = Indat(:, 1);
Windspeed = Indat(:, 4);
Windgust = Indat(:, 5);
figure(1);
clf;
Plot(Time, Windspeed);
hold on;
plot( Windgust, 'r');
xlabel('time(s)');
ylabel('speed K/ph');
title('Average windspeed and windgusts vs time');
the error reads
Undefined function 'Plot' for input arguments of type 'double'.
Error in Perth_weather_obs_April08 (line 29)
Plot(Time, Windspeed);
  1 comentario
Timothy Pancho
Timothy Pancho el 24 de En. de 2017
The p in "plot" is supposed to be lowercase.

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 15 de Mayo de 2013
MATLAB is case-sensitive and does not have a routine named "Plot". It has a routine named "plot".

Más respuestas (0)

Categorías

Más información sobre Line Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by