Community Profile

photo

Geoff Hayes


Last seen: 2 days ago
3,061 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
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 =...

9 days 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...

12 days 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...

26 days 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 ...

28 days 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; % ...

1 month 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....

1 month 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...

1 month 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...

1 month 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...

1 month 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...

1 month 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...

1 month 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...

1 month 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...

1 month 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...

1 month 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...

2 months 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...

2 months ago | 0

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'); ...

2 months 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...

2 months 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...

2 months ago | 0

| accepted

Answered
Can sfit objects be plotted to specific axis in GUI (not a figure window)?
Giorgio - from Plot cfit or sfit object, the code to plot the sf object would be plot(sf, 'Parent', app.Map) . When you try to...

2 months ago | 1

Answered
Nested If-ELSEIF statements
Hans123 - do you really need nested if-elseif blocks to change the extreme points? Wouldn't you just do them for x, y, and z sep...

2 months ago | 0

| accepted

Answered
why i am getting error while using editable text in guide?
Ajay - look closely at the results from which uicontrol --all: C:\Users\ajayr\Documents\MATLAB\uicontrol.m built-in ...... % s...

2 months ago | 1

| accepted

Answered
how to open a file from the previous folder
Alajendro - you should be able to use pwd to determine the current folder, and then "navigate" up one directory to A and then do...

2 months ago | 0

| accepted

Answered
How can I update the plot in App designer?
Rasheed - i might use a timer to update the plot (or animated line) and then whenever the "Update" push button is called, the up...

2 months ago | 0

| accepted

Answered
error undefined fuction and varible
Deepak - it looks like you have copied this code from (perhap) https://www.mathworks.com/matlabcentral/answers/435101-this-is-my...

2 months ago | 0

| accepted

Answered
How to use "record" command for some amount of time?
Oai - from Record audio to audiorecorder object, you can specify the length of the audio recording as r = audiorecorder(8000,16...

2 months ago | 0

| accepted

Answered
Plotting analog input continuously on a given axis
Niraj - if you don't declare daqObj as a global variable, then it will be a local variable. When your function "completes" (afte...

2 months ago | 0

| accepted

Answered
I get an error when running anomaly time series code in the app designer.
Özge - the output of timeseries is an object and so you need to plot the appropriate data from this object and not the object it...

2 months ago | 0

| accepted

Answered
Error: Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.
nada - I think that you are trying to set the string property for each of the three edit fields to be the same value. Note that ...

2 months ago | 1

Answered
Issue with plotting multiple data points on same graph
Oscar - look closely at the y-axis for the first image (that which plots both elements). There seems to be a factor of 10^4 so t...

2 months ago | 0

Load more