I get an error for plot called "double"

조회 수: 3 (최근 30일)
Jeremy Baker
Jeremy Baker 2013년 5월 15일
댓글: Timothy Pancho 2017년 1월 24일
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
Timothy Pancho
Timothy Pancho 2017년 1월 24일
The p in "plot" is supposed to be lowercase.

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2013년 5월 15일
MATLAB is case-sensitive and does not have a routine named "Plot". It has a routine named "plot".

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by