LINSPACEM

Compact/fast version of LINSPACEN(by Duane Hanselman).
2.1K descargas
Actualizado 11 Feb 2005

Sin licencia

LINSPACEM Linearly Spaced Array.
LINSPACEM(X1,X2,N) where X1 and X2 are scalars generates a
row vector of N equally spaced points between X1 and X2.

If X1 and X2 are row vectors of the same size, LINSPACEN(X1,X2,N)
creates a matrix having N rows where the i-th column of the result
contains N equally spaced points between X1(i) and X2(i).

If X1 and X2 are column vectors of the same size, LINSPACEN(X1,X2,N)
creates a matrix having N columns where the i-th row of the result
contains N equally spaced points between X1(i) and X2(i).
For N<2 or X1=X2 LINSPACEM returns X2.

If N is not provided, N=100 is used.

See also: LINSPACE, LOGSPACE, LOGSPACEM

This submission was inspired by the function linspacen by Duane Hanselman.

Citar como

Mukhtar Ullah (2024). LINSPACEM (https://www.mathworks.com/matlabcentral/fileexchange/5835-linspacem), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R14
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Creating and Concatenating Matrices en Help Center y MATLAB Answers.

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0

improved documentation