could someone please help me with my matlab code
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
ok
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.
this is what my answer is supposed to be
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 :(
Join our real-time social learning platform and learn together with your friends!