Community Profile

photo

Geoff Hayes


Last seen: Today
2,863 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
gamultiobj - Not enough input arguments
olga_vm - the signature for your fitness function is function z=myfitnessfunction(x,y) with two inputs, x and y. The error mes...

3 hours ago | 0

Answered
How to use webread with a variable (from a table) in the url
Benjamin - you need to specify a format when using sprintf so that the code is included in the string. For example, >> code = '...

3 hours ago | 0

Answered
Reading .txt files and replace numbers from one file to another
Ivan - try using importdata to read your text files, perhaps something like file1Data = importdata('file1.txt', ' ', 1); % skip...

1 day ago | 0

Answered
How to ask the user of my project to name and save there work?
Brogan - consider using the uiputfile dialog to prompt the user to choose a folder and filename for their data [filename, path...

1 day ago | 0

Answered
Finding mean value through every 12 columns of nested doubles in cell
Gabrielle - d_meanm is a 1x36 array and you want to find the average of each of the three years, then you could reshape the arra...

1 day ago | 0

| accepted

Answered
cut's video to give start and end postion in matlab
Irfan - try using the videoreader to load the video and read only the frames that you are interested in. The videoreader object ...

1 day ago | 0

Answered
Control ONE Pop Up Menu depending on ANOTHER Pop Up Menu
Miss B - which version of MATLAB are you using? On older versions, you may need to do something like if get(hObject, 'Value') =...

2 days ago | 0

Answered
How can I resolve this problem regarding nested functions?
Cyrus - from Requirements for Nested Functions, You cannot define a nested function inside any of the MATLAB® program control st...

2 days ago | 0

Answered
How to set togglebutton by another togglebutton
Miroslav - one problem is with the two lines set(handles.TB_med_ZV, 'Value', 'Min'); %turn off toggle buton and set(handles....

2 days ago | 0

| accepted

Answered
Break statement inside an if statement
Darragh - the error throws an error and displays a message, so the break will never be called...and so the error message makes s...

3 days ago | 0

Answered
How can I input "function Txy (Z1,Z2,P)" properly?
Kalynn - it sounds like you are calling the function from the command line like >> function Txy (Z1,Z2,P) The function keyword...

4 days ago | 0

Answered
How do I ignore characters in a text file
Cole - since this is homework, we can only give out hints...so there is an example at textread that describes how to ignore a sp...

4 days ago | 1

Answered
Splitting piano song .wav file into sections is resulting in the same frequency instead of different frequencies.
Voltarian - since you have the audioBlock (of one second's worth of data) wouldn't you just use the code that you already have t...

4 days ago | 0

Answered
Real Time Data Plot
mehmet - every time you call plot you create a new graphics object, so you could just re-use a single plot object on every itera...

4 days ago | 0

Answered
Sum of values stored in an array of handles
Juri - the only problem that might exist for you (it did for me when i tried this) was that get(bl(i,:),'value') returned a c...

5 days ago | 0

Answered
Why won't my MATLAB GUI code work?
Ellen - I'm guessing the error has something to do with the image_selected variable not being defined when the popup menu callba...

5 days ago | 1

| accepted

Answered
Unrecognized function or variable 'X', where is the error ? I have tired all the things and solution but the problem wont fix , please help its urgent Thank you
harshit - you are calling your function, from the command line as >> computeCost(X, y, theta) which is fine as it does match t...

5 days ago | 0

Answered
Save figure userdata to a workspace variable
Johannes - instead of using the ButtonDownFcn for the button, just use Callback. In this example, when the user presses the butt...

5 days ago | 1

| accepted

Answered
How to get output multi from GUI ?
Thapakorn - try the following code function Testcal2 fig = uifigure('Name','program'); fig.Position = [100 100 800 50...

5 days ago | 0

Answered
Applying a string of user inputs within a while-loop
michael - for the error that you mention ("At least one END is missing: the statement may begin here"), this can be fixed by add...

6 days ago | 1

| accepted

Answered
Timer "Busymode" "queue" not finishing TimerFcn
Tobias - it has been a couple of years but...the default execution mode for a timer is "single shot", so the timer will just fir...

6 days ago | 0

Answered
how do I change Matlab GUI components color?
fatih - what is the full error message that you are observing? Are you using GUIDE, App Designer, or have you created your GUI p...

6 days ago | 0

Answered
Please help me to correct my for-loop
Behzad - I don't really understand why in your code you have variables named table and then tbl. Perhaps both are the same varia...

7 days ago | 1

| accepted

Answered
Insert Background Image Behind Subplots
Hannah - How do I add a background image to my GUI or figure window? provides a good answer on how to add a background image to ...

7 days ago | 0

Answered
Communication between MATLAB code and GUI
Miroslav - is the "only" difference between https://www.mathworks.com/matlabcentral/answers/511717-image-rendering-in-gui and th...

7 days ago | 0

| accepted

Answered
Writing code for bisection method; then storing values for each iteration of the loop.
Bradley - look closely at the condition for the while loop while err > toll . Since toll (the tolerance) is fixed, how or wher...

7 days ago | 0

| accepted

Answered
Is it possible to write a loop for doing this?
Behzad - look for what is common. Your code has twelve months, so you should be able to replace that with a loop. Perhaps someth...

8 days ago | 1

| accepted

Answered
How to fix "unrecognized variable error"-
Rita - the error message "Unrecognized function or variable 'ifdoflimit'. Error in truss2D_nlcon (line 154) if ifdoflimit...

8 days ago | 0

| accepted

Answered
About Fast Fourier Transform and how to do this operations
Osman - since this is homework, we can only give out hints. See audiorecorder for recording an audio sample, audiowrite to write...

9 days ago | 0

Answered
reading and writing the same Excel file in app designer
ZM - check to see if you have permission to read and write to that file. If you do, then consider using readtable instead of xls...

10 days ago | 0

| accepted

Load more