Community Profile

photo

Geoff Hayes


Last seen: Today
2 844 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
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...

ungefär 3 timmar ago | 0

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

ungefär 12 timmar 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...

ungefär 15 timmar 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...

en dag 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 ...

en dag 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...

en dag 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...

en dag 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...

3 dagar 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...

3 dagar 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...

4 dagar 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...

4 dagar ago | 0

| accepted

Answered
Vector with if condition
Klaudio - so with your sample inputs and changing the last line assignment to c(i) = RH(j); then I see (like you) that all eleme...

4 dagar ago | 1

| accepted

Answered
Help ploting different particles in a box
If the last step is to just calculate a new speed after the shock then this would apply to a single particle only. So we would m...

4 dagar ago | 0

| accepted

Answered
comparing two columns of a table in MATLAB
Annick - how about you remove the loop and just do Comparison = Table1.Interval1 == Table1.ActivityCode1; Wouldn't Comparison ...

5 dagar ago | 0

| accepted

Answered
How to stock a vector in a vector
Maxime - try doing X = zeros(3,1000); for i=1:3 X(i,:) = -(log10(1-R)./water_u(i)); end where we use the : to indicate ...

5 dagar ago | 0

| accepted

Answered
How do I go about increasing the number of arguments in my code? Or how should I fix this issue?
Mitch - there are a couple of errors around this block of code x = linspace(1:n_elem:30); O(x) = O_int+(x-1)*O_inc; X_1(x) = ...

6 dagar ago | 0

Answered
Hello everyone! this is the first time I am using GA and I encountered with this message:Failure in initial user-supplied fitness function evaluation. GA cannot continue.
amir - you don't need to supply the f, those f values that have been attained in another code. The genetic algorithm will provid...

7 dagar ago | 0

| accepted

Answered
Why this for loop is not working?
Amit - a is a row array but the code in the loop is treating it like a column array. Try changing the code to for i = 1:5 ...

7 dagar ago | 0

| accepted

Answered
error when substituting value
Hao - your code above code is creating an array (this is your f) and not a table. So when you say something like x = 3; f(x) =...

8 dagar ago | 0

Answered
Error in if condition
Ararat - don't use the elseif and just use two if statements (since you want to apply a specific action to both variables) if a...

8 dagar ago | 0

| accepted

Answered
different answers thank you
I formatted your code so it might be a little more clear what is going on. Here is the while loop code while Y1 < 30 cot =...

8 dagar ago | 0

Answered
Arduino ... a lamp
duaa - not quite sure what the error message is but I suspect it has to do with your second condition in while(k1 || (K1 == 0))...

9 dagar ago | 1

| accepted

Answered
I need help with grade calculator! thank you!!
bushra - it isn't clear what handles.out19 is or how it is set, one problem is with if (handles.out19 >70 && <=100) and all th...

13 dagar ago | 0

Answered
Image rendering in GUI
Miroslav - rather than creating a new image (position) for the car on each iteration of the loop, try updating the YData (vertic...

13 dagar ago | 1

| accepted

Answered
Why doesn't Matlab know the variable from appdesigner despite it is globalized into matlab workspace ?
farzad - rather than using a global variable, can't you just use pwd to identify the current working directory? So the code in y...

13 dagar ago | 1

| accepted

Answered
Moving a square horizontally
Alexander - if you save the handles to the graphics objects that correspond to the square and the centre of the square, then you...

14 dagar ago | 0

| accepted

Answered
please help me to translate wavread to audioread
David - from audioread, you could do (assuming that location is the name of (and path to) the audio file [x1,fs] = audioread(lo...

14 dagar ago | 1

Answered
Bisection method (figuring out theta)
Ahmed - theta is your xmid and I think that you are calculating it correctly (see https://en.wikipedia.org/wiki/Bisection_method...

15 dagar ago | 0

Answered
How to set timer queue to zero
Florian - I'm not sure if you can set the queue size to be zero (the documenation doesn't suggest that this is possible). An alt...

19 dagar ago | 1

| accepted

Answered
check for keyboard press in while loop
raheem - since you have a figure, you could use the WindowKeyPressFcn to listen for a key press event (assuming that the figure ...

19 dagar ago | 0

Load more