I'm trying to plot data on a log scale using this code fragment:
thingSpeakPlot(time, light, 'YScale','log');
however all I get is an empty chart. The X-axis has time values, but no Y-axis value or data plotted. The data is read in correctly - I can see it when I plot it without the log. Can anyone shed some light on this.
It works without any issues in my case ... I hope this help you
copy - paste this code (blindly, no questions, no typing) in a MATLAB Visualizations in MATLAB Code
time = 0:1:5
light = exp(time)
% thingSpeakPlot(time, light);
% thingSpeakPlot(time, light, 'YScale','log');
first try, erase % in first thingSpeakPlot and Save and Run. See in "output" the values for time and light and the MATLAB Plot Output
second try, put again % in the first thingSpeakPlot and erase % in second thingSpeakPlot and Save and Run. See results.
Maybe the characters in your machine are different.(?)
Most Users Ever Online: 114
Currently Browsing this Page:
Guest Posters: 1
Administrators: Hans, lee