MATLAB Answers

Jeremy Baker

I get an error for plot called "double"

Asked by Jeremy Baker
on 15 May 2013
Indat = load('-ascii','C:\Users\jbake_000\Documents\MATLAB\SC101\weather.txt');
Time = Indat(:, 1);
Windspeed = Indat(:, 4);
Windgust = Indat(:, 5);
Plot(Time, Windspeed);
hold on;
plot( Windgust, 'r');
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);



No products are associated with this question.

1 Answer

Answer by Walter Roberson
on 15 May 2013

MATLAB is case-sensitive and does not have a routine named "Plot". It has a routine named "plot".


Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!