Function that returns the number given squared

2 visualizzazioni (ultimi 30 giorni)
Juliana Fernandez
Juliana Fernandez il 12 Mag 2021
Modificato: Stephan il 12 Mag 2021
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)

Risposte (1)

Stephan
Stephan il 12 Mag 2021
Modificato: Stephan il 12 Mag 2021

Categorie

Scopri di più su Multidimensional Arrays in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by