|
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.
|