3D modelling in MATLAB

  • MATLAB
  • Thread starter RK10
  • Start date
  • #1
3
0

Main Question or Discussion Point

How can we merge 3 FFT spectrum graphs in one as shown in the picture?
AND THANK YOU

I have written the codes for the 3 spectrums but need to join them as shown.
 

Attachments

Answers and Replies

  • #2
54
0
Okay here are the steps you need to follow:


Let's say you have the following data with you.

X,Y : Value for x,y axes for all the graphs.
Z1 : Value of Z for the first graph
Z2 : Value of Z for the second graph
Z3 : Value of Z for the third graph

Steps:

1. Open an empty figure by typing "figure" in the command window.
2. Click on the window like structure given above in the tool bar just below "Help" (you must have used to type title of the figure and all).


3. Now when you open it, then either you can see "Figure Palette", if yes then proceed to next 4, otherwise click on the Desktop, and select Figure Palette from there (same as you do to see command window, workspace etc).

4. There you can see "New Subplots", select 3D Axes as many as you want.
5. Now once you got three 3D axes on the figure, you can add data to them by right clicking the axes.
6. Hope it works.

By the way nice figures :)
 
  • #3
1,233
17
To implement this in code you'd use the subplot command,

figure;
subplot(1,3,1) % splits the figure into three side-by-side figures and selects the first
[put code to generate image 1 here]
subplot(1,3,2)
[image 2]
subplot(1,3,3)
[image 3]
 

Related Threads on 3D modelling in MATLAB

Replies
0
Views
5K
Replies
0
Views
2K
  • Last Post
Replies
0
Views
5K
  • Last Post
Replies
1
Views
6K
  • Last Post
Replies
1
Views
8K
  • Last Post
Replies
6
Views
105K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
2
Views
2K
Replies
0
Views
3K
  • Last Post
Replies
1
Views
16K
Top