I need help to how to solve this

1 次查看(过去 30 天)
makis
makis 2021-9-6
  2 个评论
DGM
DGM 2021-9-6
编辑:DGM 2021-9-6
Solve what, exactly? Describe the problem. What is the importance of the graph?
makis
makis 2021-9-6
编辑:Image Analyst 2022-5-9
I have to make a program and when I run it, it has to make these two shapes.
I am trying to pass a test, and, in one of the questions, the professor asked us to make this.

请先登录,再进行评论。

回答(1 个)

Chunru
Chunru 2021-9-6
r_shape = [-1 0; 0 -1; 1 0; 0 1];
t_shape = [-0.5 -0.866; 1 0; -0.5 0.866];
plot(r_shape([1:end 1], 1), r_shape([1:end 1], 2), 'r-');
hold on
plot(t_shape([1:end 1], 1), t_shape([1:end 1], 2), 'b--');
axis equal
grid on
axis([-1 1 -1 1])

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by