Graphics Reference
In-Depth Information
exercise A-11
Given the complex vector V = [1 + i , i , 1- i ], find the mean, median, standard deviation, variance, sum, product,
maximum and minimum of its elements, as well as its gradient, the discrete Fourier transform and its inverse.
>> V = [1 + i, i, 1-i];
[mean(V),median(V),std(V),var(V),sum(V),prod(V),max(V),min(V)]'
ans =
0.6667 - 0.3333i
1.0000 + 1.0000i
1.2910
1.6667
2.0000 - 1.0000i
0 - 2.0000i
1.0000 + 1.0000i
0 - 1.0000i
>> gradient(V)
ans =
1.0000 - 2.0000i 0.5000 0 + 2.0000i
>> fft(V)
ans =
2.0000 + 1.0000i -2.7321 + 1.0000i 0.7321 + 1.0000i
>> ifft(V)
ans =
0.6667 + 0.3333i 0.2440 + 0.3333i -0.9107 + 0.3333i
Search WWH ::




Custom Search