Filter löschen
Filter löschen

I need help to how to solve this

1 Ansicht (letzte 30 Tage)
makis
makis am 6 Sep. 2021
Bearbeitet: Image Analyst am 9 Mai 2022
  2 Kommentare
DGM
DGM am 6 Sep. 2021
Bearbeitet: DGM am 6 Sep. 2021
Solve what, exactly? Describe the problem. What is the importance of the graph?
makis
makis am 6 Sep. 2021
Bearbeitet: Image Analyst am 9 Mai 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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Chunru
Chunru am 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])

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by