Borrar filtros
Borrar filtros

I need help to how to solve this

1 visualización (últimos 30 días)
makis
makis el 6 de Sept. de 2021
Editada: Image Analyst el 9 de Mayo de 2022
  2 comentarios
DGM
DGM el 6 de Sept. de 2021
Editada: DGM el 6 de Sept. de 2021
Solve what, exactly? Describe the problem. What is the importance of the graph?
makis
makis el 6 de Sept. de 2021
Editada: Image Analyst el 9 de Mayo de 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.

Iniciar sesión para comentar.

Respuestas (1)

Chunru
Chunru el 6 de Sept. de 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])

Categorías

Más información sobre Programming en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by