Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
/* clear clc xdel(winsid()); x=linspace(0,20*%pi,50); y=cos(2*%pi*x/16); subplot(2,1,1) plot(x,y) xtitle('Funkcja cosinus') X=fft(y,-1); subplot(2,1,2) plot2d3(x,real(X)) plot(x,real(X), 'ro'); xtitle('FFT funkcji cosinus') */ /* clear clc xdel(winsid()); n=0:10; a=n+1; x=a.*sin(2*%pi*n/10); X=fft(x); plot(a,x) figure plot2d3(n,real(X)) plot(n,real(X),'ro') a = gca () ; a.x_location ="origin"; a.y_location ="left"; */ clear clc xdel(winsid()); n=0:15; a=0.3; w=5:0.5:12.5; x=a.*sin(w.*%pi.*n/16); X=fft(x); plot(n,x) figure plot2d3(n,real(X)) plot(n,real(X),'ro') a = gca () ; a.x_location ="origin"; a.y_location ="left";
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)