Color map and shading interp not working with plot3
조회 수: 6 (최근 30일)
이전 댓글 표시
I am using the matlab function plot3 to plot in 3D space. I am using a matrix called x_new, a vector called T_disc and a matrix called all_out. Essentially, the x_new matrix is the discretised x-axis, however each vector within it has been multiplied by a different constant (hence why its a matrix). T_disc is the discretised t-axis, whilst all_out is the output data.
My problem is, when I try to plot this with either shading interp on some kind of color map, like this
plot3(x_new,T_disc,all_out);
shading interp
It just produces the plot in the image attached (See IMAGE ATTACHED). I would like this image to show a heat distribution just like shading interp would do.
Any thoughts?
댓글 수: 0
채택된 답변
KSSV
2020년 2월 11일
surf(x_new,T_disc,all_out);
shading interp
Shading interp works with pcolor/ surf.
댓글 수: 3
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Red에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!