Function that returns the number given squared

2 ビュー (過去 30 日間)
Juliana Fernandez
Juliana Fernandez 2021 年 5 月 12 日
編集済み: Stephan 2021 年 5 月 12 日
If you would like to make a function that returns the number given squared, and would
like to store it in a file named Square.m which of the following function declarations
would you use?
a. function result = square(input)
b. function square = result(input)
c. function input = square(result)
d. square = function(input)

回答 (1 件)

Stephan
Stephan 2021 年 5 月 12 日
編集済み: Stephan 2021 年 5 月 12 日

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by