question in matlab

Reply

Join Date: Nov 2007
Posts: 5
Reputation: marzuki is an unknown quantity at this point 
Solved Threads: 0
marzuki marzuki is offline Offline
Newbie Poster

question in matlab

 
0
  #1
Dec 10th, 2007
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Legacy and Other Languages Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC