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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 data filtering
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

OndrejMM

Australia
81 Posts

Posted - 07/07/2008 :  11:52:42 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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,...



larry_lan

China
Posts

Posted - 07/09/2008 :  01:30:26 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Maybe you can use the data mask tool?



Thanks
Larry
OriginLab Technical Services
Go to Top of Page

OndrejMM

Australia
81 Posts

Posted - 07/10/2008 :  02:04:59 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

larry_lan

China
Posts

Posted - 07/10/2008 :  04:11:22 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

OndrejMM

Australia
81 Posts

Posted - 07/10/2008 :  08:53:01 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000