$data= "Anushan";
echo $data;
$startDir = "C:\\wamp64\\www\\pdpSystem";
$cmd = "matlab -sd " . $startDir . " -r test('img (1).jpg')";
$result = exec($cmd);
var_dump($result);
// Decode the result
$resultData = json_decode($result, true);
print_r($resultData);
// This will contain: array('status' => 'Yes!')
var_dump($resultData);
I tried this code to execute it. but it didn't work. i m new to matlab. i m doing this for my final year project. please help me. thanks in advance.