Displaying Data from Different fields into one Bar Chart | MATLAB | Forum

Avatar

Please consider registering
Guest

Search

— Forum Scope —






— Match —





— Forum Options —





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

Register Lost password?
sp_Feed sp_TopicIcon
Displaying Data from Different fields into one Bar Chart
Avatar
rushanarshad

Silver
Forum Posts: 8
sp_UserOfflineSmall Offline
1
September 17, 2017 - 3:49 pm
sp_Permalink sp_Print

 Hello everyone, 

 

I am using MATLAB visualizations to display data from two fields of same channel in one chart. Basically, i want to calculate average liquid from two liquid sensors into one chart. It works for one field with the following line of code to extract data from one field: 

data1 = thingSpeakRead(CID,'NumPoints',10,...
'Fields',1);

But when i use the same code and add them, it doesnt display anything. 

 

Can anyone help me with this problem? 

 

Thanks. 

Avatar
cstapels

Gold
Forum Posts: 122
sp_UserOnlineSmall Online
2
September 18, 2017 - 5:38 pm
sp_Permalink sp_Print

There could be  different data types or missing data in one of the arrays.  If you remove the semicolon, the output window should show you the values in data1.  Do the same thing for your other sensor, and make sure there isn't any text in there or missing values by accident.    Can you show the step where you are averaging the values, and then the step where you plot the values?  

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online: cstapels
23 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 252

Vinod: 164

cstapels: 96

piajola: 75

vespapierre: 63

Adarsh_Murthy: 59

Newest Members:

yeseniara11

RomanFug

JamesPes

RobertBak

ScottSmiva

Amourhotte

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

 

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Administrators: Hans, lee