Skip to content

Suggested Changes #4

@bradybus

Description

@bradybus

I am new to GitHub and code-sharing in general, so I am not sure how to go about suggesting edits, but I'll take a shot at it.

First of all, this set of code has been TREMENDOUSLY helpful. Previously we had been opening .tdms files in excel, and saving them as text files from there for importing into MATLAB. This was a very tedious process. So thank you!

I changed quite a bit of the 'simpleConvertTDMS' to fit the specific needs of our research lab at Brigham Young University. Along the way, I noticed several things that may, in my opinion, make this cleaner and/or more general.

One of these is to remove lines 112:116, replacing them with the MATLAB function 'matlab.lang.makeValidName()' and 'matlab.lang.makeUniqueStrings()'. As in:

safeChannelNameValid = matlab.lang.makeValidName(channelNames,'ReplacementStyle','delete','Prefix','d');
safeChannelName = matlab.lang.makeUniqueStrings(safeChannelNameValid);

The first would be used for calling structure fields, while the second would be used for making the new ones later on.

There are several other general changes I've made as well, but not sure how to go about suggesting them, as typing them all out here seems a bit of a hassle.

Let me know if I could submit all of my changes for review.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions