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.
I feel your pain. I had to do matlab last semester T_T oh oh! I know who can help >:D @dan815
ok thanks! @UsukiDoll
could u help me please @dan815
What's the problem? Syntax or logic? You are trying to pick out statistics from you reduced matrix - are you not getting the values you want?
In line 4 of your code -- what does pivot=[pA] do? There is not matrix pA defined
no yes my code is fine and works well i just have to do something else with it and i dont knw how to do it
let me show you
my original code that works does not have pivot=[pA] nor xp=zeros;
it just has pivot=[ ]
So initializing pivot makes sense like that but I don't see where you are using xp in your code. I would expect pivot=[pA] to fail.
so then how to i initialize xp to be the zero column vector ?
zeros(m,n) should do it because the particular solutions won't span more than n columns or m rows
oh ok thanks
Is that it?
yes the rest seems pretty straight forward right?
It does if you understand pivots, free variables, particular solutions, the null space, rank etc, and of course Matlab
ok its just that im new to this and struggle quite a bit
Have you taken a Linear Algebra class where you studied column spaces and free variables, where n > m ?
yes i did
then you have a good leg up then - sounds like a good exercise - let me know if I can help any -- I loved Matlab -- used it for my thesis in EE a while ago
I use Octave now -- open source Matlab
oh ok i will thanks a lot for your help!!
You're welcome. Good luck my friend!
loved matlab. But i moved on to c++ tho. SOrry :(