How to change length of an input signal? signal X in below example?
2 次查看(过去 30 天)
显示 更早的评论
Hello everyone
Below is code that i want to run for different duration. What actually effects the lenght in below code. I thought N changes number of code bit it does not changes with any value of N. If i have to run it for long what should i change?

Code is pasted in above line. Thats how time is defined in my long code. Last two lines dummy plot just to show signal.
2 个评论
Akira Agata
2020-4-13
What does the following two lines in your code mean?
These lines must return error.
wu 1.2868e + = 04;
and
time = time T * / N;
采纳的回答
David Hill
2020-4-13
wu=1.2868e4;
T=20/wu;%change T
N=200;
t=1:N;
t=T*t/N;
x=sin(16000*t);
plot(t,x);
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!