Date: Nov 20, 2012 8:12 PM
Author: Jerome
Subject: Mex Array Printing

I am having difficulty with printing an array of values and was wondering if anyone could assist me in what I am doing wrong.

char data_name[40];
mxArray *data_ptr, *time_ptr, *freq_ptr;
double *var, *tvar, *fvar;


data_ptr = mexGetVariable("base", data_name);

mexPrintf("Variable was declared at the command prompt as %f", *var);

Thanks in Advanced