A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

anonymous

  • one year ago

could someone please help me with my matlab code

  • This Question is Closed
  1. UsukiDoll
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    I feel your pain. I had to do matlab last semester T_T oh oh! I know who can help >:D @dan815

  2. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    ok thanks! @UsukiDoll

  3. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    could u help me please @dan815

  4. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    2 Attachments
  5. ybarrap
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 3

    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?

  6. ybarrap
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 3

    In line 4 of your code -- what does pivot=[pA] do? There is not matrix pA defined

  7. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    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

  8. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    let me show you

  9. ybarrap
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 3

    ok

  10. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    1 Attachment
  11. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    my original code that works does not have pivot=[pA] nor xp=zeros;

  12. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    it just has pivot=[ ]

  13. ybarrap
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 3

    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.

  14. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    this is what my answer is supposed to be

    1 Attachment
  15. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    so then how to i initialize xp to be the zero column vector ?

  16. ybarrap
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 3

    zeros(m,n) should do it because the particular solutions won't span more than n columns or m rows

  17. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    oh ok thanks

  18. ybarrap
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 3

    Is that it?

  19. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    yes the rest seems pretty straight forward right?

  20. ybarrap
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 3

    It does if you understand pivots, free variables, particular solutions, the null space, rank etc, and of course Matlab

  21. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    ok its just that im new to this and struggle quite a bit

  22. ybarrap
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 3

    Have you taken a Linear Algebra class where you studied column spaces and free variables, where n > m ?

  23. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    yes i did

  24. ybarrap
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 3

    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

  25. ybarrap
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 3

    I use Octave now -- open source Matlab

  26. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    oh ok i will thanks a lot for your help!!

  27. ybarrap
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 3

    You're welcome. Good luck my friend!

  28. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    loved matlab. But i moved on to c++ tho. SOrry :(

  29. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.