Functions | Variables
json2matlab.c File Reference
#include <assert.h>
#include <string.h>
#include "../csm/csm_all.h"
#include <options/options.h>
#include <json-c/json.h>
#include <json-c/json_object_private.h>
Include dependency graph for json2matlab.c:

Go to the source code of this file.

Functions

int jo_is_numeric_array (JO jo)
 
int jo_is_numeric_matrix (JO jo)
 
void jo_write_as_cell_array (JO jo, FILE *out)
 
void jo_write_as_column_vector (JO jo, FILE *out)
 
void jo_write_as_matlab (JO jo, FILE *out)
 
void jo_write_as_matlab_object (JO jo, FILE *out)
 
void jo_write_as_matrix (JO jo, FILE *out)
 
int main (int argc, const char *argv[])
 

Variables

const char * banner
 

Function Documentation

int jo_is_numeric_array ( JO  jo)

Definition at line 214 of file json2matlab.c.

int jo_is_numeric_matrix ( JO  jo)

Definition at line 195 of file json2matlab.c.

void jo_write_as_cell_array ( JO  jo,
FILE *  out 
)

Definition at line 270 of file json2matlab.c.

void jo_write_as_column_vector ( JO  jo,
FILE *  out 
)

Definition at line 257 of file json2matlab.c.

void jo_write_as_matlab ( JO  jo,
FILE *  out 
)

Definition at line 115 of file json2matlab.c.

void jo_write_as_matlab_object ( JO  jo,
FILE *  out 
)

Definition at line 169 of file json2matlab.c.

void jo_write_as_matrix ( JO  jo,
FILE *  out 
)

Definition at line 240 of file json2matlab.c.

int main ( int  argc,
const char *  argv[] 
)

Definition at line 43 of file json2matlab.c.

Variable Documentation

const char* banner
Initial value:
=
"Converts JSON stream to Matlab file. \n"
"There are three usages: \n"
" 1) with only one parameter, \n"
" $ json2matlab dir/mydata.json \n"
" creates a Matlab function 'mydata' inside the file 'dir/mydata.m' \n"
" 2) with two parameters, \n"
" $ json2matlab dir/mydata.json dir/out.m \n"
" creates a Matlab function 'out' inside the file 'dir/out.m'. \n"
" 3) otherwise, use the options switches. \n"
" \n"
" By default it creates a complete script of the kind:\n"
" \n"
" function res = function_name()\n"
" res = \n"
" { ...}\n"
" \n"
" If complete_script is set to 0, it just outputs the meat: \n"
" \n"
" { ...}\n"
" \n"

Definition at line 20 of file json2matlab.c.



csm
Author(s): Andrea Censi
autogenerated on Tue May 11 2021 02:18:23