Answered
gaussian fitting piece wise for multi peak curve
Try these: http://www.mathworks.com/matlabcentral/fileexchange/23611-peak-fitter And few demo files: http://www.mathworks....

12 years ago | 0

Answered
How to insert data in to a excel file?
row_headers = {'File a','File d','r','Maximum Value','x','y'}; data = [afilename dfilename r maximum mim1 nim1]; % I ...

12 years ago | 0

Answered
How to start again from the previous step?
There are for loop and while loop, that can help you do that. http://www.mathworks.com/help/matlab/ref/for.html http://www...

12 years ago | 0

| accepted

Answered
Why Matlab is not changing the name of the GUI window?
Open the fig in GUIDE. Right click on the figure and in the property inspector change the 'Name' to Version05.

12 years ago | 2

| accepted

Answered
How to change Nan value with zero and return them again?
Ind = find(isnan(A)); A(ind) = 0; B = A.^0.5; B(ind) = NaN;

12 years ago | 0

| accepted

Answered
How to run my code for selective interval of values?
Do you mean something like this: results=zeros(86401,1); % plot in seconds for activity 4. Washing machine for i=1:28, ...

12 years ago | 0

Answered
Getting the "Count" value of feature matching
count1 = matched_points1.count;

12 years ago | 0

| accepted

Answered
What to do if this error occures?
Repeat question : http://www.mathworks.co.uk/matlabcentral/answers/113471-why-this-error-is-occured

12 years ago | 0

Answered
How to calculate the center of mass of a polyhedron?
http://www.mathworks.com/matlabcentral/fileexchange/8514-centroid-of-a-convex-n-dimensional-polyhedron

12 years ago | 0

Answered
How can I create vectors of all the non-zero strings of numbers in a vector?
Lets call you vector as A I = find(A); a = diff(I); b = find([a inf] > 1); c = diff([0 b]); d = cumsum(c); d...

12 years ago | 0

Answered
How to time a user input
tic; I = input('User Type Value'); h = toc; Here _h_ is the amount of time taken by the user to type the value.

12 years ago | 0

Answered
fitting equation with condition on 1 parameter
You can use fmincon. I would think that these a and b are from you previous post, where fminsearch were used. fmincon is sim...

12 years ago | 0

Answered
How can I curve fitting data for an specific function?
http://www.mathworks.com/help/curvefit/custom-nonlinear-models.html http://www.mathworks.com/discovery/data-fitting.html

12 years ago | 0

Answered
what happened to the folowing code?
That means that handles.edit1 is not defined!!

12 years ago | 0

| accepted

Answered
repeating an index number n times in a vector
v = []; count = 1; for j = 1:length(p) if p(j) ~= 0 v(count:count+p(j)-1) = j*ones(p(j),1); count = ...

12 years ago | 0

| accepted

Answered
Which function can be used?
zeros(m,n) creates a zero value matrix. That is why you are getting all zero matrixes. If you want values in B matrix, you ca...

12 years ago | 0

Answered
How to make dynamic variable names (A1, A2, ..., An) with "for" loop? Using "eval" "num2str"?
Italo, I am glad you're trying out things on matlab. Matlab is very good with matrixes. What you're doing in these can be don...

12 years ago | 2

Answered
will "if exist('a','var') && a == 2" always work, without throwing an exception?
I don't see a question. You code is fine. Wouldn't it be a programmer's choice and will depend on the purpose of the variable...

12 years ago | 0

Answered
random equation fitting to data set and finding constant parameters
First make a function that you'll use to fit like this: function val = myfunc(par_fit,x,y) % par_fit = [a b] val ...

12 years ago | 0

| accepted

Answered
How to normalize a data serie which have negative and positive values for Prediction through ANN?
I dont know what is ANN. But for normal scenarios, lets say your data is variable A. factor = max([max(A) abs(min(A))]);...

12 years ago | 0

| accepted

Answered
plot tools:add data color
http://www.mathworks.com/help/matlab/creating_plots/plotting-tools--interactive-plotting.html

12 years ago | 0

Answered
How to increment a for loop by an arbitrary value?
Cstart = -50; Cend = 100; step = input('Enter the increment '); Celsius = Cstart:step:Cend; %for ii = 1:numel(Cel...

12 years ago | 0

Answered
How to save multiple varibles from the function into the workspace?
A possible suggestion (Disclaimer: I have never done it) If you have some estimate how many times the functions gets called i...

12 years ago | 0

Answered
Connect windows standalone aplication to command line
http://www.mathworks.com/matlabcentral/answers/92537

12 years ago | 0

| accepted

Answered
dynamic name for matrices
A = zeros(x,y); for j=1:x for i=1:y . . %a matrix with the name T is generated for...

12 years ago | 0

Answered
Numeric data display on GUI
You can use 2 text boxes. The numerical values can be converted to string using <http://www.mathworks.com/help/matlab/ref/num2st...

12 years ago | 0

| accepted

Answered
How to get a part of a string
y = x(2:4);

12 years ago | 0

| accepted

Answered
Fmincon - Value-at-Risk Minimization - Incorrect values returned
This is a single variable minimization. You should try fminbnd instead of fmincon. Also, try plotting adjcvar([ret.mscimin,st...

12 years ago | 0

| accepted

Answered
Why doesn't this simple search program work?
A simple test is type [Dim{128}(1) Dim{128}(2)+D] and Dim{144} and see if they match.

12 years ago | 0

| accepted

Answered
How to create the definite cycle and to display the result of a cycle in a single matrix of a definite size?
A = eye(7).*repmat(1:7,7,1); [x,y] = size(b); m = zeros(7*x,7*y); for i = 1:x for j = 1:y if (b(i,j) == 0...

12 years ago | 0

| accepted

Load more