When writing my code, I need some elements from the returned vector. For example:
y=zeros(100,1003);for ii=1:100 y(ii,:)=conv(h(ii,:),x(ii,:));end
I just want y(:,4:end); and I my solution is:
y(:,1:3)=[];
I think that matlab should have an elegant expression for this case. Is there any suggestion. Something like:
y=zeros(100,1000);for ii=1:100y(ii,:)=conv(h(ii,:),x(ii,:))(4:1003); %of course it's not correct :(
end
Thanks in advance 🙂
Best Answer