How to generate straight lines to 2D target points, each straight line is connected by 10 points which represent 10 steps from (0,0) to target point, for example (5,6)?

1 回表示 (過去 30 日間)
Hi, I am a beginner on MATLAB, recently I was stuck on a task, look forward to your help.
My question is How to generate straight lines to 2D target points, each straight line is connected by 10 points which represent 10 steps from (0,0) to target point, for example (5,6)?
Thank you very much
  3 件のコメント
Gali
Gali 2021 年 4 月 4 日
The crow files is fine, thx!

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

採用された回答

darova
darova 2021 年 4 月 4 日
What about this
x = rand(20,1);
y = rand(20,1);
line([x x*0]',[y y*0]')

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by