简体   繁体   中英

how to connect Matlab with PHP

I want to connect Matlab with php (server) for image processing on fly. I'm getting this error

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x789DFE73
Function=inPushCheckpoint+0xB3
Library=C:\MATLAB701\bin\win32\m_interpreter.dll

when I am trying to execute your given code...

Check this article out Using MATLAB with PHP .

It's not about image processing, but it should give you the basics to start working on your problem. If that's not what you were looking for, can you give more details?

There is an easy alternative solution

open matlab then in command window type mbuild -setup

then install the lcc-compiler

after that in open command prompt then go to your matlab programme directory. the programme you want to connect with php. then type mcc -m yourprograme.m in command prompt and wait for a while. after that you will get a exe file one your directory. and then type

yourprogramme.exe > output.txt

and by file_get_contains("output.txt");

you will get the output in the php

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM