I have 6 Excel sheets each having 3 colums of data and i need to plot these in a 3D graph.How do i plot all these in one single 3D graph.

6 views (last 30 days)
I have 6 excel sheets with 3 columns of data that need to be plotted against one another to get a 3D plot.I need to plot all these in one single graph.Im new with using Matlab.Can someone just give me an idea on how to go about with this-Thankl you in advance.

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 5 Feb 2013
Edited: Azzi Abdelmalek on 5 Feb 2013
for k=1:6
data=xlsread('yourfile.xls',sprintf('sheet%d',k))
d{k}=data; % to store all your data
x=data(:,1);
y=data(:,2);
z=data(:,3)
plot3(x,y,z);
hold on;
end
hold off

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!