How to use an array (saved as a mat file) in my C program?

2 visualizaciones (últimos 30 días)
HF
HF el 16 de Feb. de 2021
Respondida: Reshma Nerella el 19 de Feb. de 2021
Hey there, I am trying to figure how to use a apecific array from my mat file. Unfortunately, I am not able to find the header file mat.h in the internet to check if my code it is actually working.
My mat file is called ma.mat and has only array called X(1:1024)
The following is my C-code:
#include "mat.h"
#include <stdio.h>
#include <stdlib.h>
int main () {
X = mxArray *matGetVariable(ma *mfp, X *name);
return(0);
}

Respuestas (2)

Jemima Pulipati
Jemima Pulipati el 19 de Feb. de 2021
Hello,
From my understanding, you want to use the MAT file in the C program.
The following documentation links might help you to know more about the usage of MAT files in C/C++ programs.

Reshma Nerella
Reshma Nerella el 19 de Feb. de 2021
Hi,
In addition to the above documentation links,

Categorías

Más información sobre Debugging and Analysis 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