Applying function to signal

I have an I-dimensional input signal
x(t)=[x1(t),...xI(t)]T
and J-dimensional input-output function
g(x)=[g1(x),....gJ(x)]T
these functions are saved as a J-dimensional matrix, while applying these functions to the input signal I should get the J-dimensional output signal by,
yj(t)=gj(x(t)) where j={1,2....J}
How to implement this in matlab?

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 1 月 27 日
編集済み: Azzi Abdelmalek 2013 年 1 月 27 日

0 投票

function J=yourfunction(I)
%write your code
%J=...

6 件のコメント

Berbia
Berbia 2013 年 1 月 27 日
I mean both x(t) and g(x) are matrices with real values..what I have to do to get y(t)? for g(x(t)), is it enough to multiply both matrices?
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 1 月 27 日
Can you provide an example?
Berbia
Berbia 2013 年 1 月 27 日
編集済み: Berbia 2013 年 1 月 27 日
size(x)=[500 5], where t=5
size(g)=[200 5]
my output signal should be size(y)=[200 5]
its possible to change the size of g as required but the size x and y should be same..
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 1 月 27 日
編集済み: Azzi Abdelmalek 2013 年 1 月 27 日
I dont know what you mean by as required. Can you give a clear example with relation between inputs and outputs
Berbia
Berbia 2013 年 1 月 27 日
I'm trying to extract the slow features from the input signal by using the algorithm Slow Feature Analysis(SFA) by using the sfa-toolkit. I'm expecting the output should be 200*5, but the tool-kit returns the output signal of dimension 500*5, where 500 is the input signal dimension.
while I changing the Slow function dimension I met with the error
??? Error using ==> mtimes
Inner matrix dimensions must agree.
so I'm wondering the dimension of g(x) which should result me the output of dimension 200*5. Anyway I can manage my project, thank you for your time and consideration.
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 1 月 27 日
Sorry, I can't understand.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeMatrix Indexing についてさらに検索

タグ

質問済み:

2013 年 1 月 27 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by