HOW TO LINK WEBSITE TO MATLAB

15 views (last 30 days)
Abu Muaadh AlDrWiy
Abu Muaadh AlDrWiy on 6 Feb 2018
Commented: Moritz on 7 Feb 2018
Hi All,
I build a website that is expected to take about 5 inputs e.g (Name, Age, date of Birth, level of education, Sexual orientation). All of these will take numeric values.
I will like to link the inputs to be run on MATLAB.
Therefore, I don't know how to link the website to MATLAB.

Answers (1)

Moritz
Moritz on 6 Feb 2018
Edited: Moritz on 6 Feb 2018
There are several different possibilities. Initially, unless you need the result straight away you need to think about whether you need to process the results straight ahead or whether it is something done later on.
If it is the later, the easiest might be saving it into a database (like MySQL) and then reading said database (either using the Database Toolkit though I have never used that myself, using a Java or .NET method or exporting it to Excel) and then evaluating your data.
If however you need to process the input straight away things get a little bit more complex: You will need to have a server with MATLAB running (or the compiled version of your MATLAB program) and you will need to connect to your PHP (or a similar scripting language) web interface via TCP. Last time I have done it I have used a custom written Java class for this. If you need any pointers I recommend reading this:
(In general undocumentedmatlab.com is one of the best MALTAB websites in my opinion, excluding mathworks.com obviously).If you get stuck let me know and I can try to answer more specific questions. But this should give you a good starting basis. Hope I could help you!
  5 Comments
Guillaume
Guillaume on 6 Feb 2018
Edited: Guillaume on 6 Feb 2018
"I just purchased the licence of MATLAB for 2017".
Yes but there are all sorts of licenses. It is very unlikely that a home, student, or academic license allows you to do what you want. But I don't know and only MathWorks can tell you for sure. Hence my advice to contact them directly.
As to the technical aspects, it's not something that I have ever done so can't help with that.
Moritz
Moritz on 7 Feb 2018
As I said in my posting above: Initially you need to decide, which of the two implementations you would like to follow. If you choose the first, I doubt you will have issues with the license as you are only evaluating inputs afterwards (and assuming it is non-commercial or you have a license, which allows commercial use).
For the second method, I suggest you start with the links. If you get stuck I'm happy to help, if you have a specific question. Of course if you only have a home or student license then you may run into some licensing issues.

Sign in to comment.

Categories

Find more on Downloads in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!