Solved

Matlab and ASP

Posted on 2007-03-30
4
877 Views
Last Modified: 2016-02-10
Hi experts
I have written a code in asp to call matlab application ,
it is as follows

<%

Dim h
Set h = CreateObject("matlab.application")
Call h.Execute ("cd C:\matlablocal\MATLAB704\work\Saniya\testing110107")
Call h.Execute ("slbuild('testing')")
response.redirect("On.asp")
%>

It is directing me to the page of On. asp without any error but not performing above mentioned matlab operation can u plz guide what is happening and what I am supposed to do.
Thanx
0
Comment
Question by:saniya_ikram
4 Comments
 
LVL 1

Accepted Solution

by:
aisp earned 250 total points
ID: 18825840
You need to know which exactly MATLAB components are available on your web server. Depending on the release you can use MATLAB Builder for .NET or MATLAB COM Automation.  Look at the following link for more details
http://www.mathworks.com/support/tech-notes/1600/1608.html#Section_5

Here is another example
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=12098&objectType=file

0
 
LVL 4

Assisted Solution

by:MacroLand
MacroLand earned 250 total points
ID: 18910280
In addition to aisp

if Matlab is not installed on the computer/server you are trying to run your code

Set h = CreateObject("matlab.application")
Call h.Execute ("cd C:\matlablocal\MATLAB704\work\Saniya\testing110107")
Call h.Execute ("slbuild('testing')")

this block  will not run cause you need to create Matlab.Application using OLE server.

However response.redirect("On.asp") is an ASP code so that it should run on an ASP supporting server. That is what should be happening in your case.

You can trace like;
On Error Goto matlab_error:
Set h = CreateObject("matlab.application")
Call h.Execute ("cd C:\matlablocal\MATLAB704\work\Saniya\testing110107")
Call h.Execute ("slbuild('testing')")

matlab_error:
 Response.Write "<P>Matlab is not installed</P>"

Regards,
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Select distinct 25 97
CONDITIONAL MAX STATEMENT IN T-SQL 3 55
Capture logon name 13 70
Precision Problem in C++ 7 31
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Navigation is an important part of web design from a usability perspective. But it is often a pain when it comes to a developer’s perspective. By navigation, it often means menuing. This is less theory and more practical of how to get a specific gro…
The viewer will learn how to implement Singleton Design Pattern in Java.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question