view private/plot_cvec.m @ 15:a6d5597bd922

Trying alternative fixed point computation in mc_global_info1>mc_fixpt2; Also factored out randnat from some other functions.
author samer
date Mon, 27 Feb 2012 14:41:24 +0000
parents e9b425233168
children
line wrap: on
line source
% plot_cvec - Plot complex vector as bar chart
function plot_cvec(x)
	if isreal(x)
		bar(x);
	else
		bar([real(x),imag(x)]);
		%legend({'real','imag'});
	end
	xlim([0.5, length(x)+0.5]);
end