Display of graphics.

Marcelo Nascimento 2021 年 2 月 27 日 (編集日時: 2021 年 2 月 27 日)
最新アクティビティ Marcelo Nascimento さんによる編集 (2021 年 2 月 27 日)

>>

Good evening everyone. I have doubts in the display of graphics. The vertical axis means meant and if collected from my sensor. How often are they being plotted. I modified the code to "tempF = thingSpeakRead (readChannelID, 'Fields', TemperatureFieldID, ... 'NumMinutes', 20 * 60, 'ReadKey', readAPIKey); In this case, it would be samples from the last 20 hours. So what does each value displayed on the vertical axis mean?

% Read temperature for the last 10 hours from a ThingSpeak channel and % visualize temperature variations using the MATLAB HISTOGRAM function.

% Channel 12397 contains data from the MathWorks Weather Station, located % in Natick, Massachusetts. The data is collected once every minute. Field % 4 contains temperature data. % Channel ID to read data from readChannelID = 1265072;

% Temperature Field ID TemperatureFieldID = 1;

% Channel Read API Key % If your channel is private, then enter the read API % Key between the '' below: readAPIKey = 'HGPTIKZABQ4DUC8J';

% Get temperature data from field 4 for the last 10 hours = 10 x 60 % minutes. Learn more about the THINGSPEAKREAD function by going to % the Documentation tab on the right side pane of this page.

tempF = thingSpeakRead(readChannelID,'Fields',TemperatureFieldID,... 'NumMinutes',20*60, 'ReadKey',readAPIKey);

histogram(tempF); xlabel('Temperature em ºC'); ylabel('Amostras coletadas'); title('Variação de temperatura');

タグ

タグが未入力です。