Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to compare two figures of different codes(files) on the same plot????????

Status
Not open for further replies.

Maheswaram Chaitanya

Newbie level 1
Newbie level 1
Joined
Apr 3, 2015
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
6
frnds i have written codes for ber of bpsk and qpsk on the different M-files....now i want to see the plots on the same figure....can you plz help me to get out from this problem??plz respond as quick as possible??Thanks you guys.......:p
 

Hi,

You can do it using subplot function.To know more about subplot:https://in.mathworks.com/help/matlab/ref/subplot.html

For example,say for in 1st m file you plot a cosine function & in 2nd you are plotting sine function & you want to plot both on a same plot:

My 1st m file:
Code:
figure;
subplot(1,2,1);
plot(0:360,cosd(0:360));

My 2nd m file:
Code:
subplot(1,2,2);
plot(0:360,sind(0:360));

You get both sine & cosine on same "figure".
Extend my example to your code
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top