how do plot a 3d plot, example like a water fall plot?
2 views (last 30 days)
Show older comments
so my code is as following
plot3(radiationx,radiationy,radiationz)
here the matrix data base file looks like this

here the error i keep getting is "Vectors must be the same length"
as seen they are same dimentions, i even tried meshgrid function but similar error of length. what am i doing wrong here
0 Comments
Answers (1)
Voss
on 4 Apr 2022
Try this:
% first I make some variables with the same names
% and sizes as yours, since I don't have yours:
radiationx = (1:247).';
radiationy = 1:24;
radiationz = rand(247,24);
% now I make a waterfall plot out of them:
[XX,YY] = meshgrid(radiationx,radiationy);
waterfall(XX,YY,radiationz.')
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
