フィルターのクリア

Command for triangle

3 ビュー (過去 30 日間)
WONG SIAN
WONG SIAN 2011 年 2 月 18 日
コメント済み: Conor Nelson 2017 年 10 月 25 日
1.A figure shows a triangle defined by the vertex coordinates (x1 ,y1 ) ,(x2 ,y2 ) , and (x3 ,y3 ).
Write a MATLAB program that will i. Interactively prompt a user for x and y coordinates at each of the triangle vertices. ii. Draw the triangle and label it vertices (optional). iii. Compute and print the area of the triangle and its perimeter.

回答 (1 件)

Matt Tearle
Matt Tearle 2011 年 2 月 18 日
MATLAB Answers is a place you can get help from the user community on specific MATLAB questions. It is not intended as a place to have strangers do your homework for you. (You might also want to check with your instructor about their policy on such practices -- I suspect it is not approved.)
If you want help with homework, that's fine, but:
  1. show what you have done so far
  2. ask a specific question about either specific MATLAB syntax/constructs, or general guidance (such as "what functions should I look at to achieve [result]")
If you need help with the very basics of MATLAB, the answers to this question have many suggested resources.
  1 件のコメント
Conor Nelson
Conor Nelson 2017 年 10 月 25 日
Boooo Matt

サインインしてコメントする。

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by