GithubHelp home page GithubHelp logo

hwyao / matlab-codegen-helper-raw Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 22 KB

A helpful framework for matlab codegen (https://www.mathworks.com/help/coder/ref/codegen.html) command that automates some common tasks.

License: MIT License

MATLAB 100.00%

matlab-codegen-helper-raw's Introduction

matlab-codegen-helper-raw

This repository is a helpful framework for matlab codegen command that automates some common tasks.

Quick start

  1. clone the repository.
git clone https://github.com/hwyao/matlab-codegen-helper-raw
  1. Load the matlab project.
    Double-click matlab-codegen-helper-raw.prj in Matlab (R2019 or higher)
  2. Prepare your functions codegen. Remeber to add all functions to the matlab path.
  3. Run codegenRun function to execute result.
codegenRun("adder",{{1,2}},{},outputPath=pwd);

Use help or see code in /example/ folder to understand how this function and its parameters works.

When to use this repo

Codegen is a part of the Matlab Coder Toolbox that generates the C/C++ code from matlab files and compile it with different options. Possible benefits of using codegen include speeding up code execution, encapsulating function interfaces etc. However, not all code supports codegen. It takes a lot of effort to modify existing code (especially third-party repositories) to work with codegen, and re-releasing modified code may break the original design structure and encounter licensing issues.

This repository is especially helpful for the case:

  • You want to clone a repo as a submodule and execute codegen for it.
  • You want to automate modification scripts / code scanning / comparison test before or after executing codegen.

Features

  • Easily specify output directory and name of the MEX file.
  • Automatically generates accompanying comment file with detailed information.
  • global and extrinsic functionality support.
  • (tbd) Automatic preprocessing script exection to modifiy the code as required.
  • (tbd) Automatic code scanning indicating code that probably incompitable with codegen.
  • (tbd) Automatic test after MEX generation.

License

Copyright 2023 Haowen Yao

Use of this source code is governed by an MIT-style license that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.

matlab-codegen-helper-raw's People

Contributors

hwyao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.