Community Profile

photo

Geoff Hayes


2,771 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
marking some points.
Silpa - you could try something like A=[0.8570, 1.0447 , 1.2136 , 1.3637 , 1.4670 , 1.4576 , 1.3731 , 0.9696 , 0...

1 day ago | 0

| accepted

Answered
Problem working with 2 popupmenus
John - have you writtin your GUI with GUIDE, App Designer, or programmatically? The solution may be similar for each: in the pus...

22 days ago | 0

| accepted

Answered
Pushback button execution in a while loop
Ram - in the body of your add_measure_ButtonDownFcn you do handles.add_meas=1; guidata(hObject, handles); where you initializ...

24 days ago | 0

Answered
getting error using code for continuing input on new line
Muazma - you are trying to vertically concatenate strings that are of different lengths and so the error message makes sense. Tr...

24 days ago | 0

Answered
Creating border of an image
Mayank - is you have a colour image, then you could do something like myImage = uint8(randi(255,256,256,3)); border = 2; myIm...

25 days ago | 0

| accepted

Answered
I need to locate an installed program in MacOS using Matlab, how can I do that?
Mårten - you could try something like [status, path] = system('find ~/Documents/geoff -name myFile.m') The above would search ...

1 month ago | 0

| accepted

Answered
Error using mex complier
Jaimeet - it seems that you are using the -I to indicate where the libraries should be found. Unless MATLAB does things differ...

1 month ago | 0

Answered
Mouse Click callback on an image - temporarily disable
Jason - why not just remove the original callback just prior to wanting to draw the lines set(imageHandle,'ButtonDownFcn',[]); ...

1 month ago | 0

| accepted

Answered
how to assign a callback located in a array of string (in uicontrol) ? ex uicontrol('callback',array(1))
Fabienne - I think that you may want to create an array of function handles rather than an array of (string) function names. For...

1 month ago | 0

Answered
Scatter plot undefined variable
Jackie - is the MATLAB code that you have posted above from the built-in MATLAB scatter function? Or is it something hat you hav...

1 month ago | 0

| accepted

Answered
Data Acquisition in GUI
Bohan - see your other question https://www.mathworks.com/matlabcentral/answers/475625-daq-cannot-generate-signal-in-gui-callbac...

1 month ago | 0

Answered
DAQ cannot generate signal in GUI callback function.
Bohan - I suspect that what is happening is that because you are creating local variables for the DAQ session, then when the cal...

1 month ago | 0

Answered
How to automatically resize custom button.CData image with maximize and restore down clicks on guide?
Gopichandh - try using the ResizeFcn callback. You can add this callback from the GUIDE editor by right-clicking on the figure a...

1 month ago | 0

| accepted

Answered
Why did the image duplicated 3 times?
Shu - it looks like your original image is in colour so consider this line of code [x,y] = size(ori_roi{i}); i suspect that y ...

1 month ago | 0

| accepted

Answered
How to Execute statements in the script at scheduled time or defined date & time ?
nelapati - if you just want your timer callback to fire x seconds from now, then using the examples from Create object to schedu...

2 months ago | 1

| accepted

Answered
How to draw a stored shape that is not currently drawn on an axis?
Joseph - you could perhaps try changing the parent property of the stored graphics object to be that of the new parent axis. For...

2 months ago | 0

| accepted

Answered
Error: Index in position 1 is invalid. Array indices must be positive integers or logical values?
Ameer - if the lag p is 6, then in this code for i=1:p X(:,(i-1)*n+1:i*n) = [Y0(3-i+1:end,:); shortY(1:T-i,:)]; end when...

2 months ago | 0

Answered
How do I merge 2 figures from 2 different programs in a single figure ?
parag - you could merge the code from the runsub.m and runrub.m files into a single script or function to get something like fu...

2 months ago | 0

| accepted

Answered
For loop, Subscript indices must either be real positive integers or logicals ?
Ali - your for loop is iterating over the array [90, 30, -30] so your i is becoming each of these values. That is fine (for the ...

2 months ago | 1

Answered
How to save all opened window Figure (imshow) with specified name and folder?
Diah - it isn't clear to me why you have the inner for loop for k = 1 : length(theFiles) baseFileName = theFiles(k).name; ...

2 months ago | 1

| accepted

Answered
How can I get Matlab to check for a specific string and show it's location?
Surafel - use strcmp instead >> A = {'a1','a2','a3','a11','a22','a33'}; >> result = strcmp(A,'a1') result = 1 0...

2 months ago | 0

| accepted

Answered
Clearing the condition signal
Lev - there are a couple of problems with the above - your condition will fail for chek equal to one since chek-1 will be invali...

2 months ago | 1

| accepted

Answered
How can I create a plot with subplots in a loop?
gsourop - why the conversion at datenum([min(time) max(time)]) since time should already be an array of datenum types? You may...

2 months ago | 0

| accepted

Answered
Error when calling function
Ejay - see Scripts vs Functions to understand the differences between scripts (which you have written) and function (which you w...

2 months ago | 0

| accepted

Answered
hey ,I make GUI Application in matlab for brain tumor segmentation and I have this problem
Mohamed - you haven't copied and pasted the full error message, but looking at the code to your callback function detect_Callba...

3 months ago | 0

Answered
how can i change a particular range of data
Shikang - to access subsets of values in your array, you could do PV = zeros(10000,1); PV(1:599) = 125000; PV(600:1000) = 165...

3 months ago | 0

Answered
save data from file to matrix
Eman - doesn't the empty rows make sense given that you only insert a row if for i=1:500 line_MEAS=fgets(File_ID_1); ...

3 months ago | 0

Answered
What does sampling rate in audiowrite function signify?
Angel - yes, the sample rate is the number of samples per second. So if fs is 1000, then your audio file will be 1000 seconds lo...

3 months ago | 0

| accepted

Answered
Absolute beginner trying to use a matlab for a research internship in drop shape analysis
Duncan - this block of code seems suspect for BaseVecZ=zeros(size(BaseVec)); TFM.T=Rotmatrix(ACal(tilt(ss))); % generate t...

3 months ago | 1

| accepted

Answered
How to pass/share data between GUIs?
Peng - please see https://www.mathworks.com/matlabcentral/answers/146215-pass-data-between-gui-s for an example of sharing data ...

3 months ago | 0

| accepted

Load more