Hi,
I'm trying to create an ".exe" file that will read some sort of data(for a known path), and will plot it one time as "bplot" and the other time as "histogram".
The code works fine as I run it from the editor, and even after I've made an ".exe" file. The problem begins when I try to run it from a "C#" code with the command "Process.Start(@"path\.exe")". It seems like it runs the code and I can see the figures that are made, but it doesn't save the picutres.
My matlab code is:
clearclcP = csvread('my_path\test_csv.csv');SP = bplot(P);pause (3);saveas(figure(1),[pwd '\picture1.jpeg']);pause (3)B = csvread('my_path\test2_csv.csv');histogram(B);pause (3)saveas(figure(1),[pwd '\picture2.jpeg']);pause (3)closeclearclc
The "bplot" is an external function that I downloaded. Any ideas how to save it in other way?
Best Answer