Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 542
Default VBA with Matlab using Excel Link but not Excel Builder

I need to use VBA to get Matlab calculations into Excel; I have the Excel
link but not the Excel builder for Matlab.

Many Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default VBA with Matlab using Excel Link but not Excel Builder

Use:

MLGetMatrix "matlab_variable", "A1"
matlabrequest


Mangesh




"James" wrote in message
...
I need to use VBA to get Matlab calculations into Excel; I have the Excel
link but not the Excel builder for Matlab.

Many Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 542
Default VBA with Matlab using Excel Link but not Excel Builder



"Mangesh Yadav" wrote:

Use:

MLGetMatrix "matlab_variable", "A1"
matlabrequest


Mangesh




"James" wrote in message
...
I need to use VBA to get Matlab calculations into Excel; I have the Excel
link but not the Excel builder for Matlab.

Many Thanks



Sir, You are a gentleman!


Thank You Very Much
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default VBA with Matlab using Excel Link but not Excel Builder

Thanks for the feedback. Good it helped you.

Mangesh


Sir, You are a gentleman!

Thank You Very Much




"James" wrote in message
...


"Mangesh Yadav" wrote:

Use:

MLGetMatrix "matlab_variable", "A1"
matlabrequest


Mangesh




"James" wrote in message
...
I need to use VBA to get Matlab calculations into Excel; I have the

Excel
link but not the Excel builder for Matlab.

Many Thanks





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 542
Default VBA with Matlab using Excel Link but not Excel Builder

Thanks for your help earlier. I now have I second problem. I need to use to
use the MatLab GARCH toolbox to ouput results to excel, the following code
dosn't error but dosn't return the results:


MLPutMatrix "A", Application.Selection
Excllink.MatlabRequest

Excllink.MLEvalString "A = garchfit(A)"
Excllink.MatlabRequest

MLGetMatrix "A", "D3"
Excllink.MatlabRequest

Thanks in advance


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default VBA with Matlab using Excel Link but not Excel Builder

Hi James,

my experience tells me that you require the MatlabRequest only gor the
MLGetMatrix. Anyway, that apart, which oart isn't working. Is it the Put
matrix, the evalstring, or the get matrix. Debug step-by-step. Also check if
your matlab path is correct.

Mangesh



"James" wrote in message
...
Thanks for your help earlier. I now have I second problem. I need to use

to
use the MatLab GARCH toolbox to ouput results to excel, the following code
dosn't error but dosn't return the results:


MLPutMatrix "A", Application.Selection
Excllink.MatlabRequest

Excllink.MLEvalString "A = garchfit(A)"
Excllink.MatlabRequest

MLGetMatrix "A", "D3"
Excllink.MatlabRequest

Thanks in advance



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use Excel like Matlab? sjlesnia Excel Discussion (Misc queries) 0 March 21st 07 10:14 PM
Matlab & Excel interface? cfman Excel Discussion (Misc queries) 1 March 21st 07 06:03 PM
how can ý call matlab function from matlab to excel gurhan Excel Discussion (Misc queries) 0 November 29th 06 08:40 AM
Excel equivalent of Matlab stem plot John Broderick Charts and Charting in Excel 1 May 31st 05 08:00 PM
matlab and excel conflict - cant use excel anymore Fun Kid Excel Programming 3 May 10th 04 09:52 PM


All times are GMT +1. The time now is 01:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"