Correcting effects of Humidity on sensors

79 vues (au cours des 30 derniers jours)
Dharmesh
Dharmesh le 23 Oct 2025 à 13:10
Modifié(e) : Star Strider il y a environ 24 heures
Hi All
I have gas sensor, that gets effected by hummdity that needs to be corrected. So was hoping to see if we can correct this ?
How can i run my code on the this support forum with my data file, so it can be run?

Réponses (1)

Star Strider
Star Strider le 23 Oct 2025 à 14:11
What sort of correction do you want to do to your data?
Do you also have the humidity data?
Are there any published ways to correct the readings for humidity? If so, please share them.
To run your code with your data here, first upload the data file, using the 'paperclip' icon in the top toolbar (just to the right of the Σ). Click on the 'insert a line of doce' icon in the top toolbar (farthest left icon in the CODE section, or ALT+ENTER) to create a code line, then type or copy-paste your code in it. To run it, press the green arrrow in the top toolbar.
x = linspace(0, 2*pi);
y = sin(x) .* cos(x);
figure
plot(x, y)
grid
Your code should run here essentially the same way it runs on your computer, including reading the file.
,
  18 commentaires
Dharmesh
Dharmesh il y a environ 5 heures
Déplacé(e) : Star Strider il y a environ 4 heures
Thank you. Just to confirm, did you mean that I need to provide some data that includes transient variations? Yes, the polynomial is simply the temperature correction for the baseline, prior to applying the humidity correction. I will capture some data and share my findings shortly.
Star Strider
Star Strider il y a environ 4 heures
Modifié(e) : Star Strider il y a environ 4 heures
My pleasure!
'Just to confirm, did you mean that I need to provide some data that includes transient variations?'
Yes.
Ideally, the input to the system identification functions needs to be the exact input data in 'u'. You then estimate the system by supplying the measured output in 'y'.
For example, I performed a system identification of a rat leg muscle (specifically rectus femoris) preparation a few decades ago. The input was a random stepwise variation of frequency and voltage (within limits) and the output was the displacement of a cantilever beam displacement transducer the muscle was tied to (and kept slightly stretched when relaxed). The input to the system identification function was the recorded stimulus signal in one channel, and the output was the simultaneously recorded deflection in another channel. I then did the system identification by using the stimulus signal as 'u' and the deflection as 'y'. I was able to get a decent fit to the data with a moderatey low-order state space realisation.
This is the sort of experiment you need to do. The input needs to be recorded (unlike my experiment, you will probably not be able to measure t, so use what you want to provide in terms of temperature and humidity steps as the input), and then measure the output. (I am not certain how the NOx signal fits with this, so it may be necessary to not record any NOx signals while you are varying the temperature and humidity.) That will be the system you want to estimate. You can then use the resulting model with the actual temperature and humidity data to produce a signal you can use to correct the observed output, probably by subtracting it from the observed output.
Again, I am not sufficiently familiar with your instrumentation (either theory or realisation) to specify an experimental design, so I must leave that to you.
EDIT -- Corrected typographical errors.

Connectez-vous pour commenter.

Catégories

En savoir plus sur AI for Signals dans Help Center et File Exchange

Tags

Produits


Version

R2025a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by