Matlab

Moderators: None (Apply to moderate this forum)
Number of threads: 1471
Number of posts: 2147

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
MATLAB Help Posted by Urvishptl on 10 Dec 2012 at 12:53 PM
%Controls filiters
use_Sham = true;

%Radiation filters
use_Radiated = true; %defult is true,

rfil = 1:numel(cData(:,1));%filling row with 1
cfil = 1:numel(cData(1,:));%filling columns with one

tvect = zeros(numel(rfil),1); %filling row with 1
%numrows = numel(pid);
npid = numel(pidR);
%--------------------------------------------------------------------------------------------------------%
for i = 1:npid
tvect (i) =(pid{i}.Timepoint);
end
%--------------------------------------------------------------------------------------------------------%
Sham = false(numel(rfil),1);

Radiated = true(numel(rfil),1);%defult is true, which means all my data is equal to radiation

for i = 1:npid
if strcmp(pid{i}.dose, 'Sham');
Sham(i)=true;
Radiated(i) = false;
end
%apply control samples filters
if use_Sham
rfilter = and(rfilter,Sham);
end

%apply radiated samples filters
if use_Radiated
rfilter = and(rfilter,Radiated);
end

I am trying to use the filter process, but some how I am getting no data selected.
I am trying to write logical operation with 1 or 0 expressions.
Highlighted text is where I am having trouble.





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.