I want to hide an image inside an big image using SciLab tools, following is the code snippet I am using
S1_diag = diag(s1);
S2_diag = diag(s2);
S1_diag(1:length(s1), :) = S2_diag(1:length(s1), :);
where s1 and s2 are image 1 and 2's singular diagonal matrix
The same code works in Matlab but generates an 'Invalid Index' error (21) in SciLab. What I am missing?
I am novice in SciLab syntax so couldn't understand how to address this in SciLab.
Any help is appreciated.