Convert xlsx to jpg

2 次查看(过去 30 天)
Abbass SAYEGH
Abbass SAYEGH 2020-6-26
Hello everyone,
I work on a project matlab for my company and i need help.
I want to know if it's possible on matlab to convert an xlsx file to image ?
if it's possibe, how can i do that.
Thank you!

回答(1 个)

Image Analyst
Image Analyst 2020-6-26
Yes. Try readmatrix
myImage = readmatrix('my image.xlsx');
imshow(myImage);
If that doesn't work, try xlsread() or attach your workbook.
  5 个评论
Abbass SAYEGH
Abbass SAYEGH 2020-6-29
Hello everyone,
In my picture i want to display the values of : R, G, and B.
When i have my picture, i want to display theses values maybe on the picture or on the terminal
Can someone help me ?
Thanks!
Image Analyst
Image Analyst 2020-6-29
right after you call imshow(), call impixelinfo()
hp = impixelinfo;
If you want to reposition it, you can use
hp.Units = 'normalized';
hp.Position = [x, y, .2, .03]; % All values in the range 0-1.

请先登录,再进行评论。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by