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

Thanks.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
matlab coder toolb... dai zhengguo 24 Jun, 2012 11:39:10
save data dai zhengguo 24 Jun, 2012 11:39:10
support functions dai zhengguo 24 Jun, 2012 11:39:10
rssFeed for this Thread

Contact us