Community Profile

photo

Geoff Hayes


2,755 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

詳細を表示...

貢献した分野
表示方法

回答済み
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...

3日 前 | 0

回答済み
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...

3日 前 | 0

| 採用済み

回答済み
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 ...

9日 前 | 1

回答済み
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; ...

9日 前 | 1

| 採用済み

回答済み
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...

10日 前 | 0

| 採用済み

回答済み
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...

10日 前 | 1

| 採用済み

回答済み
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...

11日 前 | 0

| 採用済み

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

12日 前 | 0

| 採用済み

回答済み
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...

13日 前 | 0

回答済み
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...

16日 前 | 0

回答済み
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); ...

19日 前 | 0

回答済み
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...

19日 前 | 0

| 採用済み

回答済み
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...

19日 前 | 0

回答済み
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 ...

19日 前 | 0

| 採用済み

回答済み
Error in function of GUI(list_box)
shengchan - I think what was missing from your code was the initialization of the contents variable...and so when you try to use...

21日 前 | 0

回答済み
String matrix compare to get common in rows
Touts - consider using ismember to check to see if any string of A1 matches with any string of A2 >> ismember(A1,A2) ans = ...

24日 前 | 0

回答済み
How to automatically pass variables from one GUI to another GUI?
Ak - from which GUI is Initialize_GUI called? How are you calling this function? What makes you think that handles.Flip will be ...

25日 前 | 0

| 採用済み

回答済み
My modal dialog box does not prevent interactions with a MATLAB app (made by App Designer) window
CreLox - try using uialert instead. This may work assuming that your app has been created with the uifigure function.

26日 前 | 0

| 採用済み

回答済み
PushButton repeat previously generated audio sample (with other pushbutton)
Ana - since using GUIDE, you can Store or retrieve UI data with the handles structure (this structure is passed into each callba...

27日 前 | 1

| 採用済み

回答済み
Calling back the previous value of the GUI slider
Munir - you haven't said whether you are using GUIDE, App Designer, or programmatically creating your GUI, but in all three case...

29日 前 | 0

回答済み
How to obtain data from elements in cell arrays
Hans123 - try doing A{2}(:,2) to get the second column of the second element of A.

30日 前 | 1

| 採用済み

回答済み
Arduino clearing existing connection issue
Borian - why not define a property in your app that represents the arduino object so that all callbacks have access to it? See S...

30日 前 | 0

回答済み
Attempting to open a script to analyze a PTU file
Jose - the problem is with the signature of this function function [output, txtout]=(filepath) While you are providing the in...

約1ヶ月 前 | 1

| 採用済み

回答済み
MatLAB gives NaN result on simple loop
Bertiningrum - but a2 isn't constant if abs(f1)>abs(f2) a1=a2; f1=f2; a2=a3; f2=f3; else a2=a3; ...

約1ヶ月 前 | 0

回答済み
HELP FOR A LOOP FOR-END: In an assignment A(:) = B, the number of elements in A and B must be the same.
Federico - the line of code that generates the error is y(t)=B*csi(1,t-1)+(B*csi(2,t-1)*po+k)*rn(t) because you are tryin...

約1ヶ月 前 | 0

回答済み
compare using if and or condition
So the second condition is if the Flow_a is gretaer than Flow_b by just 5%. Does this mean that Flow_a cannot be more than 5% gr...

約1ヶ月 前 | 1

| 採用済み

回答済み
How to Add Element/Item to Listbox in Matlab GUI (push button, listbox)
Thomas - perhaps the condition ~strcmpi(Items_2, Item_1) is never evaluating to true and so you never enter the body of the wh...

約1ヶ月 前 | 0

| 採用済み

回答済み
Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 921-by-1.
Wilfredo - it isn't clear which line is throwing the error but piece of code caught my eye alpha(n+1,:)=(-g*sin(theta(n+1,:)))/...

約1ヶ月 前 | 0

| 採用済み

回答済み
Why does the Index exceeds the number of array elements
Wilfredo - take a look at these lines for j = 1:length(TotalForce) if j <= length(TotalForce) if TotalForce(j) >...

約1ヶ月 前 | 1

| 採用済み

回答済み
Graphs and tables using GUI
Pratishtha - your code is U = uitable('Data', net_a_b_error); set(handles.uitable2,'Data',num2cell (U(:))) Why are you creati...

約1ヶ月 前 | 0

Load more