how run .c program in matlab

140 visualizzazioni (ultimi 30 giorni)
manoj saini
manoj saini il 29 Gen 2013
Commentato: Francis Tiong il 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

Risposta accettata

Shashank Prasanna
Shashank Prasanna il 29 Gen 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 Commenti
LeChat
LeChat il 14 Mag 2020
thank you Walter

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su C Shared Library Integration in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by