how run .c program in matlab

120 Ansichten (letzte 30 Tage)
manoj saini
manoj saini am 29 Jan. 2013
Kommentiert: Francis Tiong am 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

Akzeptierte Antwort

Shashank Prasanna
Shashank Prasanna am 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 Kommentare
LeChat
LeChat am 14 Mai 2020
thank you Walter
Francis Tiong
Francis Tiong am 3 Nov. 2021

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu C Shared Library Integration finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by