Consider this formatted data file: Write a simple script named formatted2csv that takes two input arguments representing the input and output file names. Then, the script writes the same input float data to the output file data.out in a comma-separated (CSV) style, like this example output file.


Write your Python script in such a way that it takes the input and output file names from the Bash command line arguments, like the following,

python data.out

Write your MATLAB script as a function that takes the input and output file names as input arguments to a function named formatted2csv, so that it can be called like the following from the MATLAB command line.