Incosistent behaviour of figures titles in Cody coursework
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Dmytro Bobkov
il 14 Set 2015
Risposto: Santosh Kasula
il 16 Ott 2015
I have observed an inconsistent behaviour of figure titles in Cody Coursework in visible tests: one time they are shown, another time they are not completely shown (see attached screenshot, top correct, bottom incorrect).
In particular, I call the following code three times for different data structures (i.e. NA, NB, NC) in visible tests
% some other code here for loading images etc., no graphics
figure; imshow((abs(im_ref_ch_A-periodic_A)).*10); title('Difference image for NA');
figure; imshow((abs(im_ref_ch_B-periodic_B)).*10); title('Difference image for NB');
figure; imshow((abs(im_ref_ch_C-periodic_C)).*10); title('Difference image for NC');
assert(size(im_ref_ch_A,1)==sz(1) && size(im_ref_ch_A, 2)==sz(2), 'Size is incorrect');
However, when I put double comment before each line of graphics, then their titles are shown correctly, as in here
figure; imshow((abs(im_ref_ch_A-periodic_A)).*10); title('Difference image for NA');
figure; imshow((abs(im_ref_ch_B-periodic_B)).*10); title('Difference image for NB');
figure; imshow((abs(im_ref_ch_C-periodic_C)).*10); title('Difference image for NC');
assert(size(im_ref_ch_A,1)==sz(1) && size(im_ref_ch_A, 2)==sz(2), 'Size is incorrect');
Why is it like this and why is there nothing in documentation regarding this behaviour?
Best regards,
D. Bobkov
0 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Feature Detection and Extraction in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!