필터 지우기
필터 지우기

Sin and delta functions in matrix

조회 수: 5 (최근 30일)
Firas Kareem
Firas Kareem 2020년 8월 3일
댓글: Firas Kareem 2020년 8월 6일
Hello , how can i creat two matirces one of them is sin function with 3*3 matrix and the second one is delta function with 3*3 matrix ,appreciate your support.
  댓글 수: 2
John D'Errico
John D'Errico 2020년 8월 3일
What do you mean by a sin function with a 3x3 matrix? For that matter, a delta function with a 3x3 matrix is as confusing. Please give an example of what you are trying to create, as what you are asking is a bit too vague to offer much help.
Firas Kareem
Firas Kareem 2020년 8월 3일
편집: Firas Kareem 2020년 8월 3일
Hello Mr. John , thanks for your reply , i mean i need to creat a matrix with sine signal ,so all elements of the matrix should be sine function like sin(wt) as a gating signal , the same for delta function in other matrix as recived photons in Single photons detectors array .

댓글을 달려면 로그인하십시오.

답변 (1개)

Rohit Pappu
Rohit Pappu 2020년 8월 6일
As per my understanding of your question, you would like to apply sine function on 3x3 matrix. In MATLAB, when a sine function is applied to a matrix, it works element wise.
Example :
% Create a matrix of random numbers of size 3x3
X = rand(3)
% Apply sin() to the given matrix
Y = sin(X)
% The resultant matrix Y contains the sin() of each element of X
Please refer to the documentation here for more information of sin().
I haven't understood which delta function is being referred to, in the question . Kindly provide more information about it.
  댓글 수: 1
Firas Kareem
Firas Kareem 2020년 8월 6일
Hello Mr. Rohit , thanks for your answer , i mean i need the matrix with Sin(wt) variable elments not like values of x , as i need to do FFT after that ,also the delta function is the dirac function so i need all the element like Dirac(t) with variables to convert it for time domain to frequency domain .

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Octave에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by