I have a meshgrid mask array that has the temperature distribution along the geometry (x,y,t). I need to make a graph of the temperature change along, let's say, y = 10.
How would I go about doing this?
I have a meshgrid mask array that has the temperature distribution along the geometry (x,y,t). I need to make a graph of the temperature change along, let's say, y = 10.
How would I go about doing this?
I am not sure why you represent your data in 3D meshgrid while you work on 2D meshgrid, assuming t
in (x, y, t)
stands for temperature. If you create a 2D meshgrid and calculate t, then it is easy to plot it, e.g:
x = 1:20;
y = 1:20;
[X, Y] = meshgrid(x, y);
t = X.^2 + Y.^2; % Add your t equation here using your meshgrid X and Y
figure;plot(x, t(10,x));