Community Profile

photo

Geoff Hayes


2,652 total contributions since 2014

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

Geoff Hayes's Badges

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

View details...

Contributions in
View by

Answered
why my picture is 0s ?
Bekhtaoui - you say that the function "my_sct" takes an image like input(image2 result from another program). What does this oth...

11 hours ago | 0

Answered
Unable to get correct 2θ value from tan2θ = (2*a12)/(a11-a22) by writing as p= A(1,1) - A(2,2) q= 2 * A(1,2) theta = atan (p/q).Please help
Amar - I think that you should have q/p instead so that theta = atan (q / p) and theta will be -0.9272. Not sure if you still ...

12 hours ago | 1

| accepted

Answered
Serial interrupt to automatically update edit boxes,
Corne - in the line of code where you assign the callback, you need to make clear that another parameter is to be pased in. This...

19 hours ago | 0

Answered
Patch - Not enough input arguments
Axel - from patch you need to either provide a C the polygon colour specified as a scalar, vector, matrix, or a color name which...

19 hours ago | 0

Answered
How to delete a pushbutton with a given 'String' from a .fig file
Pankaj - yes, I see that button. I also see, in your m file, lots of pushbutton callback function that have no bodies which seem...

2 days ago | 0

| accepted

Answered
Periodic function. How would I make this function repeat itself for, let's say, -1 to 3 seconds or something?
A for loop could be used. Perhaps something like for t=-1:3 % use t in your code end

2 days ago | 0

Answered
how can we plot this sine wave
sesha - the only difference between this and the usual sine curve is that it is "inverted". Try doing x = -pi:0.01:pi; y = -1 ...

2 days ago | 0

| accepted

Answered
writing loops to download files using Matlab websave
alpedhuez - if you want to write a loop to download all files in the range of 20080401 to 20100101, you could do something like ...

2 days ago | 0

Answered
How to do If, Then, and Edit Field Text?
Jennifer - you haven't said what your error is (if there is one) or whether the problem is that no text appears in the expected ...

3 days ago | 0

Answered
Audio - Wah wah effect - 'Integer Operands Are Required for Colon Operator When Used as Index'
Ditte - what is the intent of this code while(length(cutoff_freq) < length(input_sound)) cutoff_freq = [cutoff_freq(max_f:...

4 days ago | 0

Answered
Loading & Plotting Multiple Files From Directory
countryroad - what is the error message that you are observing? From your code that creates the files full_filename = fullfile(...

5 days ago | 0

Answered
Looking to generate an array (grid) of pushbuttons in a figure
Ruger28 - you can get the string value of the button from within the callback. Just remove the input (kk?) as an input parameter...

5 days ago | 0

| accepted

Answered
I cannot plot the Bisection Method Code
hgrlk - the problem is that your m is equal to the size of your serr and sf plus one. So when you call plot(1:m,serr,'-o') the...

5 days ago | 0

| accepted

Answered
legend add title or more information
STPG - see title for details on how to add a title to your axes. If your loop is updating one axes, then I suggest putting this ...

5 days ago | 0

Answered
Creating a delete button in App Designer
Leah - your delete button callback could look something like function DelButtonPushed(app, event) app.OutButton.Text = app...

6 days ago | 0

| accepted

Answered
placing row values in columns
ayesha - if a is your 10x16 array and you want to combine subsequent rows, you can try using reshape as a = randi([0,1], 10, 16...

6 days ago | 0

| accepted

Answered
How to make a function
Nima - what is giving the error Not enough input arguments? How are you calling your function? If I just call it like >> math_D...

6 days ago | 0

Answered
How can I change a plot based on the file name?
Alexis - depending upon your version of MATLAB, you can use use either strfind or contains to determine if a substring exists wi...

6 days ago | 0

Answered
'Reference to non-existent field' when using nested for loops
Inti - the cell array jerkdef has the different Jerk* fields for your struct, but you only add these fields on each iteration of...

6 days ago | 0

| accepted

Answered
I need help, I have xlswrite row problems
Matthew - the row problem can be handled by using a different variable (other than n) to determine where the next row should be....

6 days ago | 0

Answered
How do I plot my code? I got Blank Graph
hgrlk - store each value of x from each iteration of your loop. Then, when the loop concludes, you can plot the data. Perhaps so...

8 days ago | 0

| accepted

Answered
I am getting an error while extracting texture feature. Can anyone please help me to remove those?
shweta - I think the problem may be due to your img matrix still being three-dimensional. It looks like you may have commented o...

8 days ago | 0

Answered
How can i copy .fig file in matlab ??
Pankaj - is A a GUI that you have created in GUIDE? Where are you calling File>Save As >> from? If I save the figure as a new fi...

8 days ago | 0

Answered
How can I control the values inside a drop-down menu within a GUI?
Blair - you need to populate the drop-down control elsewhere in the code (not in the callback that would fire after the user has...

9 days ago | 0

| accepted

Answered
How to resolve error using save and output file copy titles?
Lauren - it looks like your FileName is a cell array instead of a string...this may be the source of your error. It's not clear...

9 days ago | 0

| accepted

Answered
Container.map Error
Gregory - the error message is suggesting that your key, which is the input T (or T1 in your function), is of a data type that i...

9 days ago | 1

| accepted

Answered
splitting an audio file into 1s, for max, audio files
fatima - you could use audioread to read the data and then split into smaller ~1 second blocks of data. For example, [y,Fs] = a...

10 days ago | 0

| accepted

Answered
For loop in imresize function
Pablo - why are you doing this row by row? Why not just resize the matrix as A_101 = imresize(A, [10,101]); For your code for...

11 days ago | 0

| accepted

Answered
why does my gui handle structure not contain objects?
Scott - in the older versions of MATLAB (R2014a and earlier), the handles to the the GUI controls were doubles....so that is why...

11 days ago | 1

| accepted

Answered
How can i change slider's maximum value according to another slider?
Mustafa - in the callback for the first slider you could try something like function slider1_Callback(hObject, eventdata, handl...

12 days ago | 1

| accepted

Load more