How I plot 3d graph of known x,y,z ?

3 views (last 30 days)
Aasem
Aasem on 26 May 2014
Answered: Star Strider on 26 May 2014
Hi Friends,
I have random data of known x,y,z and I wanna plot them in 3d graph, please how can I do that? (I don't have any experience in plottingin matlab)
How to get the overall z equation?
The data is attached for your reference ..
Thanks in advance,
Asem

Answers (1)

Star Strider
Star Strider on 26 May 2014
I’m not certain what your x and y axes are, but it is easy to do the plot you want.
I made up some data here, but the plot is relatively simple. I added some lines to label the x and y axes to match your data:
LSI = 0.8:0.2:2.4;
Dose = 0.2:0.2:3;
InhibPct = 70+30*rand(length(LSI), length(Dose)); % Create data matrix
figure(1)
surf(InhibPct)
set(gca, 'XTickLabel',LSI, 'YTickLabel', Dose)
xlabel('LSI')
ylabel('Dose')
zlabel('Inhib %')
axis([xlim ylim, 50 100])

Tags

Community Treasure Hunt

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

Start Hunting!