LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

why can't this matlab script work?

hi
i have some problem about matlab script, the content of matlab script is below:

                                          x=-3:6/50:3;
                                          y=sin(x);
 
the output is x and y:and connect to XY Graph.
 
why this matlab script doesn't work?
and i find that the value of x always is  -3, and its value doesn't change.
i don't know what the problems.
thanks!!!
0 Kudos
Message 1 of 4
(2,664 Views)
I don't have currently matlab installed, so I cannot test, but ... did you define each output tunnel (x, and y) to be a 1D array? (right-click on the tunnel, etc...)
0 Kudos
Message 2 of 4
(2,660 Views)
i haven't defined 1D array.how to define? thanks a lot!
0 Kudos
Message 3 of 4
(2,655 Views)
As I said, just right-click on the output tunnel..... 🙂
 
Select "Real Vector" for data type.
 

Message Edited by altenbach on 08-23-2005 09:05 AM

0 Kudos
Message 4 of 4
(2,646 Views)