Community Profile

photo

Geoff Hayes


not applicable

2,612 2014 年以降の合計貢献数

Professional Interests: Software Engineering, Target Tracking

連絡する

Geoff Hayes's バッジ

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

詳細を表示...

貢献した分野
表示方法

回答済み
execute automatically Stop button command after X seconds that Start Button is pressed - GUI
Alessio - here is the code for your timer handles.ttt = timer('TimerFcn',{@stopButton_Callback, handles},'StartDelay',62); No...

約5時間 前 | 0

| 採用済み

回答済み
Copying uitable contents and column headings to clipboard for non-fixed column headings
Jason - I think that you can use the ColumnName property of the uitable to get the column names. For example, hTable = uitable...

約6時間 前 | 0

回答済み
distance between randomly selected nodes
rem - wouldn't the distances be calculated something like the following distancesBetweenNodes = zeros(length(C)); % square matr...

1日 前 | 1

回答済み
Blend Red,Blue,Green squares
TaeGun - this seems like homework so without giving too much away, how would you draw just one square? Suppose that each square ...

1日 前 | 0

回答済み
Do while loop with recursive make the answer incorrect?
Paranee - please clarify what recursive means to you. You may want to start with N equal to one and compare the results. If they...

6日 前 | 1

| 採用済み

回答済み
Index exceeds the number of array elements (2) Error
Joshua - the line of code h(i) = -1 * (it(i) + vt(i)/Rleq); is trying to access the third (for case i is 3) the third element ...

6日 前 | 0

回答済み
MATLAB fread produce error! Invalid Size!
Amir - according to fread dimensions of output vector, this vector/array can only be a two-element row vector wheras you are try...

7日 前 | 1

| 採用済み

回答済み
I am getting an error in the code of printSol written in Numerical engineering with MATLAB?
Dhruv - I wonder if when you copied the above code from Numerical Methods in Engineering with MATLAB that you didn't introduce s...

7日 前 | 0

回答済み
create a loop image processing
Edmilson - look carefully at your for loop for n=240:519 images{n} = imread(sprintf('pentan1h_6uLmin_0%3d.tif',n)); i...

7日 前 | 0

回答済み
Stop Displayed Image in UI Figure from being Moved by User
Shakirudeen - actually, imshow does allow you to specify the axes to plot the image to 'Parent' — Parent axes of image object ...

9日 前 | 0

回答済み
Issue with g-input: as I click on an image from north to south, the y values are positive values that progressively get larger and larger
Arian - the pixel in the top left corner of the image corresponds to the first row and first column of your image (matrix). So i...

9日 前 | 0

| 採用済み

回答済み
convert number to string problem
Yu - I think the problem might be because when you use num2cell, you are creating a cell array of numbers and not a cell array o...

9日 前 | 1

回答済み
Dimensions of matrices being concatenated are not consistent
Matt - from your above description, C is an rxn matrix and D is an rxm matrix where r is the number of outputs. Doesn't this mea...

10日 前 | 0

回答済み
i have problem in heat equation 1D
Ali - in the future, please include the error message (if any) that you are observings and be as descriptive as possible...becau...

10日 前 | 0

回答済み
How to fill a region defined by coordinates?
Mirlan - you can use fill to colour the area enclosed by your three points. For example, you can add the following to the end of...

10日 前 | 1

| 採用済み

回答済み
index exceeds the number of array elements (1).
changsu - I think there are a couple of bugs with the above code. When running it, the first error is Attempted to access midx(...

10日 前 | 0

回答済み
Help needed to validate if a directory exists and the user has write permissions
Jason - why do you need a second while loop to check the write permissions of the folder? You could just use the if/else you hav...

11日 前 | 1

回答済み
looping code for ct slice
mohd - perhaps something like this to get the updated ct on each iteration for k=1:75 tag = sprintf('ct%02d',k); % ...

11日 前 | 0

回答済み
I am trying to find all the multiples of 3 below 1000. I've tried using mod but im a bit stuck.
Andrew - if you have a number n then it is divisible by three if the remainder after division by three is zero (see mod for deta...

12日 前 | 0

回答済み
How can I use slider value in push button area, to generate a function.
Tonusree - if you want to use the a value in your pushbutton callback (is this on_switch_Callback?) then just do function on_sw...

12日 前 | 0

回答済み
error while evaluating uicontrol call back
vidhya - your pushbutton1 callback has the following two lines of code FileName = imread('1.jpg'); img=imread(FileName); One ...

13日 前 | 0

| 採用済み

回答済み
Trying to create a text file with 3000 rows of data and 7 columns.
Shivam - what is your intent with this code p(angular rate along x) = -2 + (2+2)*rand(3000,1); q(angular rate along y...

13日 前 | 0

| 採用済み

回答済み
How to use bluewhitered function?
Yandong - the bluewhitered code seems to have been intended to work under the assumption that it returns an M-by-3 matrix contai...

13日 前 | 0

| 採用済み

回答済み
Help with nested functions and finding the circumcentre
Sam - you have nested the circumcentre function within your parent function (good) but you still need to call it somewhere. in o...

13日 前 | 0

| 採用済み

回答済み
How to convert a vector of durations to just floats
Seth - could you try using the Convert Durations to Numeric Array of Seconds example and just convert as X = ...; % your durati...

14日 前 | 0

回答済み
Adding numbers to specific matrix index.
However for each ’i’ row there will only be 3 ‘j’ columns with nonzero numbers How do you determine which three columns of the i...

14日 前 | 0

| 採用済み

回答済み
Index exceeds the number of array elements (1264).
Karlie - f iterates from 1 to the length of your x array. This is fine except for s(i)=x(i)+x(i+1); because when i (and you co...

14日 前 | 0

| 採用済み

回答済み
Index in position 1 is invalid. Array indices must be positive integers or logical values.
Yoke - what is f? You seem to be treating it like a matrix at b=y(i); a=x(i); f(a,b)=(a+b)^2; but this fails since (on the f...

14日 前 | 0

回答済み
How to divide square image into rectangle with different size?
Syahirah - first, your code row=size(Pic,2) column=size(Pic,1) is mixing up the dimensions (I know that this matrix is a squa...

17日 前 | 1

| 採用済み

回答済み
If i want to use the other m.file in a single m.file,is there any instruction code i can use?
If your codeA, codeB, and codeC are functions (instead of scripts), then you can call one from the other. See Scripts vs Functio...

17日 前 | 0

Load more