error-undefined method times

6 visualizzazioni (ultimi 30 giorni)
kash
kash il 14 Feb 2012
I am performing dual tree and making some values zeros and for that i am performing inverse dual tree,i get error wen i perform thisi please help
2d-dual tree
clc
clear all
x=imread('st.tif');
x=rgb2gray(x);
x=imresize(x,[256 256])
x=double(x);
[Faf, Fsf] = FSfarras;
[af, sf] = dualfilt1;
J = 4;
T = 10;
[r c ]=size(x)
w = dualtree2D(x,J,Faf,af);
% loop thru scales:
for j = 1:J
% loop thru subbands
for s1 = 1:2
for s2 = 1:3
W{j}{s1}{s2} = soft(w{j}{s1}{s2},T);
end
end
end
making that matrix zeros(some values)
A=w
n = numel(A);
A1_10 = repmat(A,[1,1,10]);
t = ones(size(A));
for j1 = 1:size(A1_10,3)
p = t;
k = randperm(n);
k1=[1:n];
p(k(1:6000)) = 0;
A1_10(:,:,j1) = A1_10(:,:,j1).*p;
end
i get error
Undefined function or method 'times' for input arguments of type 'cell'.
Error in ==> ssample at 32
A1_10(:,:,j1) = A1_10(:,:,j1).*p;
please help
from that out put i have to perform inverse dual tree
y = idualtree2D(?,J,Fsf,sf)

Risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by