Home > Common Problem > body text

What does linspace mean in matlab

藏色散人
Release: 2020-05-12 11:05:47
Original
31313 people have browsed it

What does linspace mean in matlab

What does linspace mean in matlab?

linspace is the average calculation instruction in Matlab, which is used to generate a linear vector of N points between x1 and x2.

Function introduction

Usage

linspace(x1,x2,N)
Copy after login

Function

linspace is the average calculation instruction in Matlab, used to generate x1, Linear vector between N points in x2. Among them, x1, x2, and N are the starting value, the ending value, and the number of elements respectively. If the default is N, the default number of points is 100.

Enter help linspace or doc linspace in the command window of matlab to get help information for this function.

Related functions: logspace

Usage: x=logspace(a, b, n)

Function: logspace(a, b, n) Generate an array, the first element of the data is a, the last element is b, and n is the total number of sampling points. It should be noted that the array elements generated at this time are not evenly distributed from 10^a to 10^b, but form a logarithmic curve.

The above is the detailed content of What does linspace mean in matlab. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!