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 回表示 (過去 30 日間)
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 件のコメント
KSSV
KSSV 2016 年 11 月 9 日
You make uneven axis to even axis and save to file.
Mazen Bahadi
Mazen Bahadi 2016 年 11 月 10 日
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

サインインしてコメントする。

採用された回答

Mazen Bahadi
Mazen Bahadi 2016 年 11 月 9 日
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 件のコメント
KSSV
KSSV 2016 年 11 月 10 日
You can do it by interpolation. If it is a 1D problem go through interp1. If it is a 2D go through interp2.
Mazen Bahadi
Mazen Bahadi 2016 年 11 月 11 日
Thank you very much, that was very helpful.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by