Filter löschen
Filter löschen

Diagonals in a Square

4 Ansichten (letzte 30 Tage)
Kosmas-Damianos Giannakos
Kosmas-Damianos Giannakos am 26 Feb. 2016
Beantwortet: Walter Roberson am 26 Feb. 2016
Can anyone tell me how to write an M-file for graphing two diagonals on a Square shape graph by using the 'plot' command?

Antworten (1)

Walter Roberson
Walter Roberson am 26 Feb. 2016
X = 11.38; %size of square
plot([0 X X 0 0 X nan 0 X], [0 0 X X 0 X nan X 0])
axis equal

Kategorien

Mehr zu 2-D and 3-D Plots 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