Clear Filters
Clear Filters

I need help to how to solve this

1 view (last 30 days)
makis
makis on 6 Sep 2021
Edited: Image Analyst on 9 May 2022
  2 Comments
DGM
DGM on 6 Sep 2021
Edited: DGM on 6 Sep 2021
Solve what, exactly? Describe the problem. What is the importance of the graph?
makis
makis on 6 Sep 2021
Edited: Image Analyst on 9 May 2022
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.

Sign in to comment.

Answers (1)

Chunru
Chunru on 6 Sep 2021
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])

Categories

Find more on Programming in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!