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 Center および File ExchangeInterpolation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by