Community Profile

photo

Geoff Hayes


Last seen: en dag ago Active since 2014

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

Statistics

All
  • 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

View badges

Content Feed

View by

Answered
How to save a value from an array if a condition is true
@Tejashree Pawar - do you need to use a loop? For example, if your X and Y arrays are the same dimensions, then (for example) if...

2 dagar ago | 1

Answered
Trying to delete the previous data/line from a next button using matlab Gui
@Franck paulin Ludovig pehn Mayo - If you only want one patch object to appear, then you will need to delete the old one before ...

5 dagar ago | 1

| accepted

Answered
Constants not recognized in integral
@Florian Spicher - rather than using a script, try including the above code in a function instead (see functions vs scripts fun...

6 dagar ago | 0

Answered
Hello everyone, In the following code, I am trying to record V values in the matrix V_mat not just the last value. Please help me how can I do it.
@Mohammad Dawoodzada - initialize the matrix outside of your loops (rather than on each iteration of the inner loop) and keep tr...

10 dagar ago | 0

| accepted

Answered
How to nest callback into while loop?
@Sergey Lopatnikov - the _'event_data' in callback function is not recognized_ error message makes sense since you are trying to...

10 dagar ago | 1

| accepted

Answered
Understand a command line to create a matrix
@Mark Sc - this is an interesting piece of code. Given that >> x = (1:npoint) x = 1 2 3 4 5 and tha...

15 dagar ago | 0

| accepted

Answered
How to turn a matrix into a vector without using for loop !
@daniel adams - try using reshape.

15 dagar ago | 1

| accepted

Answered
gui executing input parameter
@AStro you may need to post more code as it isn't clear what you might do with the data you read. But whatever it is, you can sa...

15 dagar ago | 1

| accepted

Answered
The while loop for my taylor expansion will not check the condition for each iteration.
@Zachary Nies - I don't think your MAXerror ever gets below the condition. When I run your code, the minimum value assigned to i...

18 dagar ago | 0

Answered
How can I call a directory that has a partially variable name (variable in the middle), that precedes a variable filename?
@nailah oliver - consider using dir to get a list of files that match your pattern. The result will be an array of structs that ...

18 dagar ago | 0

| accepted

Answered
How do I read out a specific string/value out of one excel cell
@Benedikt Friedl - take the cell data which is the comma-separated string and then use split to split the string at the commas: ...

18 dagar ago | 0

| accepted

Answered
How to handle radiobutton in radiobutton group panel...
Tyann - I think the assignments in each radio button callback is incorrect pilih = 3; pilih = handles.pilih; guidata(hObject...

22 dagar ago | 0

Answered
Put structure data into GUIDE table
Douglas - perhaps you need to convert the struct to a table before setting the uitable. Try using struct2table to see if that he...

25 dagar ago | 0

| accepted

Answered
Error-check spacing of a vector
Zheng - you are trying to compare two floating point numbers using (in this case) the inequality operand. When comparing two flo...

25 dagar ago | 0

| accepted

Answered
Error : In an assignment A(:) = B, the number of elements in A and B must be the same, used in homework equation. Please help me figure out how to solve.
Kristin - you may be overconplicating it. You say that My thought is that m = is a fine vector, because it isn't a built-in func...

25 dagar ago | 0

| accepted

Answered
given a circle plot all possible tangents
Sparsh - the code from https://www.mathworks.com/matlabcentral/answers/258780-how-to-plot-tangent-line-from-specified-point-to-a...

25 dagar ago | 0

Answered
How to create a MATLAB code for generating audio sine wave signal of frequency ranges from 1Hz to 15kHz and plot it on real time.
Zafar - see the relevant parts of the noisy signal example on how to generate a sine wave with a particular frequency. You will ...

25 dagar ago | 0

Answered
Euler's method
Paul (Adam?) - I think all that you are missing is in your assignment y_values(:,i1)= y_values(i1) + dt * myode(t_values(i1),y_...

ungefär en månad ago | 0

| accepted

Answered
is it possible to know if an alert dialog box has opened in app designer app?(testing purposes)
Michaela - if your code launches the alert dialog, then you should be able to know that it has launched and so can "skip the ite...

ungefär en månad ago | 0

Answered
Possible error with dot product
William - from dot, this function returns the scalar dot product of the two input vectors. So in your case, the dot(xa+ya,xb+y...

ungefär en månad ago | 1

| accepted

Answered
Push the left or right button in the mouse after generating a sound
mohadeseh - one way (and there may be another) is to create a figure and have that figure capture the mouse button events (assum...

ungefär en månad ago | 0

Answered
graph not displaying with UIaxes
Shu-An - when I run your code, I see the following error Error using ^ (line 51) Incorrect dimensions for raising a matrix t...

ungefär en månad ago | 0

Answered
Convert UIDatePicker to Default
shnrndll - try setting to the default value of NaT (from Value) as myDatePicker.Value = NaT; where myDatePicker is the uidatep...

ungefär en månad ago | 0

| accepted

Answered
Calling specific .wav files in nested subfolders
Brian - if you know the path to the file that you want to read, then include that path along with the filename in the code to re...

ungefär en månad ago | 0

Answered
Error when plot loaded .mat file in app designer
Aron - I suggest you use the MATLAB debugger to step through the code and see what the variables w_grad = load('w_gradiens_lotk...

4 månader ago | 0

| accepted

Answered
How do i call the recorded audio into another push button and compress it in GUI.
Muhammad - you can either extract the data from the plot (from handles.axes1) or just save the recorded data to the handles obje...

4 månader ago | 1

| accepted

Answered
How can I use the iteration to store variables? It gives error Subscript indices must either be real positive integers or logicals.
Shivanshu - presumably the error is with for i=1:itt options=odeset('RelTol',1e-3,'AbsTol',1e-6); [t,x]=ode23(@...

4 månader ago | 0

| accepted

Answered
How to make a sum series using a for loop
Petch - in your code, you are assigning the kth iteration value (plus x) to s rather than summing all values. Try instead s = x...

4 månader ago | 0

| accepted

Answered
creating a .txt file with values that the user inputs in Matlab app designer
Joseph - if your app has a text field that allows the user to enter the name of the file to save to, then you could do something...

4 månader ago | 0

| accepted

Answered
Cutting up image into smaller blocks - how to name resulting blocks according to grid pattern?
David - ca seems to represent your cell array of blocks. The code you have (already) to write the blocks is for K = 1 : numel(c...

5 månader ago | 1

Load more