how to create a triangular geometry in matlab using loop?
显示 更早的评论
How can I create a triangular shape geometry in matlab using 'for loop'? Can I create grid point in this?
采纳的回答
更多回答(1 个)
Azzi Abdelmalek
2016-4-28
编辑:Azzi Abdelmalek
2016-4-28
You don't need a loop to create a triangle, just set the coordinate of your triangle. For example
t=[0 10 5 0]
y=[0 0 5 0]
plot(t,y)
or
fill(t,y,'g')
类别
在 帮助中心 和 File Exchange 中查找有关 Interpolation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
