03-18-2009 09:25 AM - edited 03-18-2009 09:25 AM
Hello
I am having a matlab code which works perfectly in matlab. I would like to put this code in Labview mathscript and run. How is it possiblle?
D = imread('Image name');
imagesc(D)
imshow(D)
[R,xp] = radon(D,[0 45]);
figure; plot(xp,R(:,1)); title('R_{0^o} (x\prime)')
theta = 0:360;
[R,xp] = radon(D,theta);
imagesc(theta,xp,R);
title('R_{\theta} (X\prime)');
xlabel('\theta (degrees)');
ylabel('X\prime');
set(gca,'XTick',0:20:180);
colormap(hot);
colorbar
save radon R xp -ascii -double -tabs
03-18-2009 10:09 AM
MathScript is not the same as Matlab. They are two different languages. MathScript is NI's version of a Matlab-like language. While there are a lot of similarities, there are also lots of differences. The LabVIEW Help indicates what functions are supported by MathScript.
There is a separate Matlab Script Node for entering Matlab code.
03-19-2009 03:27 AM
Hi Nghtcrwlr,
I found a few link, which should answer your questions:
LabVIEW MathScript Function List
http://digital.ni.com/public.nsf/allkb/583A5C2E5F17DEF6862571F10066AF55?OpenDocument
LabVIEW MathScript Known Issues and Limitations
http://digital.ni.com/public.nsf/allkb/2ADFD8169017977986257103006CFCC0?OpenDocument
Best regards
Dippi