Borrar filtros
Borrar filtros

HOW TO LINK WEBSITE TO MATLAB

23 visualizaciones (últimos 30 días)
Abu Muaadh AlDrWiy
Abu Muaadh AlDrWiy el 6 de Feb. de 2018
Comentada: Moritz el 7 de Feb. de 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.

Respuestas (1)

Moritz
Moritz el 6 de Feb. de 2018
Editada: Moritz el 6 de Feb. de 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 comentarios
Guillaume
Guillaume el 6 de Feb. de 2018
Editada: Guillaume el 6 de Feb. de 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 el 7 de Feb. de 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.

Iniciar sesión para comentar.

Categorías

Más información sobre Install Products en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by