Answered
Help finding a derivative using tolerance and while loop
Renee - start with just the basic outline of your function. You have the signature and you need a while loop. Rather than havi...

12 years ago | 0

Answered
Data not indexing properly?
Lindsay - your code after the plotting starts with the following *if* statement if ~isrow(peakamp(peakampi)) peakamp(p...

12 years ago | 1

| accepted

Answered
infinite loop problem in gui
Pradeep - I'll answer your questions first, but I will recommend that you use an alternative approach to an infinite loop (use a...

12 years ago | 2

Answered
How to generate numbers between[-1 0] in for loop for half iterations and for other iterations it goes from [0 -1]
Sara - just use the <http://www.mathworks.com/help/matlab/ref/sort.html#inputarg_mode sort> function numIters = 50; numToG...

12 years ago | 0

Answered
Taylor series sum and factorial
Jack - part of the problem may have to do with the equation. You state that you are trying to _find the sum of series (-1)^n * ...

12 years ago | 1

Answered
Hi, can you help me in finding a solution for the error of last line in this program that deals with ACO. this step is (feval): the error text is ( no enough argument- noting that I have tried diferent functions like "Ackley"- Thanks
Hatim - no, that isn't quite what I meant. Your code should be formatted as follows function [x,y, minvalue] = AA(Ackley) ...

12 years ago | 1

| accepted

Answered
Using WindowKeyPressFcn with uicontrol
Ara - if you want the pressing of the spacebar to simulate the pressing of the *snap* button, you can do the following: in your ...

12 years ago | 1

| accepted

Answered
chaotic sequence generation from chen's hyperchaotic system
Abirami - you should provide a reference to a paper or document that describes Chen's Hyperchaotic System with respect to chaoti...

12 years ago | 0

Answered
Not enough input arguments
nesrine - the problem is how you have defined the signature for your fitness function, *fonction*. Check out the documentation ...

12 years ago | 2

| accepted

Answered
how to call my code to GA
imola - there are a couple of things that aren't quite correct with your fitness function, *myheader*. Note the signature f...

12 years ago | 1

| accepted

Answered
Find a value in excel file
Viktoria - you can use <http://www.mathworks.com/help/matlab/ref/xlsread.html xlsread> to read the data from the file, either di...

12 years ago | 0

| accepted

Answered
Read csv data from multiple websites in for loop
Kurt - what do you mean by _read data from multiple webpages simultaneously_? Do you mean that as you create one URL (say *url{...

12 years ago | 0

| accepted

Answered
Bisection method with array at end points
Rick - you almost have this. Not only will the <http://www.mathworks.com/help/matlab/ref/min.html min> return the minimum value...

12 years ago | 0

| accepted

Answered
Entering values into a function handle output
Rick - you can use the <http://www.mathworks.com/help/matlab/ref/str2func.html str2func> function to convert a string to a funct...

12 years ago | 0

| accepted

Answered
Recursive binary to decimal function
Rick - recursion is not really necessary to solve this problem. You can just iterate over each element in the input vector and ...

12 years ago | 0

| accepted

Answered
Wrong read in mex function
Davide - how are you calling this function? And in particular, what are the inputs? I suspect that there might be a problem wi...

12 years ago | 0

Answered
Converting the format Row Column Value into matrix ?
The following uses a *for* loop but that should be fine for this problem: % load the data A = importdata('test.txt'); ...

12 years ago | 1

Answered
how can i read all the frames/images from a .rec file?
Nikolaos - if we know the number of frames in the video and we assume that all frames follow each other (in the rec file) then w...

12 years ago | 1

| accepted

Answered
create a loop using regexp
Nicolas - for sure you can add a loop as long as you know what to increment by at each iteration. If we assume an increment of ...

12 years ago | 0

| accepted

Answered
How to eliminate the repeated number?
tabw - consider using <http://www.mathworks.com/help/matlab/ref/intersect.html intersect>. It will allow you to determine which...

12 years ago | 0

Answered
How to find the left riemann sum using a for loop?
Renee - since you are calculating the Left Riemann Sum, then the code needs to use the left-end point of each sub-interval. The...

12 years ago | 1

| accepted

Answered
nested fnc / error:I nput argument "handles" is undefined.
Max - if you wish to have access to the *handles* structure from within a callback that you have created (in this case, for the ...

12 years ago | 1

Answered
Chossing random data from xls files
Muahmmad - do you know what the minimum number of rows are in each file? If so, then you could create a vector of integers, one ...

12 years ago | 0

| accepted

Answered
"Interpolation requires at least two sample points" Genetic Algorithm to solve ODE
Hi David, I looked at the *gene_to_values* function and noticed a couple of things. The first is that you have the right ide...

12 years ago | 1

| accepted

Answered
Collecting User Inputs With Multiple GUI Windows?
Another alternative would be to create one GUI with multiple *uipanels* that become visible (or invisible) as you cycle through ...

12 years ago | 1

Answered
How to save multiple files from a URL list?
Rodrigo - it is not too clear to me how the *URLs* variable gets set or why it gets reshaped. What is the content from *urlread...

12 years ago | 0

| accepted

Answered
how to convert matrix contains numbers to matrix of strings
Imola - you seem to have two questions here. The first is why the *L1* strings are not 1x50 (like the *L* in the previous loop)...

12 years ago | 0

| accepted

Answered
GUI ...I have called one image on axes1 with the help of one push button..now how to call first image on axes2 with the help of second push button..??
Kanu - if you want to avoid opening the file browser a second time and take the image directly from the first axes, then what y...

12 years ago | 0

| accepted

Answered
Problems of loading http urls in matlab.
Is an error being thrown when you used *urlread*, or is it just that the output is an empty string? What is the line of code th...

12 years ago | 1

| accepted

Answered
I got an error in trading toolbox when I try to get history of an ib contract.
Ruben - I don't have the *Trading Toolbox* but the error message is indicating that there is a problem with one or more of the i...

12 years ago | 0

Load more