- rfwrite(data,freq,filename) creates a Touchstone data file, filename. rfwrite touchstone files output 16 digits.
- rfwrite(netobj,filename) creates a Touchstone file from a network parameter object, netobj.
- rfwrite(_____,Name,Value) creates a Touchstone file using the options in the name-value pair arguments following the filename.
custom header for touchstone file
3 次查看(过去 30 天)
显示 更早的评论
Is there a way when creating a touchstone file with rfwrite to add additioanl information to the header?
Or a way to add these extra header lines to an existing file of the s2p type?
1 个评论
Saket Chirania
2020-6-2
Hi Neil,
We can use the rfwrite command to create a Touchstone file in multiple way. These are some common way to use these commands:
However, I don't think it is possible to add additional information to the header using rfwrite command.
Since, Touchstones files are text files you can use some text command to read in and modify the file if you want to append the header manually. The link below describes about writing data to text file
I hope this helps.
回答(1 个)
Scotty Neally
2020-11-10
编辑:Scotty Neally
2020-11-10
Consequently I'm looking for the same function...I've solved this in the past by using a dos copy cmd to append the header file + matlab rfwrite output. While it works, (very fast for multi-GB snp) its not a very pretty solution...
The key is to add 2 newline chars to the end of your header file before appending.
Dos CMD in Matlab: https://www.mathworks.com/help/matlab/ref/dos.html
Thanks,
-Scotty
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!