Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9121821
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:56:56+00:00 2026-06-17T05:56:56+00:00

I am repeatedly calling a matlab script MyMatlabScript from another program (written in Erlang).

  • 0

I am repeatedly calling a matlab script MyMatlabScript from another program (written in Erlang). I am doing this using a batch file containing the following:

matlab -nodesktop -nosplash -wait -r "addpath('C:/...'); MyMatlabScript; %quit;"

This means that Matlab has to launch everytime I run the batch file script. It works but is slow*.

To improve performance I would like to be able to launch Matlab once and then somehow, using Erlang or a batch script, repeatedly initiate my Matlab script using that one instance of Matlab.

Can this be done?

Note, I am using Matlab 7.8.0 (R2009a) on Windows7.

*Extra slow due to issue outlined here!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T05:56:57+00:00Added an answer on June 17, 2026 at 5:56 am

    I do not know whether passing messages into Matlab is a viable option, but I would like to propose an alternative. Matlab has a “timer” object, which lets you specify a call-back-function. In regular intervals, the Matlab call-back-function could check a file, which is changed by your Erlang program. A changed file triggers the desired Matlab routine. Well, it is not “haute cuisine” in terms of programming style, but it should do the job.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using getForm to repeatedly pull data from an api. Sometimes the program finishes,
I'm calling an asmx service repeatedly using the Async methods and am getting this
Hi I am using a perl script written by another person who is no
I'm making an animation calling repeatedly this function so I can make an animation:
I want to repeatedly check a variable every time php wakes up from sleep().
I'm repeatedly getting this in my server error log for MySQld. On my PHP
I want to repeatedly zero a large 2d array in C. This is what
I had someone advise me to avoid repeatedly calling String.Length , because it was
Is there any reflection performance considerations when repeatedly calling container.Resolve<T>() when a resolution has
We are repeatedly writing (many 1000's of times) to a single large archive file,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.