Community Profile

photo

Geoff Hayes


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

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

Geoff Hayes's バッジ

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

詳細を表示...

貢献した分野
表示方法

回答済み
how to get the x value for a given y value?
ahmed - your code assumes that there is an x value that is identical to xi z=find(x==xi); This need not be true. And comparing...

1日 前 | 0

| 採用済み

回答済み
Cut and plot Audio Signal (.wav) in specific time
Apridho - you may want to use audioread to read the data from the wav file [y,Fs] = audioread('myAudioData.wav'); Fs will be t...

2日 前 | 0

回答済み
Storing data for "for loop"
Khang - don't create variables just for the sake of having variables. If all of your L arrays are of the same dimension, then ju...

3日 前 | 0

回答済み
How to impliment a covergence condition?
abdel - perhaps your condtion would be if abs(A(k,i) - A(k+1,i)) <= 0.0001 % do nothing else % replace your value e...

3日 前 | 0

| 採用済み

回答済み
How to apply cellular automata to an array of multiple colours?
Obi - presumably your matrix is RxCx3 and that red is (255,0,0), green is (0,255,0), blue is (0,0,255), and white is (255,255,25...

4日 前 | 0

回答済み
Error using - Matrix dimensions must agree. Error in Eigenfaces (line 14) t=double(z(i,:))-m;
Bereket - the error message is telling you that the matrices upon which you are executing the difference (of), are of different ...

4日 前 | 0

回答済み
How do I read raw text from a webpage (ESPN Fantasy Baseball)?
James - as a first step, try using webread to read the data from the URL which you can then pass to jsondecode like urlToFetch ...

4日 前 | 1

回答済み
Getting Pop-up menu output as Excel sheet for plotting
Varun - I don't understand this line of code data111=xlsread(handles.popupmenuX,' data11') Why are you using the handle of the...

4日 前 | 0

回答済み
Using pop-up menu to graph different scenarios
William - there is no need to dynamically create a variable in the base work space to handle the selection in the pop-up menu. I...

4日 前 | 0

回答済み
errors in spring mass gui code
William - the code around the error is y=V; %V is the position array of the graph that is graphed in axes2 for k=V(1):5:length...

4日 前 | 1

| 採用済み

回答済み
How can I periodically update an axes plot in Matlab GUI?
Francesco - while the following code will pass in the handles structure handles.timer = timer('Name','MyTimer', ...

4日 前 | 1

| 採用済み

回答済み
error using trapz function
mitis - is the error message Subscript indices must either be real positive integers or logicals. Error in ipermute (line 22...

8日 前 | 0

回答済み
About the radio button in the app designer
apple - why would you have only one radio button? Perhaps you can use a checkbox instead.

8日 前 | 0

回答済み
How can I write a smart TicTacToe code?
Christian - what are the inputs f_user1 and f_user2? Are one of these the functions that you will create? As for adding intelli...

8日 前 | 0

回答済み
Conway's Game of Life implementation
Limbert - I think that part of the problem might be with how your if and elseif statements are not being properly "ended". For e...

8日 前 | 0

| 採用済み

回答済み
how to full fill the diagonal of a matrix by a vector
Ahmed - try using a = [1 2 3 0 0]'; A = cell2mat(arrayfun(@(x)circshift(a,x-1),1:length(a), 'UniformOutput', false)); We use ...

15日 前 | 1

回答済み
How can I index where I found the contents of strfind?
Nicholas - perhaps something liek the following could be used if the MyStructure is similar to yours. MyStructure = []; for k ...

19日 前 | 0

回答済み
Plotting Space-Time Function in MATLAB?
Andong - I'm not sure if the below is exactly what you are looking for...when I tried it, it wasn't entirely obvious the changes...

19日 前 | 0

| 採用済み

回答済み
im stuck on making a layered matrix
Tristan - why not use a for loop surround = 1; for k = 2:5 surround = surroundWith(surround, k); end

20日 前 | 1

| 採用済み

回答済み
Trying to integrate sinx using the integrate function but when I plot the integral, instead of plotting from -1 to 1 it plots from 0 to 2. Does anyone know why this happens?
Guillermo - I'm guessing it is the y-axis limits that you want to be between -1 and 1? Why is the minimum value, a, fixed but th...

20日 前 | 1

回答済み
Help using While loop
Charles - I think that you could use a while or for loop on this code W = Na*MM(1,1,1); Q = Ca*MM(2,1,1); E = Si*MM(3,1,1); ...

22日 前 | 0

| 採用済み

回答済み
plot columns of matrix
Filip - from plot, plot(Y) creates a 2-D line plot of the data in Y versus the index of each value. ... If Y is a matrix, th...

22日 前 | 0

回答済み
How do I make a user defined function in MATLAB to determine the volume of a revolving solid using the disk method?
By user-defined function, I suspect that they are just asking you to create a function with a specific signature (input and outp...

25日 前 | 0

回答済み
Trapezoidal rule for loop
Nima - perhaps try for n = [20,50,100,150,400] f = @(x)6*(cos(x/2)) .* (sin(x/2)).^2; % Defining given function a =...

25日 前 | 1

回答済み
Error using * Inner matrix dimensions must agree urgent help please.
Or - the error is due to the following multiplciation air_vec*normal_vec where both arrays/vectors are 3x1 and so the error me...

25日 前 | 0

| 採用済み

回答済み
Error : Function definition is misplaced or improperly nested.
suoh - I think that one problem might be with your "else if". In MATLAB, there isn't a space and so this is just "elseif". The w...

25日 前 | 0

回答済み
how to store and display values coming from the for loop to an array variable.
Aishwarya - if each iteration of your loop creates a variable (of some kind) that you want to store or save for further processi...

26日 前 | 0

回答済み
Graph tiltle with multiple variables over 2 lines
Franc - try using sprintf to create one or more lines that you can use in your title. For example, myTitle = sprintf('first row...

26日 前 | 0

| 採用済み

回答済み
How do i sum the total elements in a vector, not whats in each element
caitlin - if your movements are in a matrix, say nx2, where each row is a coordinate for the movement, then the number of moveme...

26日 前 | 0

| 採用済み

Load more