HOW TO LINK WEBSITE TO MATLAB

20 次查看(过去 30 天)
Abu Muaadh AlDrWiy
评论: Moritz 2018-2-7
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.

回答(1 个)

Moritz
Moritz 2018-2-6
编辑:Moritz 2018-2-6
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 个评论
Guillaume
Guillaume 2018-2-6
编辑:Guillaume 2018-2-6
"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 2018-2-7
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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Install Products 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by