Respuesta aceptada

Amit
Amit el 25 de En. de 2014
A = (linspace(17,289,17))';

3 comentarios

Ian
Ian el 25 de En. de 2014
Pefect! Thanks!
A = linspace(17,289,17)'
Amit
Amit el 25 de En. de 2014
The extra brackets are just habit, due to few times issue with 1:10' and (1:10)'!

Iniciar sesión para comentar.

Más respuestas (1)

Mischa Kim
Mischa Kim el 25 de En. de 2014
Editada: Mischa Kim el 25 de En. de 2014

0 votos

Use
c = linspace(17, 289, 19)
This results in 19 data points, including the two end points, 17 and 289. To switch between row and column vector simply use the "prime"
c'

Categorías

Más información sobre Matrices and Arrays en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

Ian
el 25 de En. de 2014

Comentada:

el 25 de En. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by