Function that returns the number given squared

조회 수: 3 (최근 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 CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by