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

circa 12 anni fa | 0

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

circa 12 anni fa | 0

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

circa 12 anni fa | 0

| accettato

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

circa 12 anni fa | 2

| accettato

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

circa 12 anni fa | 0

| accettato

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

circa 12 anni fa | 0

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

circa 12 anni fa | 0

| accettato

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

circa 12 anni fa | 0

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

circa 12 anni fa | 0

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

circa 12 anni fa | 0

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

circa 12 anni fa | 0

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

circa 12 anni fa | 0

Risposto
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

circa 12 anni fa | 0

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

circa 12 anni fa | 0

| accettato

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

circa 12 anni fa | 0

| accettato

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

circa 12 anni fa | 0

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

circa 12 anni fa | 2

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

circa 12 anni fa | 0

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

circa 12 anni fa | 0

| accettato

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

circa 12 anni fa | 0

| accettato

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

circa 12 anni fa | 0

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

circa 12 anni fa | 0

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

circa 12 anni fa | 0

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

circa 12 anni fa | 0

| accettato

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

circa 12 anni fa | 0

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

circa 12 anni fa | 0

| accettato

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

circa 12 anni fa | 0

| accettato

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

circa 12 anni fa | 0

| accettato

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

circa 12 anni fa | 0

| accettato

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

circa 12 anni fa | 0

| accettato

Carica altro