Respondida
surface plot
[a b] = meshgrid(0:.1:1,0:.01:.1); c = a + b; surfl(a,b,c)

más de 14 años hace | 0

Respondida
surface fitting
Add folder which contains this function to search path, and type: help gridfit

más de 14 años hace | 0

Respondida
surface fitting
See: <http://www.mathworks.com/matlabcentral/fileexchange/8998-surface-fitting-using-gridfit> You can also write your own ...

más de 14 años hace | 0

| aceptada

Respondida
meshing in matlab
See: <http://persson.berkeley.edu/distmesh/ DistMesh - A Simple Mesh Generator in MATLAB> Or if you have pdetool: <http...

más de 14 años hace | 0

Respondida
change polar axes
See: <http://www-europe.mathworks.com/matlabcentral/answers/18457-how-to-plot-only-half-of-a-polar-plot-i-e-only-the-lower-hemis...

más de 14 años hace | 0

Respondida
DelaunayTri output relation to inputs
Analyze this code, I think that it will help you to understand DelaunayTri: [tri_x tri_y] = meshgrid(-1:.5:1); tri_x = t...

más de 14 años hace | 0

| aceptada

Respondida
Optimization gives only small changes in each step, Why and how to solve it?
What is the objective function? Maybe your starting points are located far from the minimum and the function is flat. Plea...

más de 14 años hace | 0

| aceptada

Respondida
Removing Background (To count cells in image)
You do not have to do, just follow the assistant instructions :) Here's the example: <http://blogs.mathworks.com/steve/200...

más de 14 años hace | 0

Respondida
how to select minimum value from matrix
m = min(sr) see also: doc min

más de 14 años hace | 1

Respondida
Errorbar + multiple plots + one legend
Remove the semicolon in legend to errorbar.

más de 14 años hace | 0

| aceptada

Respondida
Variable names in fsolve
Just replace the variables: function F = myfun(x) Y = x(1); C = x(2); I = x(3); . . .

más de 14 años hace | 0

| aceptada

Respondida
how to increase the number of rows and columns of an image in Matlab?
Something like this: a = rand(2,2,3) a(3,3,3) = 0

más de 14 años hace | 0

| aceptada

Respondida
PDEPE and BCFUN
Below is the full code: function heat1D m = 0; xmesh = linspace(0,1,20); tspan = linspace(0,3,60); sol ...

más de 14 años hace | 2

Respondida
Solving time shifted differential equations
Read in documentation: <http://www.mathworks.com/help/techdoc/ref/dde23.html> <http://www.mathworks.com/help/techdoc/ref/d...

más de 14 años hace | 0

Respondida
Partial Differentiation of a function
One of the possibilities: syms x y f=x^2+2*y^2-22 P=diff(f,x) subs(P,{x,y},{1.5,2})

más de 14 años hace | 7

| aceptada

Respondida
tab delimited .txt file
Suppose that your Data is: Data = [1 2 3;4 5 6; 7 8 9]; Would you like to create such a file? line1 1 2 3 line2 ...

más de 14 años hace | 2

| aceptada

Respondida
Recovering list of polling points with patternsearch
The solution is a little dangerous :) Go to directory *matlabroot/toolbox/globaloptim/globaloptim/private/*: cd(matlabroot) ...

más de 14 años hace | 0

Respondida
parallel processing patternsearch.m ?
Set the following options using psoptimset: * 'CompletePoll' to 'on'. * 'Vectorized' to 'off' * 'UseParallel' to 'always'.

más de 14 años hace | 1

| aceptada

Respondida
A bug in Patternsearch with cache on?
*patternsearch* implements Cache as a persistent variable, so you can't use it in this way. You have to set 'cache' to 'off' in ...

más de 14 años hace | 0

| aceptada

Respondida
gamultiobjective
In documentation is a detailed description (with references): <http://www.mathworks.com/help/pdf_doc/gads/gads_tb.pdf>

más de 14 años hace | 0

Respondida
Shaded surface
St11=100; Sc11=St11*2/3; St22=80; Sc22=St22*2/3; S=60; i1 = 0; r = NaN(101,51); for phi=0:pi/50:2...

más de 14 años hace | 0

| aceptada

Respondida
Shaded surface
[psi phi] = meshgrid(0:0.05:2*pi); r = 1; x=cos(psi).*cos(phi).*r; y=cos(psi).*sin(phi).*r; z=sin(psi).*r; surf...

más de 14 años hace | 0

Respondida
patternsearch - ignoring TolFun
Algorithm stops when change in the *objective function* in two consecutive iterations and the *mesh size* are both less than Fun...

más de 14 años hace | 0

Respondida
Invert Matrix Command
Statement A=B.\1 doesn't calculate an inverse matrix. You probably mean: A2=B\eye(size(B)) *B^-1* and *inv(B)* give the same...

más de 14 años hace | 0

| aceptada

Respondida
extract Vector's index from Matrix
*ismember* function might be helpful.

más de 14 años hace | 1

| aceptada

Respondida
file manipulation
doc movefile doc mkdir

más de 14 años hace | 0

| aceptada

Respondida
for loop
for i=1:10 mkdir (sprintf('folder_%i',i)) end

más de 14 años hace | 0

| aceptada

Respondida
convert number of 5 digits to characters
doc sprintf doc num2str

más de 14 años hace | 0

Respondida
Sum of Euclidean distances
sum((xyz(2:end,:)-repmat(xyz(1,:),size(xyz,1)-1,1)).^2,2).^0.5 or with loop; for k=2:5 d(k-1) = norm(xyz(1,:)-xyz(k,:)...

más de 14 años hace | 0

Respondida
function call
Something like that: function my_fun(directory,n) a = dir(directory); % a(1) is folder '.' % a(2) is folder '..' ...

más de 14 años hace | 0

Cargar más