08-14-2009 10:07 AM
Hi!
I am trying to implement a bar3 (matlab) plot using mathscript. Basically I four sensors which are placed in a 2x2 array format. I wish to plot their output is such a way that their position in graph looks likea their physical position. But, their individual response is shown as bar (whose height changes with the output from individual sensor). I could easily do this in matlab using command like:
%data allocation as per channel location
a=rand(10,4);
for i=1:10
c(1,1)=a(i,1);
c(1,2)=a(i,2);
c(2,1)=a(i,3);
c(2,2)=a(i,4);
b=cat(3,b,c);
end
%obtain frames per iteration
for j=1:10
bar3(b(:,:,j));
M(j)=getframe(gcf,winsize);
end
I tried doing same in Labview using mathscript. But, neither I see any error nor I see an output. I would be grateful for any comment/help. Thanks in advance.
rsd
08-17-2009 09:54 AM