From 4d xyzc scater points to a surface plot
Show older comments
Hi, I have a 4d data with different lenght of dimensions. x=latitude (1xm), y=longtitude(1xn), z=height (1xh) and d=tempereture (mxnxh). d=f(x,y,z) is the value considered at these points. I'm trying to plot a surface for x,y,z points and the color is d. What I made in my code is scatter plot but I couldn't plot a surface. Can you help me, please?
clear all; close all; clc
load profileNethreed;
x=[36:1:42];
y=[26:1:45];
z=[80:10:1000];
d=profileNethreed;
[LAT,LON, HEIGHT] = meshgrid(x,y,z);
scatter3(LAT(:),LON(:),HEIGHT(:),[],profileNethreed(:),'filled');
Accepted Answer
More Answers (0)
Categories
Find more on Surface and Mesh 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!