MATLAB Answers

Is there a way to return a decimal matrix to a stl file?

8 views (last 30 days)
I changed the binary stl file made up of triangulation into decimal matrix through the fread.
I'd like to know how to revert this decimal matrix to a stl file.
And the decimal matrix consists of 13797684x1 double, and the stl file is the binary file.

Accepted Answer

Walter Roberson
Walter Roberson on 14 Dec 2020
  8 Comments
Walter Roberson
Walter Roberson on 17 Dec 2020
In order to convert the binary file back to stl you would need to read the binary file and do a Reed Solomon decoding on it to strip out the extra information.
The only reason to go through a Reed Solomon step is if the encoded binary is going to be transmitted over a channel that has noisy on it, as the RS information would give an opportunity to correct the noise and receive the file correctly. You might do this if you were transmitting the data by radio, and if for some reason it was cheaper to correct the data along the way instead of breaking it into sections and retransmitting the failed blocks. For example it might be worth doing if you were transmitting the file to Mars. Or if you were transmitting by satellite, as download bandwidth for satellite is much higher than upload bandwidth except at base stations.

Sign in to comment.

More Answers (0)

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!