Respondida
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....

alrededor de 12 años hace | 0

Respondida
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 ...

alrededor de 12 años hace | 0

Respondida
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...

alrededor de 12 años hace | 0

| aceptada

Respondida
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.

alrededor de 12 años hace | 2

| aceptada

Respondida
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;

alrededor de 12 años hace | 0

| aceptada

Respondida
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, ...

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 0

| aceptada

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

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 0

Respondida
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...

alrededor de 12 años hace | 0

Respondida
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.

alrededor de 12 años hace | 0

Respondida
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...

alrededor de 12 años hace | 0

Respondida
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

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 0

| aceptada

Respondida
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 = ...

alrededor de 12 años hace | 0

| aceptada

Respondida
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...

alrededor de 12 años hace | 0

Respondida
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...

alrededor de 12 años hace | 2

Respondida
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...

alrededor de 12 años hace | 0

Respondida
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 ...

alrededor de 12 años hace | 0

| aceptada

Respondida
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))]);...

alrededor de 12 años hace | 0

| aceptada

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

alrededor de 12 años hace | 0

Respondida
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...

alrededor de 12 años hace | 0

Respondida
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...

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 0

| aceptada

Respondida
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...

alrededor de 12 años hace | 0

Respondida
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...

alrededor de 12 años hace | 0

| aceptada

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

alrededor de 12 años hace | 0

| aceptada

Respondida
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...

alrededor de 12 años hace | 0

| aceptada

Respondida
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.

alrededor de 12 años hace | 0

| aceptada

Respondida
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...

alrededor de 12 años hace | 0

| aceptada

Cargar más