Effacer les filtres
Effacer les filtres

I need help to how to solve this

1 vue (au cours des 30 derniers jours)
makis
makis le 6 Sep 2021
  2 commentaires
DGM
DGM le 6 Sep 2021
Modifié(e) : DGM le 6 Sep 2021
Solve what, exactly? Describe the problem. What is the importance of the graph?
makis
makis le 6 Sep 2021
Modifié(e) : Image Analyst le 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.

Connectez-vous pour commenter.

Réponses (1)

Chunru
Chunru le 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])
  1 commentaire
Walter Roberson
Walter Roberson le 6 Sep 2021
This was not only homework but a test !

Connectez-vous pour commenter.

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by