MATLAB Visualization : two channels with no same time distribution | MATLAB | Forum

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
MATLAB Visualization : two channels with no same time distribution
No permission to create posts
December 18, 2015
8:19 am
Avatar
picpic020960

Silver
Members
Forum Posts: 7
Member Since:
December 8, 2015
sp_UserOfflineSmall Offline

Bonjour ,
I have two devices so two channels

when plote data , one error that say datetime not synchro.

no date time merge between two data series

how to for merge ?

easy ?

thanks for help

December 18, 2015
11:38 am
Avatar
Adarsh_Murthy

MathWorks
Members
Forum Posts: 62
Member Since:
August 25, 2015
sp_UserOfflineSmall Offline

Hi,

When visualizing data from two channels with different time stamps, you can plot them individually with the hold command. For example, I am plotting data from two channels below:

% Read data from channel 9 and 12397
[data1, time1] = thingSpeakRead(12397, 'NumPoints', 20, 'Fields', [3,4]);
[data2, time2] = thingSpeakRead(9, 'NumPoints', 20);

% Plot data corresponding to channel 12397
plot(time1, data1);
% Hold the previous plot
hold;
% Plot data corresponding to channel 9
plot(time2, data2);

December 19, 2015
7:03 am
Avatar
picpic020960

Silver
Members
Forum Posts: 7
Member Since:
December 8, 2015
sp_UserOfflineSmall Offline

Thanks Man

work fine !
(with 'thingspeakplot' draw legend but with 'plot' good time stamp result)

edit : title , legend added ... too fun !

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online: dennis55
21 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 261

Vinod: 196

piajola: 85

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

Newest Members:

josephrj11, dennis55, jillhp4, tabathawg69, MarinaMa, Susandom

Administrators: Hans: 387, lee: 457