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

1 view (last 30 days)
HF on 16 Feb 2021
Answered: Reshma Nerella on 19 Feb 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);

Answers (2)

Community Treasure Hunt

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

Start Hunting!