num2nasSFFstr( num )

Convert number to a Nastran small-field format string
166 Downloads
Updated 2 Mar 2016

View License

I modified this code: https://www.mathworks.com/matlabcentral/newsreader/view_thread/167889
This function takes a numeric input and outputs a string in the small-field format recognized by Nastran. This is useful in modifying or creating new Nastran input files (.dat, .bdf). This isn't the most efficient code. It does not have much error-checking. It has not been properly vetted for bugs. Feel free to do so and send modifications.

Cite As

Coon Timothy (2026). num2nasSFFstr( num ) (https://www.mathworks.com/matlabcentral/fileexchange/55232-num2nassffstr-num), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.1.0.0

The previous version would not add a decimal point every time. The code was a bit too confusing, so I rewrote it completely. No guarantees on stability or bugginess, but it works for my manipulation of large bdfs

1.0.0.0