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 Kommentare

Rik
Rik am 7 Nov. 2018
So you want to print a list of values to a txt file? Like fprintf(fid,'0x%06X\n') ?
Zhiyuan Wang
Zhiyuan Wang am 7 Nov. 2018
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 am 7 Nov. 2018
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 am 9 Nov. 2018
Bearbeitet: Zhiyuan Wang am 9 Nov. 2018
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.

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Zhiyuan Wang
Zhiyuan Wang am 7 Nov. 2018

0 Stimmen

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

Weitere Antworten (0)

Kategorien

Mehr zu Convert Image Type finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by