Borrar filtros
Borrar filtros

what is the meaning of the code?

3 visualizaciones (últimos 30 días)
ARJUN K P
ARJUN K P el 20 de Sept. de 2015
Respondida: Image Analyst el 20 de Sept. de 2015
last16 = 42*ones(16,1);
  1 comentario
per isakson
per isakson el 20 de Sept. de 2015
Editada: Walter Roberson el 20 de Sept. de 2015
Did you try read the help? See ones, Create array of all ones

Iniciar sesión para comentar.

Respuesta aceptada

Image Analyst
Image Analyst el 20 de Sept. de 2015
It first uses the ones() function to make a 16-by-1 column vector of 1's. Then since it multiplies that by 42, it ends up with a column vector where every element has the value of 42. Any time you see a function that you don't know what it does, look it up in the help.

Más respuestas (0)

Categorías

Más información sobre Data Types en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by