| | |
question in matlab
![]() |
•
•
Join Date: Nov 2007
Posts: 5
Reputation:
Solved Threads: 0
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
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
- MatLab Forum? (DaniWeb Community Feedback)
- MATLAB Help (Legacy and Other Languages)
- anyone know Matlab? (Java)
- Matlab help? (Legacy and Other Languages)
- matlab help : function, global, and ode45 (Legacy and Other Languages)
- basic matlab question (Computer Science)
Other Threads in the Legacy and Other Languages Forum
- Previous Thread: Qbasic Help File I can't open it in XP !!
- Next Thread: How to implement heap in lisp?
| Thread Tools | Search this Thread |





