The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 data filtering

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
OndrejMM Posted - 07/07/2008 : 11:52:42 PM
Hi Guys,

Can you please help me with the data filtering? See my stress-strain dependence in figure below,… what I need to do is to get rid of those stress increases, in the other words I just want to have overall stress-strain dependence without those stress-discrepancies,…

I think the best condition is that “stress” cannot increase,… ???

I’ve tried to do simple “Extract Worksheet Data”

if stress(i) < stress (i-1) && stress(i) < stress (i-2)

but this is logically not very good solution, and of course doesn’t produce very good result,…

Thank you in advance for your help.
Ondrej

PS: for some reason I couldn’t insert the image in Firefox 3, I had to use you IE,...



4   L A T E S T    R E P L I E S    (Newest First)
OndrejMM Posted - 07/10/2008 : 08:53:01 AM
yep, that's true I don't need to use string variables,... anyway, I'm not very good at programming I've just tried to combine some scripts I have found on the forum,...

many thanks for ideas, i will somehow manage to filter those data,...

cheers
ondrej
larry_lan Posted - 07/10/2008 : 04:11:22 AM
Hi Ondrej:

If you don't want to mask the data, maybe you can use our smooth tool (like FFT filter) to cut the peaks. I think it's difficult to set extract condition in LabTalk.

Why you use string variables to deal with numeric values? I think you'd better use B, A and col(stress)[ii] instead.

Thanks
Larry
OriginLab Technical Services
OndrejMM Posted - 07/10/2008 : 02:04:59 AM
Hi Larry,

thanks for the idea but I would prefere to filter data with a script,... here is what I wrote, but it doesn't work,...

win -o AE {
nn=wks.maxrows;
for(ii=0;ii<nn;ii++)
{
%B=0; //local minium
%A=col(stress)[ii]$; //value in column
if (%A <= %B) {%B = %A};
else { mark -d col(stress) -b %A -e %A};
};

I was thinking that if I don't "allow" to the "stress value" to increase above local minimun (%B) I can filter data,...

what do you think?

Many Thanks
Ondrej
larry_lan Posted - 07/09/2008 : 01:30:26 AM
Maybe you can use the data mask tool?



Thanks
Larry
OriginLab Technical Services

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000