Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GlobalSettings Code Errors #3

Open
GeorgeRussev opened this issue Jun 4, 2024 · 2 comments
Open

GlobalSettings Code Errors #3

GeorgeRussev opened this issue Jun 4, 2024 · 2 comments

Comments

@GeorgeRussev
Copy link

GeorgeRussev commented Jun 4, 2024

Hello! It's great to share your work!
I have a question about these lines of codе...the problem is that number values are turned to string.
-->Delimiter = ';';
-->HeaderLines = 0;
The other problem is with the "for" cycle (the code isn't run)
---> ```
for Id = 0:StopId-StartId
Conversions{VelocityId, StepId}(Id + 1) = (StartMass - Mass(VelocityId, StartId + Id)) / (StartMass - StopMass);
end

@Xenozite
Copy link
Owner

Xenozite commented Jun 5, 2024

Hi, GeorgeRussev. Thanks for your comment.
These lines of code are used to import the data file correctly. I didn't quite understand how they can be converted to strings because they are a character and a number. You need to set your CSV file delimiter symbol and number of header lines that matlab importer need to skip before starting parsing file to table.
Please take a note that file must have the following structure (suppose you have 3 velocities and ; as delimiter):
Temperature in Celsius; TG Velocity №1; TG Velocity №2; TG Velocity №3; DSC Velocity №1; DSC Velocity №2; DSC Velocity №3
Optionally if you have extra deconvoluted data for each TG curve you can continue that table in format:
TG Deconvoluted Peak №1 for Velocity №1; TG Deconvoluted Peak №2 for Velocity №1; TG Deconvoluted Peak №3 for Velocity №1; ... and so on.
The code block with a cycle is responsible for isolating individual steps from the general TG curve for further separate analysis (as in the case of decomposition of crystallohydrates). In your case, it looks like you have incorrectly set the steps for analysis. To do this, you need to specify the number of speeds and set the Steps array. Suppose your process starts at 30 degrees with 100% of the value. Next, you have a step or an inflection at 200 degrees by 60% and the process ends completely at 300 by 40%. So you have 2 steps and the Steps array should look like this:
Steps = [
30 200 300; % For velocity №1
30 220 320; % With some shifts for velocity №2
30 240 340]; % With some shifts for velocity №3
If you would like to analyse whole TG curve you can simply set 1 step with begin and end at the coresponding temperature points (for example 30 and 300 as in above example).

@GeorgeRussev
Copy link
Author

Thanks for the quick and comprehensive response. Great job and I'm looking forward to any updates!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants