Sin and delta functions in matrix
5 次查看(过去 30 天)
显示 更早的评论
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
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.
回答(1 个)
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
I haven't understood which delta function is being referred to, in the question . Kindly provide more information about it.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Octave 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!