942,788 Members | Top Members by Rank

Ad:
Dec 10th, 2007
0

question in matlab

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
marzuki is offline Offline
5 posts
since Nov 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Legacy and Other Languages Forum Timeline: Qbasic Help File I can't open it in XP !!
Next Thread in Legacy and Other Languages Forum Timeline: How to implement heap in lisp?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC