Experience on Matlab Web development and Matlab webservice implementation

Source: Internet
Author: User

Recently, I met a student who used the Matlab web Service. I have heard of it, but I have never used it. It took a lot of time to configure it. The result failed, therefore, I leave a footprint here to warn my later students:

1. First, let's talk about matlab's webservice Service. To put it bluntly, we can call matlab on the server on the web page to perform computation, so as to utilize the powerful function libraries and functions of matlab. This looks really good, especially for students, a large number of functions in matlab can be said to greatly reduce their programming workload, and spend more time on business processes and algorithms.

2. Feasibility: matlab web service has been improved in version 2007, and this function has been removed in the new version. Is the previous web service development method obsolete. According to the official examples, it can also run and configure. Although matlab provides us with this feasibility, I have to say that this feature is used by a student with other business knowledge, completely unfeasible: the service cannot be started for no reason; the program that can be run will not be able to run for a while; the source program and the webpage program should be changed based on the webpage and input and output parameters ,...... Every of these problems will be complicated and different. I had two days on the server for two programs and succeeded in the middle. Then I collapsed due to some inexplicable errors, therefore, we also abandoned the use of matlb web service to solve the problem. In fact, there are better solutions;

3. alternative solution: for many students, they may pay more attention to the details and algorithms of their research fields, but do not care about the implementation process, although being proficient in a programming language can bring a lot of convenience to them, the programming ability of many scientific research students is still insufficient. The alternative solution for matlab web service is: other web development languages are used to compile basic web programs and algorithms. hybrid programming can be used for complex algorithms or projects that require a large number of functions in matlab, currently, matlab 2010 is well supported.. NET and JAVA mixed programming, which can greatly improve the efficiency and reduce the deployment difficulty. NET or JAVA to develop algorithms or write Web applications is also so simple and convenient, at least most of the current web application programmers belong to these two.

4. Actual Case: Let's talk about this case:

Previously: we wanted to use matlab web service to input the specified sequence from the web page. The server called the matlab program for calculation, and returned results and webpage output. The web page uses C #. NET;

Due to complicated configuration and high requirements, the idea was abandoned in the end. NET mixed programming implementation:

Final Solution: Compile the matlab m program in C #.. NET calls most algorithms. Other processing processes are directly completed using C #, while web pages use C #. NET, so the algorithm in matlab can be easily called and the results are obtained. This solution is easy to deploy and easy to implement (of course, you must master the. NET mixed programming skills). Compared with the first method, you do not know how easy it is.

Next time I have time to write an article on matlab and. NET mixed programming. It is really convenient. With this tool, it is a huge addition for students who are doing research! However, some practical application projects may not be feasible because of the copyright and running speed of matlab .. This is not a question for students to consider.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.