comparison private/plot_cvec.m @ 12:e9b425233168

Forgot to add plot_cvec.m
author samer
date Sun, 26 Feb 2012 23:11:48 +0000
parents
children
comparison
equal deleted inserted replaced
11:0e0f2805ef9c 12:e9b425233168
1 % plot_cvec - Plot complex vector as bar chart
2 function plot_cvec(x)
3 if isreal(x)
4 bar(x);
5 else
6 bar([real(x),imag(x)]);
7 %legend({'real','imag'});
8 end
9 xlim([0.5, length(x)+0.5]);
10 end
11