How can I call a variable that belong to the result of a for looping?

1 回表示 (過去 30 日間)
Ria Anggraini
Ria Anggraini 2015 年 6 月 15 日
回答済み: Walter Roberson 2015 年 6 月 15 日
I write the listing as a function so that i can call it in main (function plate = crop (f)) in one of axes GUIDE, i want to show the result of a for looping *actually this -for looping- is include in another -for looping- but i just write the one that had the variable
for n=1:2:length(line2)
In=imcrop(Ik,[line2(n) 1 line2(n+1)-line2(n) bar1]);
subplot(1,length(line2)/2,kk);
kk=kk+1;
end
in axes, i want to show the In variable. I write as plate=In but it said Undefined function or variable "In"

採用された回答

Walter Roberson
Walter Roberson 2015 年 6 月 15 日
After your "subplot",
image(In);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by