Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Importing the data

Subject: Importing the data

From: sivaprasad kunduru

Date: 30 Dec, 2010 18:05:04

Message: 1 of 2


ID = 33 Data = 159 RSSI = 155 Temp= 0
ID = 33 Data = 160 RSSI = 152 Temp= 0
ID = 33 Data = 161 RSSI = 153 Temp= 0
ID = 33 Data = 162 RSSI = 148 Temp= 0
ID = 33 Data = 163 RSSI = 151 Temp= 0
ID = 33 Data = 164 RSSI = 150 Temp= 0
ID = 33 Data = 165 RSSI = 153 Temp= 0
ID = 33 Data = 166 RSSI = 154 Temp= 0
ID = 33 Data = 167 RSSI = 153 Temp= 0
ID = 33 Data = 168 RSSI = 153 Temp= 0
ID = 33 Data = 169 RSSI = 153 Temp= 0
ID = 33 Data = 170 RSSI = 153 Temp= 0
ID = 33 Data = 171 RSSI = 152 Temp= 0
ID = 33 Data = 172 RSSI = 152 Temp= 0
ID = 33 Data = 173 RSSI = 153 Temp= 0
ID = 33 Data = 174 RSSI = 153 Temp= 0
ID = 33 Data = 175 RSSI = 153 Temp= 0
ID = 33 Data = 176 RSSI = 153 Temp= 0
ID = 33 Data = 177 RSSI = 153 Temp= 0
ID = 33 Data = 178 RSSI = 154 Temp= 0
ID = 33 Data = 179 RSSI = 153 Temp= 0
ID = 33 Data = 180 RSSI = 152 Temp= 0
How to import this data into matlab using functions.
This data is in .txt file.

Subject: Importing the data

From: Oleg Komarov

Date: 30 Dec, 2010 18:31:04

Message: 2 of 2

"sivaprasad kunduru" <ku.sivaprasadreddy@gmail.com> wrote in message <ifihkg$qd6$1@fred.mathworks.com>...
>
> ID = 33 Data = 159 RSSI = 155 Temp= 0
> ID = 33 Data = 160 RSSI = 152 Temp= 0
> ID = 33 Data = 161 RSSI = 153 Temp= 0
> ID = 33 Data = 162 RSSI = 148 Temp= 0
> ID = 33 Data = 163 RSSI = 151 Temp= 0
> ID = 33 Data = 164 RSSI = 150 Temp= 0
> ID = 33 Data = 165 RSSI = 153 Temp= 0
> ID = 33 Data = 166 RSSI = 154 Temp= 0
> ID = 33 Data = 167 RSSI = 153 Temp= 0
> ID = 33 Data = 168 RSSI = 153 Temp= 0
> ID = 33 Data = 169 RSSI = 153 Temp= 0
> ID = 33 Data = 170 RSSI = 153 Temp= 0
> ID = 33 Data = 171 RSSI = 152 Temp= 0
> ID = 33 Data = 172 RSSI = 152 Temp= 0
> ID = 33 Data = 173 RSSI = 153 Temp= 0
> ID = 33 Data = 174 RSSI = 153 Temp= 0
> ID = 33 Data = 175 RSSI = 153 Temp= 0
> ID = 33 Data = 176 RSSI = 153 Temp= 0
> ID = 33 Data = 177 RSSI = 153 Temp= 0
> ID = 33 Data = 178 RSSI = 154 Temp= 0
> ID = 33 Data = 179 RSSI = 153 Temp= 0
> ID = 33 Data = 180 RSSI = 152 Temp= 0
> How to import this data into matlab using functions.
> This data is in .txt file.

fid = fopen('fulldirectory to your file');
Out = textscan(fid,'%*s%*s%f%*s%*s%f%*s%*s%f%*s%f');
Out = [Out{:}];
fid = fclose(fid);

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us