Respondida
Mex -setup compiler
I guess you run Matlab on 64-bit platform (The factory LCC is the only available for 32). A free compiler is Microsoft Visual St...

más de 15 años hace | 1

| aceptada

Respondida
Why is MATLAB rounding this?
a = 2 fprintf('%1.16e', 10^(log10(a) + 0.125)) 2.6670428643266479e+000 What's *your* problem???

más de 15 años hace | 1

Respondida
Sparse Martices
You should take a look at SPARSE command, and more specifically SPDIAGS command that can help to populate the diagonals of spars...

más de 15 años hace | 0

Respondida
How do I specify the diagonal elements of a matrix?
Take a look at DIAG function help diag

más de 15 años hace | 5

Respondida
Error in Spline (interpolation)
The warning message issued possible due to there are abscissa (chopped filed) too close to each other. You could group them then...

más de 15 años hace | 0

Respondida
How do I use rectint to find the area of two intersecting rectangles?
There is a set of polygon boolean operators in Mapping Toolbox. I can't find the official doc but the below link you an idea wha...

más de 15 años hace | 0

Respondida
uncertainty in polyfit from measurements?
For Gaussian noise, here is a code to show you how to do without stat toolbox. There is a first part that uses brute force metho...

más de 15 años hace | 0

Respondida
Row sums by vector indices without for loop?
Yes, to be more specific my mcolon on FEX <http://www.mathworks.com/matlabcentral/fileexchange/29854-multiple-colon> can be u...

más de 15 años hace | 2

Respondida
fmincon (how to set square of a parameter in a constraint)
You can't use Ax=b formulation. Your constraint is non-linear constraint so use the non-linear constraint formulation.

más de 15 años hace | 0

Respondida
Solving [K]{x}={b} efficiently, when [K] is symmetric!
Short answer no. Long answer: MATLAB does not have a mechanism of storing symmetric matrix (saving by a factor of 2 is pro...

más de 15 años hace | 0

Respondida
Lagrange or spline (interp2)
spline is almost always better.

más de 15 años hace | 0

| aceptada

Respondida
How do I use randperm to produce a completely new sequence (no numbers in same place)?
This tool by Derek O'Connor can return efficiently a derangement: <http://www.mathworks.com/matlabcentral/fileexchange/30101-rp...

más de 15 años hace | 1

Respondida
executable file without supporting file?
You need to read the doc concerning deploying an application. First and foremost it requires to install the MCR (Matlab Componen...

más de 15 años hace | 0

Respondida
normal distribution range
Please take a look at my FEX submission. <http://www.mathworks.com/matlabcentral/fileexchange/23832-truncated-gaussian> % Ge...

más de 15 años hace | 3

Respondida
Ho do I calculate the angle between two 3d triangles?
P1=randn(3,1) P2=randn(3,1) P3=randn(3,1) P4=randn(3,1) E=P1-P2 % edge Q = null(E') v1 = Q'*(P3-P1) v2 ...

más de 15 años hace | 1

| aceptada

Respondida
How do I use randperm to produce a completely new sequence (no numbers in same place)?
Jan's method only concerns circular permutation, which is limited. In general, any permutation of a set of cardinal _n_ can be ...

más de 15 años hace | 1

Respondida
Search for Stationary Points of Constrained Nonlinear Function
A generic tool is to solve stationary points is FMINCON. If we know more about objective function, we might orient you towards m...

más de 15 años hace | 0

Respondida
Extracting entries from vector B that are best estimate each entry in vector A
BS = sort(B); C = interp1(BS, BS, A, 'nearest', 'extrap') Bruno

más de 15 años hace | 0

Respondida
Finding coefficients of a 3rd degree polynomial while i impose a numerical value to its maximum value
Sure, a0=-Inf, a1=a2=a3=0 Bruno

más de 15 años hace | 0

Respondida
How do you randomize numbers but not have two consecutive numbers be the same?
Generate 100 pairs, no two consecutive pair has the same frequency OR the same amplitude: % Data f = (1:5)' a = (1:5)' ...

más de 15 años hace | 1

Respondida
Uniform distribution of N points within a sphere
% a is inner radius % b is outer radius % is a number of points a = 2; b = 3; n = 1000; s = randn(3,n); r = (...

más de 15 años hace | 0

Respondida
Problem saving/loading structure with function handles
In an old related thread below, there is a way to deal with loading/saving function handle: http://www.mathworks.com/matlabcent...

más de 15 años hace | 1

Respondida
Generate random points inside a circle
Here is another non-rejection method based on Gaussian RANDN. To goal is to avoid calling sine/cosine. It seems only slightly fa...

más de 15 años hace | 3

Respondida
Generate random points inside a circle
Careful, mathematically there is always a tiny probability the rejection method (Matt's proposal) returns number of points less ...

más de 15 años hace | 5

Enviada


ChooseK
All pairs intersecting on k-1 tuples from all possible k-tuples of n objects

más de 15 años hace | 1 descarga |

0.0 / 5

Enviada


Multiple-Colon
multiple colon-intervals

más de 15 años hace | 1 descarga |

5.0 / 5

Enviada


Sparse sub access
This package allows to retrieve and assign values of sparse matrix in one shot.

más de 15 años hace | 1 descarga |

5.0 / 5

Enviada


ISMEMBERF
Floating-point ISMEMBER (i.e., with round-off tolerance)

casi 16 años hace | 1 descarga |

5.0 / 5

Enviada


mmtimes: matrix chain product
Return matrix chain product P = M1*M2* ... *Mn

casi 16 años hace | 1 descarga |

4.5 / 5

Enviada


Truncated Gaussian
Generate a pseudo-random vector X drawn from the truncated Gaussian distribution

casi 16 años hace | 2 descargas |

4.0 / 5

Cargar más