Write a script that will create a (random) vector of ages then make a graph in matlab

1 回表示 (過去 30 日間)
Selena Mendoza
Selena Mendoza 2016 年 4 月 1 日
編集済み: Matthew Eicholtz 2016 年 4 月 6 日
Write a script that will create a (random) vector of ages (real numbers, not integers). The script should contain the following prompts: - the user will provide the number of elements in the vector. - the user will provide the age of the oldest person in the group.
please see attachments for more precise instructions. Thank you!

回答 (1 件)

Matthew Eicholtz
Matthew Eicholtz 2016 年 4 月 1 日
編集済み: Matthew Eicholtz 2016 年 4 月 6 日
Instead of asking the community to write the full script for you, I suggest trying to write something yourself and then posting here when you get stuck. Listed below are some useful functions to get you started. Look them up online or by typing "help function_name" or "doc function_name" in the Command Window.
  • rand
  • input
  • save
  • load

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by