0% found this document useful (0 votes)
32 views

Robertson Plot

This document contains Matlab code that generates an ideal Robertson plot by mapping input voltages from -1 to 1 to output voltages. The code uses a loop to multiply inputs less than or equal to 0 by 2 and add 1, and inputs greater than 0 by 2 and subtract 1, then plots the input-output mapping with labeled axes and a title describing the ideal Robertson plot.

Uploaded by

Surya Padma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views

Robertson Plot

This document contains Matlab code that generates an ideal Robertson plot by mapping input voltages from -1 to 1 to output voltages. The code uses a loop to multiply inputs less than or equal to 0 by 2 and add 1, and inputs greater than 0 by 2 and subtract 1, then plots the input-output mapping with labeled axes and a title describing the ideal Robertson plot.

Uploaded by

Surya Padma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

1 %Date 05-02-17 Mon

2 %ideal robertson plot


3 vin = linspace(-1 , 1 , 2001);
4 for i = 1:2001
5 if(vin(i) <= 0 )
6 vout(i) = vin(i)*2 + 1;
7 else
8 vout(i) = vin(i)*2 - 1;
9 end
10 end
11 plot (vin , vout )
12 xlabel('input: -vin to vin')
13 ylabel('output: MDAC output')
14 title('Robertson Plot: ideal')
15

You might also like