matlab m檔案轉成c語言,MATLAB m檔案轉成c語言?

2021-12-19 09:32:20 字數 1652 閱讀 9238

1樓:

如果需要把比如說image processing, neural network等,需要用matlab提供的基本函式改寫這些**(似乎很麻煩,所以儘量開發的時候使用simulink)。

以下工具箱,可以通過rtw轉換:

aerospace blockset

arithmetic operators

casting

complex numbers

derivative and integral

discrete math

exponential

filtering and convolution

fixed-point toolbox

hdl code generation

histogram

input and output

interpolation and computational geometry

logical operators

matrices and arrays

polynomials

relational operators

rounding and remainder

setsignal processing

special values

specialized math

statistics

string

structure

trigonometry

%回答的補充問題,假設下面是你的函式

function y = foo(u,v) %#eml

s = single(u);

d = double(v);

y = double(identity(s)) + identity(d);

function y = identity(u) %#eml

y = u;

命令列下輸入:

emlc -t rtw:lib -o disable:inline foo

2樓:背鍋俠

直接編譯中間有生成c語言的

怎麼把matlab裡面的m檔案轉化成arm上執行的c語言

3樓:匿名使用者

樓主好高階,學會了教我 啊

4樓:寡人無錢

呵呵,異想天開,痴人說夢

請問怎樣用matlab將m檔案轉換為c語言?

5樓:匿名使用者

mcc -m yourmfile.m -c

6樓:小寄生蟲兒

給你個**,看看那個

如何把m檔案轉化成c語言語句

7樓:風若遠去何人留

matlab和c是完全不同的兩門語言

二者之間聯絡並不大

所以 沒有直接將m檔案轉為c檔案的方法。

要轉, 只能根據matlab程式實現的功能, 用c重寫一遍不過有些matlab特有的函式, 用c實現會很麻煩, 比如微積分, 矩陣運算等等。

求問m的n次方的c語言程式,c語言計算m的n次方要求輸入mn輸出m的n次方

include include void main printf m的n次方為 容 d n s include void main printf m d m c語言 計算m的n次方 要求輸入m n 輸出m的n次方 include void main 已在vc檢測 include stdio.h ma...

c語言程式設計檔案studenttt檔案中儲存有學生的信

你想對這個檔案幹什麼?讀資料到程式中?用c語言編寫一個通過鍵盤或檔案輸入學生資訊,並將學生資訊輸出到檔案和螢幕的程式 100 發,消,息給,你,了 c語言程式設計 將3個學生的資訊儲存到檔案stud.dat中,再從檔案中讀出顯示在螢幕上 include define n 3 struct stude...

c語言檔案部分的題,大神看一下,c語言檔案部分的題,大神看一下

我是用來的結構自體寫 bai的,du 你看可以zhi 不。dao include typedef struct stu nono int main while n100 getchar for i 0 i c語言檔案寫入txt中邏輯有問題,求大神幫忙看一下,謝謝 include include vo...