LINSPACEM

Version 1.0.0.0 (669 octets) par Mukhtar Ullah
Compact/fast version of LINSPACEN(by Duane Hanselman).
2,1K téléchargements
Mise à jour 11 fév. 2005

Aucune licence

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.

Citation pour cette source

Mukhtar Ullah (2024). LINSPACEM (https://www.mathworks.com/matlabcentral/fileexchange/5835-linspacem), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R14
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Help Center et MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.0.0.0

improved documentation