Why Surface Plot is Black?
9 ビュー (過去 30 日間)
古いコメントを表示
Mahmoud Baniasadi
2016 年 2 月 1 日
コメント済み: Walter Roberson
2019 年 11 月 10 日
Hi I have a simple code as bellow. why the surface plot is black?
mi_x=3.75;
mi_y=113.75;
si_x=11.78511;
si_y=250.2842;
cor_coef=0.964811;
fxy1=(1/(2*pi*si_x*si_y*sqrt(1-cor_coef^2)));
exp1=-1/(2-2*cor_coef^2);
[x,y] = meshgrid(0:50,0:975);
exp2=(((x-mi_x)/si_x).^2-2.*cor_coef*(x-mi_x).*(y-mi_y)/si_x/si_y+((y-mi_y)/si_y).^2);
fxy=fxy1.*exp(exp1.*exp2);
surf(x,y,fxy);
Why Plot is black!! I tried codes in help, but it didn't work for me !

Thanks
0 件のコメント
採用された回答
Walter Roberson
2016 年 2 月 1 日
Change to
surf(x, y, fxy, 'edgecolor', 'none');
3 件のコメント
Walter Roberson
2019 年 11 月 10 日
maaham banu could you confirm that you are getting a surface output, and that you used edgecolor none, but that the surface is all black? If so is it possible that your colormap is all black, or that you have a caxis() call in effect?
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!