Hi, I used the GSSpcWrite to create an SPC file by using data read from a TXT file. The file was created and I was capable of reading and plotting it from Matlab. However, I can’t open that file in any other software like Ominc for example. The x ax

1 vue (au cours des 30 derniers jours)
I used the GSSpcWrite to create an SPC file by using data read from a TXT file. The SPC file was created successfully and I was capable of reading and plotting it from Matlab. However, I can’t open that file in any other software like Ominc for example. The x axis is not evenly spaced. When I produced a file with an evenly spaced x axis I could open it in Omnic. Any suggestions to make the unevenly spaced x axis SPCs produced by GSSpcWrite open in Ominc (or other spectral software). Regards
  2 commentaires
KSSV
KSSV le 9 Nov 2016
You make uneven axis to even axis and save to file.
Mazen Bahadi
Mazen Bahadi le 10 Nov 2016
KSSV thank you for your reply. Is there a certain function to make the x axis even? In my example, I simply replaced the x axis data with randomly generated data that was evenly spaced, but of course I lost my original x axis data. Any suggestions to make my x axis values even? Thank you

Connectez-vous pour commenter.

Réponse acceptée

Mazen Bahadi
Mazen Bahadi le 9 Nov 2016
KSSV thank you for your reply. Is there a certain function to make the x axis even? In my example, I simply replaced the x axis data with randomly generated data that was evenly spaced, but of course I lost my original x axis data. Any suggestions to make my x axis values even? Thank you
  2 commentaires
KSSV
KSSV le 10 Nov 2016
You can do it by interpolation. If it is a 1D problem go through interp1. If it is a 2D go through interp2.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by