フィルターのクリア

Diagonals in a Square

2 ビュー (過去 30 日間)
Kosmas-Damianos Giannakos
Kosmas-Damianos Giannakos 2016 年 2 月 26 日
回答済み: Walter Roberson 2016 年 2 月 26 日
Can anyone tell me how to write an M-file for graphing two diagonals on a Square shape graph by using the 'plot' command?

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 2 月 26 日
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

カテゴリ

Help Center および File ExchangeOperating on Diagonal Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by