How to display an image from output value?

1 次查看(过去 30 天)
Hi, I have A=37 after some process and I need to display '37.jpg' which is present in my database.I gave imshow('A.jpg').But it says A.jpg does not exist.I can't give imshow(37.jpg)Because I need to do the same process for 1000 times so 'A' value gets changed every time. How do I display the image

采纳的回答

Friedrich
Friedrich 2013-3-4
Hi,
try num2str:
A = 37
imshow([num2str(A),'.jpg'])
  2 个评论
maha lakshmi
maha lakshmi 2013-3-4
Thank you sir,it works.If 'A' has some 4 values like 25,3,65,47.How do i display more than one image at a time.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by