Solving simple equation in Matlab

  • #1
Inertigratus
128
0

Homework Statement


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.


Homework Equations


H(f)X(f) = Y(f)


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:

Answers and Replies

  • #2
Centrus
11
0
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.
 

Suggested for: Solving simple equation in Matlab

Replies
2
Views
190
Replies
2
Views
224
  • Last Post
Replies
5
Views
514
  • Last Post
Replies
1
Views
529
Replies
3
Views
1K
  • Last Post
Replies
1
Views
484
  • Last Post
Replies
10
Views
572
  • Last Post
Replies
3
Views
231
  • Last Post
Replies
1
Views
195
  • Last Post
Replies
3
Views
508
Top