how run .c program in matlab

39 ビュー (過去 30 日間)
manoj saini
manoj saini 2013 年 1 月 29 日
コメント済み: Francis Tiong 2021 年 11 月 3 日
if i have program print.c
#include<stdio.h>
#include<conio.h>
main()
{
printf('hello')
getchar()
}
how i can run this code in MATLAB

採用された回答

Shashank Prasanna
Shashank Prasanna 2013 年 1 月 29 日
If you want to call your C function from within MATLAB you have to create a MEX file. Which mean you will have to modify your C code with the following guidelines:
  8 件のコメント
LeChat
LeChat 2020 年 5 月 14 日
thank you Walter
Francis Tiong
Francis Tiong 2021 年 11 月 3 日

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeWrite C Functions Callable from MATLAB (MEX Files) についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by