Réponse apportée
Difference between spline(x,y,xq) and interp1(x,y,xq,'spline')
spline is a MATLAB file that build the intermediate piecewise polynomial then evalutae it (in your case). INTERP1 call an inter...

environ 4 ans il y a | 0

Réponse apportée
Growing eye matrix as per the size of eye
tril(repmat(eye(3),3))

environ 4 ans il y a | 1

Réponse apportée
Delete all repeatation number
a = [1 2 2 3 2 4 5 6 7 8 6] [u,~,j]=unique(a); a(ismember(a,u(accumarray(j,1)>1)))=[]

environ 4 ans il y a | 2

Réponse apportée
Dumb mistakes we make with MATLAB.
Use 'end' to index an empty array.

environ 4 ans il y a | 0

Réponse apportée
Uniquetol which preserves the first occurance
Use the third inputs followed by accumarray % Dummy data n = 100; A = randi(10,1,n)+1e-12*rand(1,n) [~,~,J]=uniquetol(A); ...

environ 4 ans il y a | 0

| A accepté

Question


How to find which toolboxes are required for compiled standalone app?
My question is straightforward: Is there away to check which toolbox are required after mcc command. I can see the file requir...

environ 4 ans il y a | 2 réponses | 0

2

réponses

Réponse apportée
How do I convert a non-normal distribution to an equivalent normal distribution?
You can almost always map a reasonable continuous random distribution to a normal one. If r follows some distribution law and y...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
Obtaining the combinations of a vector array to satisfy lineal constrains.
See this thread (14 year ago) with simlar question, the technique using gcd can help to reduce the search https://groups.google...

environ 4 ans il y a | 0

Réponse apportée
Is there an easy way to remove points from a signal which can be restored by interpolation
This Free knot spline FEX can acoomplish what you ask for.

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Preallocate variables with unkown size
You can compute exactly the size needed for your vectors A = G_orig.adjacency; A(inActive,:) = 0; m = nnz(A(:,inActive)); ph...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Reshape Nx1 struct with field of Mx1 elements to N*Mx1 vector
Something like B = cat(1,A.bar)

environ 4 ans il y a | 0

| A accepté

Réponse apportée
cumulative sum table over group
tableA = {"A" 1 0 3 ; "A" 1 2 3 ; "A" 1 3 3 ; "A" 2 0 2; "A" 2 2 ...

environ 4 ans il y a | 1

| A accepté

Question


What means "MATLAB connector is not running"?
I have a GUI app that runs fine under MATLAB, however when compiled as standalone with MCC, I get a strange warning message "w...

environ 4 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
multi array vectorization problem (reformulated)
A = [ -0.8013 -0.4981; -0.2278 -0.9009]; t = 0:3; % eigen space [V,D]=eig(A,'vector'); D = reshape(D,1,[]); % compu...

environ 4 ans il y a | 2

Réponse apportée
Find differences in a set of points without a for loop
x = randi(10,3,1) d = abs(x - x.')

environ 4 ans il y a | 0

Réponse apportée
Rotate the coordinate system to align an existing plane with Y'Z' plane
Take a look at this thread and see if you can use it

environ 4 ans il y a | 0

Réponse apportée
replace matrix A with the values of another matrix B
A= cat(3, [ 0 0 1; 0 1 0; 0 1 1], ... [1 0 0, 0 0 0; 0 0 0], ... [0 1 ...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
Can anyone please vectorize the code I have?
There is nothing in your data to guess that Jout must have 14 elements, the last index > 0 is 13. J_org = [ 0 2 0 ...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Variable f coeffficient depends on x for linprog
Solve 2 problems f= [0 f2]; x = linprog(f,A,b,Aeq,beq,lb1,up1); with lb1 = -inf(size(x)), up1 = zeros(size(x)); g= [50 f2]; ...

environ 4 ans il y a | 0

Réponse apportée
Computing Euclidean distance between 2 points
For a row vector d % sum(d.^2) is equal to % d*d' Example d=randi(10,1,3) sum(d.^2) d*d'

environ 4 ans il y a | 1

Réponse apportée
Standalone compiled with Matlab compiler doesn't work
Have you include PSD_FSE3D.xml in the packaging? Do you take into account the path of the file is different when you run in sta...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Surface plot of function over triangular domain
P1 = [1,1]; P2 = [2,0.5]; P3 = [4,4]; zfun = @(x,y) x.^2+y.^2; % Create triangular mesh of triangla P1,P2,P3 n=20; [I,J]...

environ 4 ans il y a | 1

Réponse apportée
swaping 2 random numbers from array
ij = randperm(length(x)-1,2)+1; x(ij) = x(flip(ij));

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Warning: Matrix is close to singular or badly scaled. Results may be inaccurate.
It's a warning (not really error) It means your matrix is numerically not invertible (or almost not invertible)

environ 4 ans il y a | 0

Réponse apportée
when edit figure error "undefined function mtimes for input arguments of type string"
can you type dbstop if error on MATLAB command window, then try to trigger the error?

environ 4 ans il y a | 1

Réponse apportée
Matrix from measured data is singular, what could be the reason?
Could you try the normalization similar to my answer here?

environ 4 ans il y a | 0

Réponse apportée
I want to find out points whose coordinates are within the volume formed by a cone shape.
Assuming the cone center is C: (3 x 1) coneangle is the cone angle (0 to pi, pi corresponds to the extreme case where the con...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Plot differential equations with respect to two variables in a 3d plane
Try this (adapt to your code): %editparams; %file that contains parameters Tend = 10; Nt = 100; % Define RHS functions RHS ...

environ 4 ans il y a | 0

Réponse apportée
Generating a Dictionary Function
You can use container.Map. I give here example of numbers, but it can handle char array or strings as well. The time access, u...

environ 4 ans il y a | 0

Réponse apportée
For consistency with "nan", wouldn't it be nice to be able to issue "missing(3)"?
Why not define your own function mymissing mymissing(3) mymissing(2,3) mymissing(2,'string') mymissing(2,3,'double') fun...

environ 4 ans il y a | 0

Charger plus