Electronic Design
  • Resources
  • Directory
  • Webinars
  • CAD Models
  • Video
  • Blogs
  • More Publications
  • Advertise
    • Search
  • Top Stories
  • Tech Topics
  • Analog
  • Power
  • Embedded
  • Test
  • AI / ML
  • Automotive
  • Data Sheets
  • Topics
    - TechXchange Topics --- Markets --AutomotiveAutomation-- Technologies --AnalogPowerTest & MeasurementEmbedded
    Resources
    Electronic Design ResourcesTop Stories of the WeekNew ProductsKit Close-UpElectronic Design LibrarySearch Data SheetsCompany DirectoryBlogsContribute
    Members
    ContentBenefitsSubscribeDigital editions
    Advertise
    https://www.facebook.com/ElectronicDesign
    https://www.linkedin.com/groups/4210549/
    https://twitter.com/ElectronicDesgn
    https://www.youtube.com/channel/UCXKEiQ9dob20rIqTA7ONfJg
    1. Markets
    2. Automotive

    MathWorks’ Embedded MATLAB streamlines C code generation

    Oct. 11, 2007
    The MathWorks (www.mathworks.com) has developed Embedded MATLAB, a subset of its MATLAB high-level programming language that allows users to generate embeddable C code from MATLAB files without having to go through Simulink, The Mathworks’ graphical environment.

    The MathWorks has developed Embedded MATLAB, a subset of its MATLAB high-level programming language that allows users to generate embeddable C code from MATLAB files without having to go through Simulink, The Mathworks’ graphical environment.

    Jim Tung, a MathWorks Fellow, says Embedded MATLAB will appeal to MATLAB users who are designing algorithms and want to generate embeddable C code quickly, without Simulink. It will also facilitate the sharing of algorithms for system design.

    MATLAB is commonly used for expressing idealized algorithms that require extensive simulation before they can be implemented, while Simulink has been used for automatic generation of C and C++ code for a decade, and more recently for generation of VHDL and Verilog code, but Tung noted that users focused on algorithm development may not have access to Simulink or may not be trained to use it. They also may not have or may not need an understanding of the system of which their algorithm is a part.

    Another use case, according to Tung, involves workflow across groups in which some engineers create reusable components while others are design systems that use those components. “It was often the case that algorithms expressed in MATLAB were manually translated to C and converted to fixed point code,” he said.

    “The manual process wastes time and resources, and results in two design ‘truths,’ the original expression in MATLAB and the C code translation. This creates a configuration management problem, but with Embedded MATLAB, the algorithm as created in MATLAB does not have to be changed. Algorithms created in MATLAB can be passed directly to Real Time Workshop, which automatically generates C code.”

    Tung said Embedded MATLAB also facilitates workflow between algorithm developers and system developers. “In the past, Simulink users could hardwire MATLAB code into a Simulink function block and generate C code from there. The code then became part of the Simulink model. Now, it’s easier for Simulink users to incorporate multiple algorithms into their model. It’s also possible for Simulink users to generate HDL code for MATLAB blocks,” he said.

    Embedded MATLAB is included in the latest MATLAB release (2007B) at no additional cost.

    Continue Reading

    11 Myths About Generative AI

    Securing Data in the Quantum Era

    Sponsored Recommendations

    Designing automotive-grade camera-based mirror systems

    Dec. 2, 2023

    Design security cameras and other low-power smart cameras with AI vision processors

    Dec. 2, 2023

    Automotive 1 TOPS vision SoC with RGB-IR ISP for 1-2 cameras, driver monitoring, dashcams

    Dec. 2, 2023

    AM62A starter kit for edge AI, vision, analytics and general purpose processors

    Dec. 2, 2023

    Comments

    To join the conversation, and become an exclusive member of Electronic Design, create an account today!

    I already have an account

    New

    Securing Data in the Quantum Era

    Celebrating Field Engineers: The Unsung Heroes of Innovation

    Checking Out the NXP Hovergames NavQ Plus

    Most Read

    Observability Framework Exposes DDS

    Test Platform Uses Software Updates for Major Functionality Upgrades

    MEMS Mirrors: The Next Big Wave in MEMS Technology


    Sponsored

    Edge AI retail scanner demo: SoC selection and power usage

    Hardware-accelerated AI vision processing for barcode scanners

    3 trends impacting the future of embedded processing technology

    Electronic Design
    https://www.facebook.com/ElectronicDesign
    https://www.linkedin.com/groups/4210549/
    https://twitter.com/ElectronicDesgn
    https://www.youtube.com/channel/UCXKEiQ9dob20rIqTA7ONfJg
    • About Us
    • Contact Us
    • Advertise
    • Do Not Sell or Share
    • Privacy & Cookie Policy
    • Terms of Service
    © 2023 Endeavor Business Media, LLC. All rights reserved.
    Endeavor Business Media Logo