Community Profile

photo

Geoff Hayes


Last seen: Today
3.072 total contributions since 2014

Professional Interests: Software Engineering, Target Tracking, Video Streaming apps

Geoff Hayes's Badges

  • Revival Level 3
  • First Review
  • 36 Month Streak
  • Thankful Level 1
  • Ace
  • Knowledgeable Level 4
  • First Answer
  • Scavenger Finisher
  • Promoter
  • Solver

View details...

Contributions in
View by

Answered
Redrawing an image in a UIAxes that has already been drawn
Hi Jason - from image created by imshow, the app.myData is an image object which (from the tests I did) may no longer be valid d...

8 giorni ago | 0

| accepted

Answered
Removing the max and min of a vector without removing multiple minimums or maximums
Logan - from max value and indices you can get the index to the maximum (or minimum) value and then use that index to remove the...

29 giorni ago | 0

Answered
Using the euler method
Kelsey - there are a couple of coding mistakes with the above. Before the code can execute, there is an error Invalid expressi...

circa un mese ago | 0

Answered
How do I convert a DataMatrix back to a normal matrix?
Emil - see Convert DataMatrix object to double-precision array for details on the conversion.

circa un mese ago | 0

Answered
math question error with the format
Dena - I suspect the error is due to the use of exp where you are not providing any inputs to this function. The code should pro...

circa un mese ago | 0

Answered
How can I set the focus to a GUI element created with javacomponent?
Josh - which version of MATLAB do you have? Does your version support uihtml? If so, you could modify one of their examples to d...

circa 2 mesi ago | 1

Answered
Modify Knob From App Designer
Sossio - I suspect that you will want to create a discrete uiknob. Perhaps something like the following will do fig = uifigure;...

circa 2 mesi ago | 1

| accepted

Answered
Has anyone found Lamp enable and disable in appdesigner?
Ajeet - try using "on" or "off" (instead of 1 or 0) and add a pause after each change to the enabled property (so that there is ...

circa 2 mesi ago | 0

| accepted

Answered
How to cycle through two folders and search for files with similar names and load them into current directory
Natalie - a loop could look like the following for k=1:65 rawFilename = sprintf('InM%02d_RAW.txt', k); scaledFilename...

2 mesi ago | 0

Answered
How to normalize rows of a matrix?
Kimberley - your code is overwriting the value that was assigned to aefm_2 on the previous iteration aefm_2 = aefm_1(i,:)./max(...

2 mesi ago | 0

| accepted

Answered
waitbar bar inside two for loops
Alajendro - rather than creating a new waitbar on each iteration of the inner loop, just create it once and then re-use it. For ...

2 mesi ago | 1

| accepted

Answered
How can I record an audio from a tuggle button in the GUIDE ?
Samuel - I think that the problem is that you are creating a new audio player each time the callback is called: handles.audio =...

3 mesi ago | 0

Answered
Passing variable from anonymous objective function to main workspace
Mario - consider nesting your optimization function within the main function and have it return the variable to the workspace. S...

3 mesi ago | 0

Answered
AppDesigner use of extern function and variables
prrrrr - so long as the aquad function can be found within the MATLAB search path, then you can just call it directly from App D...

3 mesi ago | 0

| accepted

Answered
Loop not working to find min,max,mean
Marios - from your code nump = nump +1; will always be a scalar (1x1) value which seems incorrect. Should this be an array of ...

3 mesi ago | 0

| accepted

Answered
why should we multiply the number of samples with sound frequency to calculate the sine wave?
joly - I think that t is usually a time array (in seconds). From fft examples, t can be initialized as Fs = 1000; % ...

4 mesi ago | 0

| accepted

Answered
Why can't it proceed to the next iteration of for 'runs' loop?
mrbond99 - please look at the condition for the while loop while m > 0 You will only enter this loop so long as m is positive....

4 mesi ago | 0

| accepted

Answered
Appending different size arrays each itteration in app desinger
remco - you could perhaps create a member variable for your App and then update that variable with the y on each call to the tim...

4 mesi ago | 0

Answered
Move-File: Can't move certain Files to another Folder!
Malte - you haven't posted the error message or describe fully what you mean by I don't get it to work. According to movefile in...

4 mesi ago | 1

| accepted

Answered
Displaying video file on App Designer Axes
Zachary - please see the example found at Read Video Using Frame Index and Time Interchangeably. I suspect that you could do som...

4 mesi ago | 0

Answered
Find function can not find vector element index
You can't use the equality operator == with doubles. See Floating-Point Numbers for details. Instead you need to use a tolerance...

4 mesi ago | 0

| accepted

Answered
Why function crashes when using conditional statements?
Tara - try replacing the switch with an if and use a tolerance check (note that using a switch statement for doubles or floats w...

4 mesi ago | 0

Answered
Using AppDesigner with FileSystemWatcher
Summary of issue: from Create event listener bound to event source it shows that the call to addlistener returns an object. In t...

4 mesi ago | 0

| accepted

Answered
Filter Table with Generalized Values
Neeraj - how about trying something like filteredTable = t(t.Age == 20 & strcmp(t.Gender, 'F'), :) or are you hoping for somet...

4 mesi ago | 0

| accepted

Answered
Image Processing in GUI Error
Muhammad - please post the full error message (so all of the red text) so we can narrow down which line of the callback is gener...

4 mesi ago | 1

| accepted

Answered
Though the code is pretty simple, still the value of theta remains 0 every time I execute the results with different values of w,x,y,z,u and v. The value of theta doesn't change anytime.
Srinjoy - the problem is that you are using the equality operator when comparing floats. Look at your conditions for the if/else...

4 mesi ago | 1

Answered
HERE RESTful API - POST - Fleet Telematics
Sridhar - the 400 error code indicates (if I recall correctly) that there is a problem with your request. I see that you call w...

4 mesi ago | 0

| accepted

Answered
Single Figure Animation of moving points (without tails)
Luca - use set to modify the x and y data of the plot. Replace your for loop with the following hPlot = plot(NaN, NaN, 'db'); ...

4 mesi ago | 1

| accepted

Answered
Why is my plot not showing?
Tony - your code is not calling the TranMat function which has the code to plot the data. How should it be called? What do the a...

4 mesi ago | 0

| accepted

Answered
fopen status for serial objects
Could you use a try catch block to try to open the serial object and then, if there is an error, take the appropriate action giv...

4 mesi ago | 0

| accepted

Load more