How can I generate a 2D triangular domain for plotting a 3D surf on it?
1 回表示 (過去 30 日間)
古いコメントを表示
Hi friends
I want to generate a equilateral triangular domain (attached photo) for plotting a 3D surf.
i used the following code to generate it but it doesn't work! I want a similar code to generate the mentioned domain.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/153411/image.png)
x=linspace(0,0.8660254,30);
y=linspace(-0.5773502692.*x,0.5773502692.*x,30);
[x, y]=meshgrid(x, y);
If you know please answer to my question as simple as you can.
Thanks a lot
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Resizing and Reshaping Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!