# linspace

> An implementation of MATLAB's linspace

Latest version **1.0.2** (published 2022-03-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install linspace
pnpm add linspace
yarn add linspace
bun add linspace
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2022-03-23 |
| First published | 2012-05-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Author | Josh Holbrook |
| Maintainers | jfhbrook |
| Keywords | linspace, matlab |

## Links

- npm: https://www.npmjs.com/package/linspace
- Repository: https://github.com/jfhbrook/public
- Homepage: https://github.com/jfhbrook/node-linspace
- Issues: https://github.com/jfhbrook/public/issues
- npm.io page: https://npm.io/package/linspace

## Dependencies (1)

- [lodash.range](https://npm.io/package/lodash.range.md) 3.1.7

## Recent versions

- 1.0.2 (latest) — 2022-03-23
- 1.0.1 — 2021-08-15
- 1.0.0 — 2016-08-10
- 0.0.1-1 — 2012-05-23
- 0.0.1 — 2012-05-23
- 0.0.0 — 2012-05-23

## README

# linspace

An implementation of MATLAB's linspace function.

## install

```bash
npm install linspace
```

## require

```javascript
var linspace = require('linspace');
```

## use

### linspace(from, to, length)

Acts like linspace from matlab:

```
> linspace(1,5,15)
[ 1,
  1.2857142857142856,
  1.5714285714285712,
  1.8571428571428568,
  2.1428571428571423,
  2.428571428571428,
  2.7142857142857135,
  2.999999999999999,
  3.2857142857142847,
  3.5714285714285703,
  3.857142857142856,
  4.1428571428571415,
  4.428571428571427,
  4.714285714285713,
  4.999999999999998 ]
```

## license

MIT/X11

---
_Source: https://npm.io/package/linspace · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
