Lab 6 - Matlab 3

Description

test de funciones de matlab
Maíra Rejane Marques Samary
Quiz by Maíra Rejane Marques Samary, updated more than 1 year ago
Maíra Rejane Marques Samary
Created by Maíra Rejane Marques Samary over 7 years ago
55
1

Resource summary

Question 1

Question
Suponga que se tiene la siguiente función: function f = misterio( n ) f=1; for j=1:n f=f*j; end end Ejecute la función (a mano) y diga qué valor retorna al ser llamada como “misterio(0)”,
Answer
  • 0
  • 1
  • 2
  • 4
  • 9

Question 2

Question
Suponga que se tiene la siguiente función: function f = misterio( n ) f=1; for j=1:n f=f*j; end end Ejecute la función (a mano) y diga qué valor retorna al ser llamada como “misterio(5)”,
Answer
  • 1
  • 2
  • 6
  • 24
  • 120
  • 720

Question 3

Question
Diga cuál es el resultado de aplicar arrayfun( @misterio, 1:6 )
Answer
  • 1 2 6 24 120 720
  • 1 2 6 24 120
  • 1 2 6 24
  • 1 2 6 24 120 720 5040

Question 4

Question
Escriba tu nombre: [blank_start]Maíra[blank_end] y apellido [blank_start]Marques[blank_end]
Answer
  • Maíra
  • Marques
Show full summary Hide full summary

Similar

Translations and transformations of functions
Christine Laurich
Food Technology - Functions of ingredients
evie.daines
Respiratory System
Addeana
Algebra Quiz
Norman McBrien
Functions of a Political Party
Phoebe Fletcher
Flash cards on cardiovascular system
offintowonderland
Basic Derivative Rules
Bill Andersen
The brain
Brianna Urena
JavaScript Fundamentals
Andrew Watters
The Nervous System
Mattie Condon
Membrane structure & function
kenzieaj14