Integer Arithmetic
This example shows how to perform arithmetic on integer data representing signals and images.
Load Integer Signal Data
Load measurement datasets comprising signals from four instruments using 8 and 16-bit A-to-D's
resulting in data saved as int8, int16 and uint16. Time is stored as uint16.
load integersignal
% Look at variables
whos Signal1 Signal2 Signal3 Signal4 Time1
Name
Size
Bytes Class
Attributes
Signal1
7550x1
7550 int8
Signal2
7550x1
7550 int8
Signal3
7550x1
15100 int16
Signal4
7550x1
15100 uint16
Time1
7550x1
15100 uint16
Plot Data
First we will plot two of the signals to see the signal ranges.
plot(Time1, Signal1, Time1, Signal2);
grid;
legend('Signal1','Signal2');
Integer Arithmetic
4-19
Précédent

- 163/1450

Suivant