LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

real matrix to input array to matlab script

Hi,

 

1) I was trying to input two array's to a matlab script. One is a 2x2 and the other one is 1x2. I am using Real Matrix for this purpose.

 

But i am getting some errors ( related to  matlab script ).

 

The problem is with the input  (Real Matrix).( because, if i give the same matrix inside matlab script, it works perfectly fine). 

 

Please have a look into the snap shot. Please let me know the correct usage of this.

 

 

2) How can i display 2 dimensinal graphs? ( I used Waveform Graph and chart) But did not get the output. 

 

Basicaly i am solving  pattern classification problems and want to display contour graphs. 

 

 

 

 

 

Thanks,

 

Kishore.

 

0 Kudos
Message 1 of 9
(6,344 Views)
It would be so much easier if you could attach the actual VI. Debugging an image is not that easy. 😉
0 Kudos
Message 2 of 9
(6,336 Views)

Sorry 🙂

 

Please find it in the attachment.

 

0 Kudos
Message 3 of 9
(6,330 Views)
Any help??/?
0 Kudos
Message 4 of 9
(6,304 Views)

rebelstar wrote:

Hi,

 

1) I was trying to input two array's to a matlab script. One is a 2x2 and the other one is 1x2. I am using Real Matrix for this purpose.

 


Based on what I see from the picture both matrices are 2D. "Sigma" is 4x4 and "Real matrix" is 3x2. I think you're confusing the Index Display controls with the size of the array. Those numeric controls do not set the size of the array. They set which element is visible in the top-left corner. Please brush up on arrays and matrices in the LabVIEW Help

Message 5 of 9
(6,296 Views)

Hello,

 

Thanks for the reply, the problem is now overcome.

 

Also, i am still unclear about plotting the contour plot   equivalent in Labview 

 

In matlab i use the statement

 

 h = ezcontour(@(x,y)pdf(obj,[x y]),[-4 6],[-4 6]);

 

But this  returns a scalar quanity. I cannot use this from matlab scriptto plot the graph.

 

Is there something in labview which i can use?

 

Thanks

0 Kudos
Message 6 of 9
(6,276 Views)
Help please !
0 Kudos
Message 7 of 9
(6,254 Views)

The "h" return value is just the handles to the contour objects, so that's not going to do you any good.

 

As far as contour plots in LabVIEW, I've seen examples posted in the past, so a search should yield some possible methods. You would really need to look at them to see if they're close to what you're trying to achieve. 

0 Kudos
Message 8 of 9
(6,239 Views)
The 3D surface graph will allow you to select contours. Just pick the desired levels and set the view straight down along the z axis.
0 Kudos
Message 9 of 9
(6,235 Views)