Plot Slice of pdeplot3D
Ältere Kommentare anzeigen
Hello
I would like to plot a slice of the pdeplot3D(model,'ColorMapData',U) at a certain y-Coordinate, so that the plot has a x-z-View and the results U are still defined by the ColorMap.
I have tried the slice-function, but this results in an error (Maximum variable size allowed by the program is exceeded.) This is what I tried with interp3:
YCross=2;
Xgrid=linspace(1,10,50);
Zgrid=Xgrid;
UCross=interp3(p(1,:),p(2,:),p(3,:),U,Xgrid,YCross,Zgrid);
But I got the error: The grid vectors must contain unique points. I understand, that my p-vectors are not unique, but how to solve the Problem?
Akzeptierte Antwort
Weitere Antworten (1)
Ravi Kumar
am 23 Apr. 2018
0 Stimmen
Kategorien
Mehr zu Geometry and Mesh finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!