| Author |
Topic  |
|
|
OndrejMM
Australia
81 Posts |
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,...

|
|
|
larry_lan
China
Posts |
Posted - 07/09/2008 : 01:30:26 AM
|
Maybe you can use the data mask tool?

Thanks Larry OriginLab Technical Services |
 |
|
|
OndrejMM
Australia
81 Posts |
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
China
Posts |
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
Australia
81 Posts |
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 |
 |
|
| |
Topic  |
|
|
|