Skip to content

Add Open in MATLAB Online badge #3

Open

Description

@yanndebray

Activity

  1. yanndebray commented on Apr 15, 2024

    @yanndebray
    ContributorAuthor

    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")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions