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 701157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:34:42+00:00 2026-05-14T03:34:42+00:00

I’m working on a project that uses several languages: SQL for querying a database

  • 0

I’m working on a project that uses several languages:

  • SQL for querying a database
  • Perl/Ruby for quick-and-dirty processing of the data from the database and some other bookkeeping
  • Matlab for matrix-oriented computations
  • Various statistics languages (SAS/R/SPSS) for processing the Matlab output

Each language fits its niche well and we already have a fair amount of code in each. Right now, there’s a lot of manual work to run all these steps that would be much better scripted. I’ve already done this on Linux, and it works relatively well.

On Linux:

matlab -nosplash -nodesktop -r "command"

or

echo "command" | matlab -nosplash -nodesktop

…opens Matlab in a “command line” mode. (That is, no windows are created — it just reads from STDIN, executes, and outputs to STDOUT/STDERR.) My problem is that on Windows (XP and 7), this same code opens up a window and doesn’t read from / write to the command line. It just stares me blankly in the face, totally ignoring STDIN and STDOUT.

How can I script running Matlab commands on Windows? I basically want something that will do:

ruby database_query.rb
perl legacy_code.pl
ruby other_stuff.rb
matlab processing_step_1.m
matlab processing_step_2.m
# etc, etc.

I’ve found out that Matlab has an -automation flag on Windows to start an “automation server”. That sounds like overkill for my purposes, and I’d like something that works on both platforms.

What options do I have for automating Matlab in this workflow?

  • 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-05-14T03:34:42+00:00Added an answer on May 14, 2026 at 3:34 am
    matlab -nosplash -nodesktop -r "command"
    

    works on Windows as well. Yes, it opens another window, but it’s not a problem. I run it in a batch mode from Java wrapper on Tomcat server and there were no issues. Put all commands into a script file, don’t forget to close the session with exit command, and use -r flag. Also you can find -noFigureWindows and -wait parameters useful. And it works on both Windows and Unix. You can use platform-specific flags, if some are not supported they will be ignored.

    Start MATLAB program (Windows platforms)

    There is also a way to hide matlab window with C library. See engSetVisible.

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

Sidebar

Ask A Question

Stats

  • Questions 369k
  • Answers 369k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Add an OnItemDataBound event handler to your markup for the… May 14, 2026 at 6:19 pm
  • Editorial Team
    Editorial Team added an answer You can use the log command, which puts messages into… May 14, 2026 at 6:19 pm
  • Editorial Team
    Editorial Team added an answer Is there a problem you are having? Try the following:… May 14, 2026 at 6:19 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.