Hi I use Matlab to convert image to hex ,I can get the fig 1(8 bit data)however ,I can't genetate the data like fig2(32 bit data) . Can you please give me some advises on how to deal with it or give me a example.
fig 2
fig 1

댓글 수: 4

Rik
Rik 2018년 11월 7일
So you want to print a list of values to a txt file? Like fprintf(fid,'0x%06X\n') ?
Zhiyuan Wang
Zhiyuan Wang 2018년 11월 7일
no .%06 or %08,is not the solution,I tried it ,but failed ,it's not work.You can see the result in the below picture.
Rik
Rik 2018년 11월 7일
You're not making it easy for other people to help you. We can do a lot with Matlab, but mind reading is not yet supported. You'll have to explain what your goal is, what your input data is and how your output should look. I have no idea how you are converting a list of values in something that looks like a C syntax to an image on your screen. If you don't explain these things I can only provide very basic help.
Zhiyuan Wang
Zhiyuan Wang 2018년 11월 9일
편집: Zhiyuan Wang 2018년 11월 9일
The Matlab's input is image and I hope the output are the 32 bits data,I mean convert images to 32 bits data by matlab.The 32 bits data likes the fig2 shows. @Rik Wisselink.Then I can use the 32 bits data in Xilinx zc706 evaluation board,and the 32 bits data can be recognized by the zc706 board and display the image in screen.

댓글을 달려면 로그인하십시오.

 채택된 답변

Zhiyuan Wang
Zhiyuan Wang 2018년 11월 7일

0 개 추천

Thanks .perhaps it's a wrong direction.I should modify my program rather than entangled in convert image to he by Matlab

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Convert Image Type에 대해 자세히 알아보기

제품

릴리스

R2016a

질문:

2018년 11월 7일

편집:

2018년 11월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by