954,170 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

question in matlab

I am the beginner in matlab, i made the following matlab code:

load gk.dat; % GK data
Dgk = gk(:,1);
vgk = gk(:,2);
[a,b]= size (gk);
for i=1:a
for j=1:b
if (Dgk > 5)
A (i,j)= gk(i,j)
end
end
end

What I need from the above code is:

Take all the data only if Dgk > 5, if this criterion is found, so take all the data in that coulumn and put in new matrix name for example A..I try to chek the A contain, bit it is zero..anybody could give help , why?

thanks
maru

marzuki
Newbie Poster
5 posts since Nov 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You