MATLAB Answers

Does anyone know how to plot a 3d plot with flat x and y axis? Like this: www.shmoop​.com/syste​ms-equatio​ns-inequal​ities/thre​e-d-graphs​.html

1 view (last 30 days)
Torjus Settendal
Torjus Settendal on 3 May 2017
Answered: Harsh on 11 May 2017
figure();
set(0,'DefaultAxesFontSize',24);
for i=1:length(testno)
x=Data(i).position/10;
y= Data(i).t;
z1=Data(i).voltage2/1000;
z2=Data(i).voltage3/1000;
z3=Data(i).voltage4/1000;
plot3(x,y,[z1,z2,z3])
end
xlabel('length');
ylabel('Time');
zlabel('Voltage');

Answers (2)

Chaitral Date
Chaitral Date on 8 May 2017
Edited: Chaitral Date on 8 May 2017
Can not see any example in the above link. Please share the image along with the input 'Data' for the above code.

Harsh
Harsh on 11 May 2017
Hello Torjus,
If you still need help with this, please contact MathWorks Technical Support here: https://www.mathworks.com/support/contact_us/
Please be sure to provide a detailed description of the issue and attach any relevant files / code / examples required to investigate the issue.

Community Treasure Hunt

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

Start Hunting!