Integrate_Python_code_with_Simulink
Integrate_Python_code_with_Simulink copied to clipboard
Add Open in MATLAB Online badge
Would require to add a setup file like this
% % setup.m
% create pip folder if it doesn't exist
if ~exist('pip', 'dir')
mkdir('pip');
% retrieve pip files
files = ["getwheel","setuppip","pipinstall","piplist","pipcmd","pipshow","pipuninstall"];
BASE_URL = "https://raw.githubusercontent.com/yanndebray/matlab-with-python-book/main/code/";
for i = 1:length(files)
url = BASE_URL+files{i}+".m";
websave("pip/"+files{i}+".m",url);
end
end
addpath("pip/")
% install opencv package
pipinstall("opencv-python")