|
发表于 2014-11-20 18:09:18
|
显示全部楼层
//MATLAB
luna=imread('E:\matlab\matlab_data\imag_source\lena_black&white.jpg');
fid = fopen('E:\matlab\matlab_file\temp.txt', 'wt');
fprintf(fid,'%3x\n ', luna); //要RESHAPE换成一列较为简单 ;
fclose(fid);
///MODELSIM
initial begin
$readmemh("'E:\matlab\matlab_file\temp.txt'",in_data);
end |
|