Linked Questions

Popular Questions

Creating a linearly spaced array of a particular size

Asked by At

I am new to MATLAB and currently working on my homework assignment. I am trying to declare the x variable as the following:

Create a linearly spaced array x of size (1 × 200) comprising values ranging from –pi to pi.

I've tried this code:


but I'm not sure if it's the correct way to do this or not.

Related Questions