MATLAB: I have value in matlab that has to given to python script. How should i pass the variable to it python vs matlab a= 30; b= 120; c= 90; system('python D:\ex.py'); how will i be able to access the variables a,b,c in ex.py Best Answer I have found it...This is what i wanted!a= 30;b= 120;c= 90;syscmd = sprintf('python D:\\ex.py %d %d %d', a, b, c);system(syscmd) Related SolutionsMATLAB: How to use variable syms a b c d;det([a b;c d]); MATLAB: How to pass variable argument using system command fh_file = '/home/prateek/matlab_R2017a_glnxa64/projects/saobjective/fh.py'cmd = sprintf('python "%s" %g %g %g %g', fh_file, ind0, ind1, ind2, ind3); system(cmd) Related QuestionByte to Long in MatlabInstall the Python engine error messageMatlab says the matrix is not symmetricHow to call python in matlabHow to simply add two degrees together in dms format in matlab
Best Answer