Group Abstract Group Abstract

Message Boards Message Boards

0
|
9.1K Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Making a filter

Posted 11 years ago

I found this filter in a MatLab program:

F2=H2./G2;

for i=1:31 if G2(i,1)==0 F2(i,1)=0;

    end

end

It says that if any element between 1 and 31 in G2 is 0 (or very small that it's practically 0) then any element in F2 should be 0 between 1 and 31. How can I write something similar in Mathematica?

Thank you in advance.

POSTED BY: sean roubion
POSTED BY: David Reiss
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard