Thread Subject: NEED URGENT HELP PLEASE !!!

Subject: NEED URGENT HELP PLEASE !!!

From: Carlo Castellucci

Date: 18 Mar, 2009 23:45:40

Message: 1 of 4

MatLab gives me the following warning "MISSING MATLAB OPERATOR" whenever I try to paste the following square matrix in the command window ( it is 11x11 sized )...

A=[0,1,1,1,0,10,1,0,0,0,0;-2,0,0,4,2,8,0,0,3,2,1;-1,1,2,0,0,0,0,0,0,0,0;0,0,0,0,0,0,0,0,0,1,0;0,0,0,0,0,0,0,0,0,0,1;0,0,0,0,0,0,0,2,1,0,0;...
    1,0,0,0,0,0,0,0,0,0,0;0,0,0,0,0,0,1,0,0,0,0;0,0.1,0.1,-0.9,0.1,0.1,0,0.1,0.1,0.l,0.1;...
    0,8.7617*10^-5,8.7617*10^-5,8.7617*10^-5,8.7617*10^-5,-0.9999,0,8.7617*10^-5,8.7617*10^-5,8.7617*10^-5,8.7617*10^-5;0,0,0,0,0,0,0,0,0.8225,0,0];

I don't know what it is wrong about it and I really need this matrix to solve a square linear system with backslash...

Thanks you all...feel free to adress your answer to my mailbox assorecato@hotmail.it as well or just post it here

Subject: NEED URGENT HELP PLEASE !!!

From: Darren Rowland

Date: 19 Mar, 2009 00:15:03

Message: 2 of 4

Carlo, it is a good idea to choose a more descriptive heading than 'Help needed'.

With regards to your problem I can see that at least one of the rows contains an error
0,0.1,0.1,-0.9,0.1,0.1,0,0.1,0.1,*0.l*,0.1;

Also to make things clearer you should assign the 'magic number' to a variable
c = 8.7617*10^-5;
then use c in the matrix.

I don't know if there are any other errors but hope that helps
Darren

Subject: NEED URGENT HELP PLEASE !!!

From: Freelance Embedded Systems Engineer

Date: 19 Mar, 2009 00:32:29

Message: 3 of 4

Carlo Castellucci wrote:
> MatLab gives me the following warning "MISSING MATLAB OPERATOR" whenever I try to paste the following square matrix in the command window ( it is 11x11 sized )...
>
> A=[0,1,1,1,0,10,1,0,0,0,0;-2,0,0,4,2,8,0,0,3,2,1;-1,1,2,0,0,0,0,0,0,0,0;0,0,0,0,0,0,0,0,0,1,0;0,0,0,0,0,0,0,0,0,0,1;0,0,0,0,0,0,0,2,1,0,0;...
> 1,0,0,0,0,0,0,0,0,0,0;0,0,0,0,0,0,1,0,0,0,0;0,0.1,0.1,-0.9,0.1,0.1,0,0.1,0.1,0.l,0.1;...
> 0,8.7617*10^-5,8.7617*10^-5,8.7617*10^-5,8.7617*10^-5,-0.9999,0,8.7617*10^-5,8.7617*10^-5,8.7617*10^-5,8.7617*10^-5;0,0,0,0,0,0,0,0,0.8225,0,0];
>
> I don't know what it is wrong about it and I really need this matrix to solve a square linear system with backslash...
>
> Thanks you all...feel free to adress your answer to my mailbox assorecato@hotmail.it as well or just post it here


Search your string for a lowercase "L" and replace it with a "ONE".
??? 0,0.1,0.1,-0.9,0.1,0.1,0,0.1,0.1,0.l,0.1; ...
                                           |

Subject: NEED URGENT HELP PLEASE !!!

From: John D'Errico

Date: 19 Mar, 2009 00:58:01

Message: 4 of 4

"Carlo Castellucci" <xxcarlo_rossixx@yahoo.it> wrote in message <gps134$6eq$1@fred.mathworks.com>...
> MatLab gives me the following warning "MISSING MATLAB OPERATOR" whenever I try to paste the following square matrix in the command window ( it is 11x11 sized )...
>
> A=[0,1,1,1,0,10,1,0,0,0,0;-2,0,0,4,2,8,0,0,3,2,1;-1,1,2,0,0,0,0,0,0,0,0;0,0,0,0,0,0,0,0,0,1,0;0,0,0,0,0,0,0,0,0,0,1;0,0,0,0,0,0,0,2,1,0,0;...
> 1,0,0,0,0,0,0,0,0,0,0;0,0,0,0,0,0,1,0,0,0,0;0,0.1,0.1,-0.9,0.1,0.1,0,0.1,0.1,0.l,0.1;...

Typo. See that next to last 1 on this line?
Not a 1.


> 0,8.7617*10^-5,8.7617*10^-5,8.7617*10^-5,8.7617*10^-5,-0.9999,0,8.7617*10^-5,8.7617*10^-5,8.7617*10^-5,8.7617*10^-5;0,0,0,0,0,0,0,0,0.8225,0,0];

You do know that you can write

8.7617*10^-5

as

8.7617E-5

Easier to read. easier to write.

John

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
code Darren Rowland 18 Mar, 2009 20:20:05
rssFeed for this Thread

Contact us at files@mathworks.com