Réponse apportée
How can i define a m by n symbolic matrix?
If m and n are themselves symbolic, you cannot do so. However, you can do this: matfun = @(m,n) sym('a',[m,n]); Now you can us...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Accuracy of polygon approximation
R*2 is not remotely meaningful here, unless you find a way to intelligently extend it to this situation. I would probably find ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Function value and YDATA sizes are not equal BUT THEY ARE
The expectation is that in the function (here, Cp) the data vector should be the SECOND argument. It needs to be Cp = @(x,T7)...

plus de 4 ans il y a | 2

| A accepté

Réponse apportée
Help Finding Explicit Solution Non Linear Differential Equation
There is no assurance that ever nonlinear differential equatino you may choose to pose has an analytical solution. In fact, I no...

plus de 4 ans il y a | 0

Réponse apportée
Which is the smallest natural number n to which it applies a(n)>10?
The obvious answer is brute force, thus... a_i = 1; a_iplus1 = 1; plot(a_i,a_iplus1,'o') hold on iter = 2; imax = 1e6; wh...

plus de 4 ans il y a | 1

Réponse apportée
How to draw a line on a symbolic surface
syms x1 x2 f1 = x1^2+x2^3-9 fsurf(f1); hold on fimplicit(f1,'r') WTP? :)

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Trying to do product of eigenvalues collected from a matrix
You don't want to use the product of eigenvalues to determine if a matrix is singular. This is equivalent to computing the deter...

plus de 4 ans il y a | 1

Réponse apportée
Output vector in the polyval
format long g p=[1 0 0 0 0 -5 3 21]; x=[10 15 20]; poly_value=polyval(p,x) poly_value = 9999551 170858316 ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Quadratic/Exponential Best Fit Curve
First, you have 4 data points. Trying to fit a degree 7 (SEVEN) polynomial to that is just silly. Yes, you say quadratic. But yo...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Why are alternative forms for "dbstop in file at location if expression" not documented?
All commands in MATLAB are actually implemented as functions. There is a command/function duality in existence. So you can alway...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How to adjust a cloud point to meet the minimum distance requirement?
Sorry, but no. There is no analytical solution that would provide the clustering that you wish to achieve. You can use clusterin...

plus de 4 ans il y a | 0

Réponse apportée
how factor a polynomial into 2 quadratics?
You cannot uniquely factor a 4th degree polynomial into such a pair of quadratics. You may think that you can, but it is provabl...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
seven roots of an equation
Your equation is: What you have done in code is terribly confusing. There is no need to use symsum. Can we assume that b is ...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
How to get coefficient non linear fit?
% Make up some random data since you gave us none x = rand(50,1); y = 0.3*exp(-2.5*x) + 1 + randn(size(x))/50; plot(x,y,'.') ...

presque 5 ans il y a | 0

Réponse apportée
A better way to do antidiagonal matrix vectorization?
This should not be that difficult. One trick might be to use ndgrid, and then a sort. For example, consider the function adunrol...

presque 5 ans il y a | 2

Réponse apportée
why in this function they use empty square brackets?
It is not a dumb question at all, because the syntax used by MATLAB to delete a row or column of an array may not be obvious. Bu...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
What is the problem with my code? How to do integration of matrix which consists integral variable?
M is a SYMBOLIC variable. You use int to integrate it, not integral. syms x; M = [x x^2]; int(M,[0,12])

presque 5 ans il y a | 0

| A accepté

Réponse apportée
Subs with 2 numbers returns a number
Simple enough. Convert the original expression to a string. Now just do string processing, with finds and replace operations. C...

presque 5 ans il y a | 0

Réponse apportée
Solve second order non linear differential equation
You will not be able to use bvp4c directly, since it will use collocation. That will fail on an infinite domain. One option mig...

presque 5 ans il y a | 0

Réponse apportée
convert signal to morse code
As @dpb suggested: Use findpeaks to locate each peak. (Ignore the tiny ones. So anything that is significantly above the baseli...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
Writing exponent in pplane for Matlab
pplane is not part of MATLAB, so it must be a package from the file exchange, or some other source. You might want to contact th...

presque 5 ans il y a | 0

Réponse apportée
Assign the same variable to all elements of a Matrix
As with Matt, I have not used the code, but this should work. M = repmat(sdpvar(1,1),[10 10 10]);

presque 5 ans il y a | 0

Réponse apportée
Nested for loop to generate random matrix
No. That simply is not true, that only the first row and column are random. for i = 1:10; %Generates random angle for each par...

presque 5 ans il y a | 1

Réponse apportée
write a polynomial answer in one operand
I assume that is a prime outside of the parens, which makes no sense unless you intend it as the complex conjugate. But even the...

presque 5 ans il y a | 0

Réponse apportée
Does intlinprog find a local minimum or global minimum?
Another issue is that it is easy to formulate a problem with multiple solutions, all equally good. intlinprog should find one of...

presque 5 ans il y a | 1

Réponse apportée
Using curvefit for conditional functions
You CANNOT fit that model. Why not? a and b are not independent parameters. They look as if they are. Ignoring the part where ...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
Can't solve integrate with unknown value and after an equation with it
First, you don't need to use vpasolve. Solve will do. Leave it in a fractional form, rather than converting to a finite number o...

presque 5 ans il y a | 0

Réponse apportée
Question about vectorized fminsearch using flipud
I fail to undertand your question. It minimizes what you give it. If the flipud is in there, your objective function is differen...

presque 5 ans il y a | 0

Réponse apportée
Find first n roots of transcendental equation
First, the function you have written does not seem to have multiple roots. In fact, the only solution it seems to have is zero. ...

presque 5 ans il y a | 0

Réponse apportée
Restarting chol when the flag indicates it has stopped due to singularity
No.

presque 5 ans il y a | 0

Charger plus