View Single Post
  #1  
Old 10-30-2003, 11:35 PM
VinuKrithiga
 
Posts: n/a
Default Calling Matlab function in VB

Hai,
I want to call matlab function in VB.

Dim matlab As Object
Dim array1(10) As String

'Invalid statement
y = matlab.execute("main1(array1)")


main1(array1) is the matlab function & array1 is the array input argument.This code executes when I pass the array value straightly as

'Valid statement
y = matlab.execute("main1(['ka';'sa'])")

for the "Invalid statement" its not executing and giving the error statement as

"undefined variable or function 'array1'"

Anyone please help me to solve this problem.

Reply to my id : krithiga_m@yahoo.com

Regards
vinu
Reply With Quote