How to create a matrix with A columns and the last column being all zeros in Matlab?

Status
Not open for further replies.

bakkali

Junior Member level 1
Joined
Mar 9, 2006
Messages
19
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,379
who's the best ethod to solve AX=0 with A and X are matrices (N components)
i wil programi it with Matlab
pls help
 

Re: solving

I guess you are looking for the nontrivial solution. I think you should solve it So, I am sure that Matlab has a function to put a matrix in row reduced echelon form. Create a matrix with A columns and the last column being all zeros. I know this is of limited help, but your question seems vague.
 

    bakkali

    Points: 2
    Helpful Answer Positive Rating
Re: solving

yes i'm looking for the nontrivial solution. how can i create a matrix with A columns and the last column being all zeros?
thanks
 

Re: solving

So you need to make a matrix. Say it is four by four. Then here is the code:
each semicolon separates a column of the matrix.
A = [1 2 3 4; 1 2 3 4; 1 2 3 4; 0 0 0 0];
rref(A);

display(A)

Added after 2 minutes:

They represent the rows i think, I mean. Sorry.
 

    bakkali

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…