how run .c program in matlab

138 visualizaciones (últimos 30 días)
manoj saini
manoj saini el 29 de En. de 2013
Comentada: Francis Tiong el 3 de Nov. de 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

Respuesta aceptada

Shashank Prasanna
Shashank Prasanna el 29 de En. de 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 comentarios
LeChat
LeChat el 14 de Mayo de 2020
thank you Walter
Francis Tiong
Francis Tiong el 3 de Nov. de 2021

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre C Shared Library Integration en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by