Community Profile

photo

Geoff Hayes


Last seen: 2日 前
3,104 2014 年以降の合計貢献数

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

Geoff Hayes's バッジ

  • MATLAB Central Treasure Hunt Finisher
  • Revival Level 3
  • First Review
  • 36 Month Streak
  • Thankful Level 1
  • Ace
  • Knowledgeable Level 4
  • First Answer
  • Scavenger Finisher
  • Promoter
  • Solver

詳細を表示...

貢献した分野
表示方法

回答済み
using the title of excel spreadhseets to name graphs
It may be possible to add a title using title if you specifiy which axes the title should be applied to. For example, your code ...

16日 前 | 0

回答済み
How to add multiple if statements
Jan - I think that you just need to add a couple of conditions to your if statement. You would need to check that the input is n...

16日 前 | 0

| 採用済み

回答済み
C CODE Generation - Why does my code not terminate?
Hishan - the code that you mention for (i = 0; i <= coffset; i++) { Xm0_data[i] = Xm0->data[(aoffset + 30 * i) - 1]; } o...

16日 前 | 0

回答済み
Restart script when user says yes
Jake - you could try removing the while from the AnotherTeam function and put that in your main script. Suppose that AnotherTeam...

17日 前 | 1

| 採用済み

回答済み
Game of life code
Katara - if you wish to construct a random matrix of zeros and ones, then you could use randi as numRows = 10; numCols = 12; ...

20日 前 | 0

回答済み
How to add user inputs in a script?
Hdez - I think you want to convert your script into a function. See the link for details.

27日 前 | 0

回答済み
Increasing the figure size in GUI
hamzah - try using normalized units instead. See figure units for details.

約1ヶ月 前 | 0

回答済み
Can't Stop program
ziv - I think the problem is that you are getting stuck in a loop between two functions: DrawBoard and GamePlay. DrawBoard calls...

約1ヶ月 前 | 0

回答済み
bsxfun - @minus - how to divide by maximum
Ko - if you want to divide by the maximum of a, couldn't you just do out = abs(bsxfun(@minus,a,b')./max(a)) ?

2ヶ月 前 | 0

回答済み
how store multi image in on file ?
Rana - consider writing the images to a single tif file. Please see the example at Write Multiple Images to TIFF File.

2ヶ月 前 | 0

回答済み
creating new variable using for loop and if-else condition
Arturo - look closely at your conditions if age(n)==10 & age(n)<=29 The above would mean that nth element of the age array is ...

3ヶ月 前 | 1

回答済み
Converting a String to Double without str2double
Sanjin - why do you need to convert it using str2double? check=z(k); In the above check is a character so you could compare it...

3ヶ月 前 | 1

| 採用済み

回答済み
Plotting for a range of values
Verdan - in your code, the mB and a are scalars whereas you want them to be arrays (for when you plot outside of the loop). Try ...

3ヶ月 前 | 1

回答済み
Index exceeds the number of array elements (1)
The error is here k1=p(x1_rec(i),y1_rec(i),x2_rec(i),y2_rec(i)); l1=q(x1_rec(i),y1_rec(i),x2_rec(i),y2_rec(i)); where...

3ヶ月 前 | 0

回答済み
Fix axis on plot
Benjamin - I'm not entirely sure this is what you want, but I think that you need to find the minimum and maximum across all x a...

3ヶ月 前 | 0

回答済み
I'm keep having an error 'Not enough input arguments' for this code
Muhammed - from the function signature function [y] = DivisibleTest(M) when calling this function, you need to provide an inpu...

3ヶ月 前 | 0

回答済み
Can't reach line object from callback function - 'Invalid or deleted object.'
Fredrik - I suspect the problem is here guiobj.chkbox(k) = uicontrol('Parent',guiobj.f,'Style','checkbox','String',Names(k),...

3ヶ月 前 | 0

| 採用済み

回答済み
For - While loop output and extracting the value of computed rows from a column
Christopher - look closely at this code for qq = [1:5] while cumulative_sum <= C cumulative_sum = cumulative_sum ...

3ヶ月 前 | 1

| 採用済み

回答済み
confusion while; break; continue.
Blazhe - I think the condition on your while loop is preventing you from entering the body (of the loop) and so preventing the c...

3ヶ月 前 | 0

| 採用済み

回答済み
In a 'for loop' not getting difference of two consecutive iteration
feeroz - you never update your x, y, and z after their initialization, so perhaps you are intending to use X_i instead. Try the ...

3ヶ月 前 | 0

| 採用済み

回答済み
How do I use function for a function which has a matrix with variable index?
Fidele - since your function signature is function [a,b,c] = trial_function(num) then you need to assign values to each of th...

3ヶ月 前 | 0

回答済み
Calling a function in bisect.m
Rashi - try removing (in the hw7p2.m file) the @ in front of the function handle that you are passing into the bisect function....

3ヶ月 前 | 0

| 採用済み

回答済み
Animating a pendulum: error in code
In order to convert to a series of frames and save as an AVI, just do % open the video writer v = VideoWriter('pendulum.avi');...

3ヶ月 前 | 0

回答済み
Creating GUI for .m configuration file
Muhammed - is your m file a function or a script? How many parameters do you have? It may be easier to use an inputdlg to gather...

3ヶ月 前 | 0

回答済み
How to save wave file with arbitrary name right after recording is finished.
Dao - perhaps you want to try something like [newfile,newpath] = uiputfile('my_new_name.wav','save file name'); if isstring(ne...

4ヶ月 前 | 0

| 採用済み

回答済み
missing/incorrect use of math operators?
Jocelyn - why should the time of flight value be increasing in value? Is it because it is dependent upon the previous value? Do ...

4ヶ月 前 | 0

| 採用済み

回答済み
How to get answers in a matrix form
Houman - if we assume that the result of trapz is a scalar, then you could do something like trapzResults = zeros(size(yval,2),...

4ヶ月 前 | 1

| 採用済み

回答済み
Editing Text Strings through Looping
James - you could use sprintf to create your url with the "code" for code = [587 612 876 296 137 635 591] url = sprintf('h...

4ヶ月 前 | 0

回答済み
How to Plot on UI Axes with app designer?
Cameron - from hold, try replacing your line of code hold on; with hold(app.UIAxes, 'on'); where you specify which axes you ...

4ヶ月 前 | 2

回答済み
Format long error in function
ahmed - consider using fprintf and specifiying the number of integers to the right of the decimal point that you are interested....

4ヶ月 前 | 0

| 採用済み

Load more