C++ raw data dumper

버전 1.0.0.0 (19.5 KB) 작성자: sun peng
Dump C++ data into Matlab to make debugging C++ program more easily. Handier than using engine APIs
다운로드 수: 1.2K
업데이트 날짜: 2008/8/1

라이선스 보기

NOTE!!!!!!!!!!!!!!!!!!!!!!!!!!
******************************
This project is NO LONGER maintained because it HAS BEEN INCORPORATED into:

C/C++ and Matlab types convertor
File Id: 20927
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=20927&objectType=FILE

Dump C++ data (native or user-defined) into Matlab workspace to make debugging C++ image processing/signal processing/scientific calculation program more easily. Wrapper of Matlab engine APIs. But it??s more convenient than using engine APIs directly.

For example:
// C++ code stub
const unsigned int len = 20;
double sig[len];
generate_sig (sig, len); // do something...

// view the processed data in matlab...
matlab << name ("sig") << width (len) << height (1)
<< start(sig)
<< cmd ("figure;stem(sig);set(gcf,'name','example 1: 1-D signal');");

It dumps C++ double array into matlab and converts it as a 20x1 matrix, then plot it.

For another example:

// C++ code stub
const unsigned int LEN = 42*256*3;
unsigned char buf[3*LEN];
generate_color_img (buf, LEN); // do something
const char* command =
"figure;"
"imagesc(imgc);"
"set(gca,'visible','off');"
"set(gcf,'name','example 3: color image');";

matlab << name ("imgc")
<< width (256) << height (42*3) << channel (3)
<< start (buf)
<< cmd (command);

This will view C++ array buf as a color image in Matlab workspace.

SEE README.HTM AND EXAMPLES IN THE ZIP FILE FOR MORE DETAILS!
HAVE FUN:)

인용 양식

sun peng (2025). C++ raw data dumper (https://kr.mathworks.com/matlabcentral/fileexchange/12924-c-raw-data-dumper), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2006a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Motion Detection에 대해 자세히 알아보기
도움

도움 준 파일: C/C++ and Matlab types convertor

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

CppDataDumper/examples/

버전 게시됨 릴리스 정보
1.0.0.0

Modification on Description...