1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Solving simple equation in Matlab

  1. Sep 17, 2011 #1
    1. The problem statement, all variables and given/known data
    I want to solve for H(f).
    I know that f is supposed to be constant.
    X(f) and Y(f) are both column vectors with a total of 32768 rows.


    2. Relevant equations
    H(f)X(f) = Y(f)


    3. The attempt at a solution
    I tried dividing, H(f) = Y(f)/X(f) but got an "Out of Memory" error.
    It's not a matrix so I can't find an inverse too.
    Any ideas?
    I think H(f) is supposed to be a column vector as well, but since f is supposed to be constant then all entries will be the same.
    Nevermind, It's simply elementwise division, but something's wrong...
     
    Last edited: Sep 17, 2011
  2. jcsd
  3. Sep 18, 2011 #2
    Hi,

    To perform element-wise division in Matlab (which I think is what you're trying to do), you must precede the forward slash with a full stop.

    I.e. replace '/' with './'

    Matlab performs matrix right division when the operator '/' is used, and I'm not entirely sure what that entails for two column vectors.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Solving simple equation in Matlab
Loading...