Solved

Matlab and ASP

Posted on 2007-03-30
4
871 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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Classic ASP - x-editable save to SQL 3 62
squareUp  challenge 22 104
delphi parse string to params 3 80
ASP Focus problem 3 26
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now