フィルターのクリア

how to write a code for given equation? equation detail is given below.

1 回表示 (過去 30 日間)
ajeet verma
ajeet verma 2017 年 7 月 19 日
コメント済み: KSSV 2017 年 7 月 19 日
i am trying to write the code but something being wrong so please help. code is here:
clc;
clear all;
A=5;
to=2;
tr=7;
T=10;
t=1:0.5:2;
for n=1:200;
x(n) =(2*A*to/T*mod(sin(n*pi/T),(n*pi/T))*mod(sin(n*pi*tr/T),(n*pi*tr/T)))*cos(n*2*pi/T*t+pi/2);
end
plot(x)
and for more detail find attachment.
  1 件のコメント
KSSV
KSSV 2017 年 7 月 19 日
YOu RHS inside the loop is a vector of size 1X3, so you cannot save it into a vector. You need to rethink on your code.

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

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by