Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get(w,'Channel') returns different types #61

Open
dylanmikesell opened this issue Dec 1, 2018 · 0 comments
Open

get(w,'Channel') returns different types #61

dylanmikesell opened this issue Dec 1, 2018 · 0 comments

Comments

@dylanmikesell
Copy link

I noticed a funky behavior today that was breaking my code. If a waveform object has multiple waveforms, then
get(w,'Channel')
returns a cell array that contains the string 'BH?'.
However, if the waveform object has 1 waveform, then
get(w,'Channel')
returns a string array.
I suggest that this function call always return a cell array. When looking at the return of a waveform that has 3 objects vs. a waveform that has 1, we cannot distinguish a difference by looking at size alone, since the string array for a channel is size 1x3. The user would need to test the type of the return.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant