introducing a specified indent in the output text file
26 views (last 30 days)
Show older comments
I am trying to introduce in a specified indent in fprintf ...to get a certain output of the file. \t was not a big help, it was giving a tab from the string before it..and in every line the strings are of different length.
output:
lat_to_long_tread_stiffn_ratio = 0.995941 $ -
sidewall_to_tread_stiffn_ratio = 0.1 $ -
damping_tread_rubber = 3.33e-05 $ s
desired output:
lat_to_long_tread_stiffn_ratio = 0.995941 $ -
sidewall_to_tread_stiffn_ratio = 0.1 $ -
damping_tread_rubber = 3.33e-05 $ s
max_friction_velocity = 14.1877 $ mm/s
sliding_velocity = 149.718 $ mm/s
blocking_velocity = 19623.8 $ mm/s
low_ground_pressure = 0 $ bar
1 Comment
See Also
Categories
Find more on Large Files and Big Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!