How to mutiply 3 user inputs.

1 回表示 (過去 30 日間)
Corey Wood
Corey Wood 2020 年 9 月 23 日
コメント済み: Rik 2020 年 9 月 23 日
I am brand new at using MatLab, I want to mutiply 3 user inputs together, like for the volume of a cube. But I have no idea what to even do. After 4 hours of trying to figure it out, I am ready to give up.
  1 件のコメント
Rik
Rik 2020 年 9 月 23 日
Have you tried Matlab Onramp? It will teach you the Matlab basics. It is provided by Mathworks for free. I think that is a better use of your time than having your questions answered one at a time. If you have trouble finding Onramp, let me know and I'll post a link (it should be the top Google search result).

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

回答 (1 件)

madhan ravi
madhan ravi 2020 年 9 月 23 日
I = input('Number ?')
I .^ 3 % ?
  1 件のコメント
madhan ravi
madhan ravi 2020 年 9 月 23 日
doc prod % put them in a vector before using prod()

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

カテゴリ

Help Center および File ExchangeShifting and Sorting Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by