<?php if(isset($_POST['filepath'])) { $filename = $_POST['filepath']; $inputDir = "where is located matlab file (C:\wamp\www\pay)"; $command = "matlab -sd ".$inputDir." -nodisplay -nosplash -nodesktop -r myFunc('".$filename."')"; $output = exec($command); } ?>
function [] = myFunc(filename) a = imread(filename); image(a); end
matlab -sd C:\wamp\www\pay -nodisplay -nosplash -nodesktop -r myFunc('C:\wamp\www\pay\fp1.jpg')
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)