Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Thread Subject:
save data from matlab coder toolbox

Subject: save data from matlab coder toolbox

From: dai zhengguo

Date: 24 Jun, 2012 15:37:06

Message: 1 of 1

Hi all. How can I save data from matlab coder toolbox? After I write a function, I use the matlab coder toolbox to translate it into c/c++. I wish to exam the data in c++ and compare it to matlab result. That let me generate some data from matlab functions lsave,dlmwrite).

It is a pity that matlab coder toolbox can not support these functions like save data functions. It did not support dlmwrite or save functions. My problem is how to save data when using matlab coder toolbox.

A simple example is as follows:

function [c,d] = exam_input_output(a,b)

c = a+1;
d = b+1;
save 'c:\1.txt' c -ascii % I wish to save c, but coder can not support save


Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us