Matlab could someone help me write the code %want to store the particular solution in xp. initialize xp set it to be the zero column vector with decent dimension using the pivot columns from A generate pA solve for pA*temp=b where temp is a temporary vector using pA\b put temp in the positions of xp output xp

At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get our expert's

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this and thousands of other questions.

A community for students.

Matlab could someone help me write the code %want to store the particular solution in xp. initialize xp set it to be the zero column vector with decent dimension using the pivot columns from A generate pA solve for pA*temp=b where temp is a temporary vector using pA\b put temp in the positions of xp output xp

Mathematics
See more answers at brainly.com
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this and thousands of other questions

function csolve(A,b) [x,z]=size(A); pivot=[]; free=[1:1:z]; rreform = rref(A); for i=1:1:x for j=1:1:z if (rreform(i,j)==1) pivot=[pivot,j]; break; end end end free(pivot)=''; rank = length(pivot); fprintf('the rank of the coefficent matrix is %d.\n',rank); fprintf('the pivot variables are'); for i=1:1:length(pivot) fprintf('x%d',pivot(i)); end fprintf('.\n'); fprintf('the free variables are'); for j=1:1:length(free) fprintf('x%d',free(j)); end fprintf('.\n'); end
this is my current code runs and works fine
*runs*

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

I'm not too good at matlab...I'm just happy that I passed Deterministic Modeling a.k.a Mathematical Biology and I don't have to do matlab.
oh ok:/ @UsukiDoll
sorrrrrrrrry D:
its ok! @UsukiDoll im sure someone will help lol
usually it's @dan815 or @Kainui who are good at matlab but they never seem to respond and all the other matlab helpers don't show up here that often :/ But I think there's a site called stackoverflow that has online help for matlab
oh okay ill try that thanks!
http://stackoverflow.com/questions/tagged/matlab
Hi, still need help?
yes please @dan815
and what do you have left to do?
if you like a nice print you might want spaces: ` ...variables are ');` | here and some commas, | ``` ... fprintf('x%d, ... end fprintf('\b\b.\n') ... ``` using `\b` to delete the last comma (backspace)
@lljenjenll, the code you have posted does seems to work fine, but it hard to see how it matches with the question, all the variable names are different

Not the answer you are looking for?

Search for more explanations.

Ask your own question