Dear gurus and masters, some help needed here

I'm actually on a project for my Final Year Project, basically my task now is to link a simple matlab algorithm to my web server.

First, I started up by setting a personal web server following this link

http://lifehacker.com/124212/geek-to-live-...home-web-server

After configuring apache to run CGI, and all that....It works well and I even setup a static IP for it so it can be access remotely,

Then, I starting to make some linking according to this

http://www.mathworks.com/support/solutions/en/data/1-30REEY/

which is to deploy a magicsquare (assigning numbers 1~9, if 3x3 is selected so that all numbers had the same sum when added vertically) matlab application to webserver, I followed all the steps there and it works well too smile.gif I can send the number of array for the magicsquare(enter 3) and get processed by matlab's mcr, getting a response from it (a well-assigned magicsquare).

I've tried accessing the m-files inside the mcr, but all the characters are vexed and distorted.

The Problem now is : I had no idea what is actually running, which/what CGI script is actually used to link both my web server and matlab. I was wondering if someone can help me out here by telling me how to link web server and matlab so that i actually understands. For now i believe using writing CGI script to call matlab for processing is the way but i'm very very newbie on this field. Desperate help needed cry.gif

my supervisor assigned me to do a simple A+B application, as in you can enter the value of A and B, click on calculate, and matlab will process the answer out and return back the value to display at my web server. Flow = enter A and B in webserver > cgi calls up to matlab to process > matlab passing back result to cgi> cgi pass result to webserver> display on webserver

Do let me know if my explanation is blur, thx!


In reply to Linking Matlab to process data for Personal Web Server by jyws89

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.