Figure overlaying help

1 次查看(过去 30 天)
kyle lyth
kyle lyth 2011-4-9
Hi i have the following code, i was wondering if it is even possible that when the user opens a graph, is it possible to overlay the images for comparison? i have very little knowlage of matlab so sorry if this seems a rather simple question :).. thanks for any help in advance :)
%reset the while_condit condition to 1 while_condit = 1;
%repeat code within until answer is no while while_condit < 2;
%asks the user if they want to open a new graph answer = input('do you want to input another graph for comparison? [yes, no] only \n');
%computes the answer to check wether a new graph is to be opened while_condit = while_condit + answer ;
%opens matlabs GUI interface for the user to specify which graph they want %to open if while_condit == 1 uigetfile('.fig') else end
  1 个评论
kyle lyth
kyle lyth 2011-4-9
%reset the while_condit condition to 1
while_condit = 1;
%repeat code within until answer is no
while while_condit < 2;
%asks the user if they want to open a new graph
answer = input('do you want to input another graph for comparison? [yes, no] only \n');
%computes the answer to check wether a new graph is to be opened
while_condit = while_condit + answer ;
%opens matlabs GUI interface for the user to specify which graph they want to open
if while_condit == 1
uigetfile('.fig')
else
end
sorry i didnt notice the code didnt make much sence when i copied it

请先登录,再进行评论。

回答(1 个)

Naresh
Naresh 2011-4-13
figure; i1=imshow(k1);
hold on
i2=imshow(k2);alpha(i2,.4);
%will fade the i2 image.

类别

Help CenterFile Exchange 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by