LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Matlab code for an image in labview

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

Message Edited by Nghtcrwlr on 03-18-2009 09:25 AM
Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 1 of 3
(2,566 Views)

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. 

0 Kudos
Message 2 of 3
(2,553 Views)

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 

0 Kudos
Message 3 of 3
(2,537 Views)