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 CenterFile Exchange에서 Write 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