photo

Gavin


Washington University in St Louis

Last seen: Today Active since 2024

Followers: 0   Following: 0

Message

Programming Languages:
C++, C, MATLAB, Arduino, Assembly
Spoken Languages:
English
Pronouns:
He/him

Statistics

  • First Answer
  • Thankful Level 3

View badges

Feeds

View by

Question


Delete a timer object in it's callback
I have short timer callbacks to change a color from a button press or other action back to it's original color. This gives a nic...

3 dagen ago | 2 answers | 0

2

answers

Answered
Why did CD folder; give such a goofy error message when I just forgot ()
All good answers and I would have retracted the question once I noticed I'd forgotten the () Of course cd (apploc) is what I wa...

9 dagen ago | 0

| accepted

Question


Compare char data in a cell {'x'} to a character 'x'
I want to find what's in my table that's in a category column 1 If you read through you will see what I tries and how I finally...

10 dagen ago | 3 answers | 0

3

answers

Question


Why did CD folder; give such a goofy error message when I just forgot ()
It works other places but suddenly I can change directory K>> apploc apploc = 'C:\Users\CPSLab\Documents\OdorChoiceDev\' ...

10 dagen ago | 3 answers | 0

3

answers

Question


How do I do char2num (assume Ascii)?
num2 char is easy enough num = char(122) returns 'z' ; but how can I get back to the ascii value from a char? Do I really have ...

12 dagen ago | 1 answer | 0

1

answer

Answered
Error in MatLab's own routine.
Confusion between {} () and [] and when to use commas between elements and if they need quotation marks or not and if so ' ' or ...

13 dagen ago | 0

| accepted

Answered
USB callback "terminator" fails to trigger a read when messages are close together
See answers to other ways I asked this question and related issues https://www.mathworks.com/matlabcentral/answers/2152950-in-a...

13 dagen ago | 0

| accepted

Answered
How to develop a FIFO Circular Buffer for analyzing real-time data?
For a simpler case of needing a circular buffer to process USB or other irregularly timed input, try this: Initialize the buffe...

13 dagen ago | 0

Answered
In App Designed app: When does a function called within another function spawn a new thread?
See where @Umar laid it out very well my related issue and provided several solutions to that part of the problem https://www.m...

13 dagen ago | 0

| accepted

Answered
uiputfile blocks all of MatLab any error it keeps repeating, it requires CTR-ALT-DEL end task (my app) to exit
I changed from uiputfile() to uigetdir(startingFolder... as that is what I was really looking for: Where will the output files g...

13 dagen ago | 0

| accepted

Question


Can I call a function from another function and not come back?
I am running a function which at the end either returns or calls another function. Way back in the old days in assembler I'd do...

14 dagen ago | 2 answers | 0

2

answers

Question


waitfor( ) isn't working for a SerialPort
Seems simple my code does this to be sure everything has been processed from the USB port connected to an Arduino Pico. if (app...

15 dagen ago | 1 answer | 0

1

answer

Answered
In App Designed app: When does a function called within another function spawn a new thread?
I had several confounding issues for example that RunTrial() just starts a trial then returns; so waiting until its really finis...

17 dagen ago | 0

Question


Error in MatLab's own routine.
How can I possibly fix this? Warning: The following error was caught while executing 'onCleanup' class destructor: Brace inde...

17 dagen ago | 1 answer | 0

1

answer

Question


Error using inputdlg() second time through same code
My code works fine on the first pass but when I press the button a second time I get an error. answer is a local variable so is...

17 dagen ago | 1 answer | 0

1

answer

Question


uiputfile blocks all of MatLab any error it keeps repeating, it requires CTR-ALT-DEL end task (my app) to exit
I wrote this code that ends up being an endless loop Due to weird treatment of this particular dialog I can't add a breakpoint ...

18 dagen ago | 1 answer | 0

1

answer

Question


In App Designed app: When does a function called within another function spawn a new thread?
I'm having SO much trouble! I think maybe when I call a function from within another function or callback it's going into a new ...

21 dagen ago | 2 answers | 0

2

answers

Question


USB callback "terminator" fails to trigger a read when messages are close together
My App Designer program uses USB communication to an Arduino It usually works but every once in a while Matlab fails to read. ...

23 dagen ago | 2 answers | 0

2

answers

Question


How do I print a % character into a file
I am creating an app in App Designer, creating an output file that will be an .m file for another user to run later. I'd like ...

23 dagen ago | 3 answers | 0

3

answers

Question


App designer Locks me out of editing things I need to change
I should be able to edit comments or add a comment at the top of an app created % Button pushed function: SavingFolderButton ...

ongeveer 2 maanden ago | 2 answers | 0

2

answers

Question


append (not strcat) to combine strings with whitespace (\n)
I have a text box (text edit field, shoud it be a label box?) I want to add lines of text to it without loosing the old text. ...

2 maanden ago | 3 answers | 0

3

answers

Question


What does "Interrupt while evaluating Button PrivateButtonPushedFcn." mean?
My program was working but now I'm getting this. Interrupt while evaluating Button PrivateButtonPushedFcn. If I knew more abou...

2 maanden ago | 1 answer | 0

1

answer

Question


Know if Serialport is connected (in App Designer program); ishandle() always true
I open a serial port to my Arduino and it usually works. I'm trying to take care of various errors, for one of which I need to k...

2 maanden ago | 1 answer | 0

1

answer

Question


See also ... blocks viewing of answer
I'm trying to see an answer that includes a screenshot apparently. The See Also pane is blocking much of the screen so I can't s...

2 maanden ago | 1 answer | 0

1

answer

Question


uiwait(msgbox("My message") dialog comes up behind the app. User never sees it.
Why does uiwait(msgbox("My message") dialog come up behind the app? My user never sees it so can't click OK. Is there a way to b...

2 maanden ago | 2 answers | 1

2

answers

Question


In App Designer: put new data into a (ui)table
This should be easy... Data comes in from a serial device consisting of a character and a number (time in msec) and I want to i...

2 maanden ago | 1 answer | 0

1

answer