Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Thread Subject:
Help with Matlab

Subject: Help with Matlab

From: Abu Salman

Date: 19 Mar, 2010 10:24:17

Message: 1 of 2

Hi friends
I wonder if someone can help me how to creat a matrix A of any
dimension. For a example if I want to create A=[2 1 0 0 0;0 2 1 0 0;1
0 2 1 0;0 1 0 2 1 0;0 0 1 0 2] Its just an example. I need to create
such a matrix of any dimension n. Also I need a vector v of dimension
n such that v=[3 3 4 4 4 4...........4 4 3 3]. I'll be grateful for
your quick response.

Abu Salman

Subject: Help with Matlab

From: Sadik

Date: 19 Mar, 2010 11:03:07

Message: 2 of 2

Hi Abu Salman,

What are the properties of A and v? For example, does A need to be circularly symmetric?


Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us