how run .c program in matlab

179 views (last 30 days)
manoj saini
manoj saini on 29 Jan 2013
Commented: Francis Tiong on 3 Nov 2021
if i have program print.c
#include<stdio.h>
#include<conio.h>
main()
{
printf('hello')
getchar()
}
how i can run this code in MATLAB

Accepted Answer

Shashank Prasanna
Shashank Prasanna on 29 Jan 2013
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 Comments
LeChat
LeChat on 14 May 2020
thank you Walter

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!