Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

How to generate a smaller regular rectangular by connecting the midpoint of each edge of a larger regular rectangular

3 vues (au cours des 30 derniers jours)
Hello..
please help me.., i have homework like pic on bellow:
This is half of my program
clear all;
A=[0,0;1,0;1,1;0,1;0,0]
figure(100)
plot(A(:,1),A(:,2),'-o');
hold on
  5 commentaires
Adam Danz
Adam Danz le 10 Mar 2020
Modifié(e) : Adam Danz le 11 Mar 2020
If your assignment is merely to reproduce the image using any method, this approach is fine. If your instructor is expecting to see computations, the approach to hard-coded the vertices may be insufficient.
To make the squares look like squares, set the aspect ratio using
axis equal
at the end of your code.

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by