Réponse apportée
Equation to Matlab code
(I really hope I am not doing your homework here, but the question is not posed as if it is, even though I assume you are a stud...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
How to get elapsed time of a code in matlab ?
Sorry, but no. A prediction of the time required for some arbitrary piece of code will never happen. It cannot happen. Well, no...

presque 4 ans il y a | 2

Réponse apportée
Optimization of points generating inside a sphere
The common scheme that is advised is to generate points randomly, then if a point is too close to a neighbor, then you reject it...

presque 4 ans il y a | 0

Réponse apportée
why covariance matrix Should be positive and symmetric in mahalanobis distance
SIGH. Multiplying a covariance matrix by its transpose is NOT what you want to do! If it is already a covariance matrix, that op...

presque 4 ans il y a | 0

Réponse apportée
How do we interpolate a data set with noise?
Um, you generally don't want to interpolate noisy data! That is just a good way to amplify the noise. I did show many years ago,...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
n as the natural numbers
There are many ways to interpret this question. If the goal is simply to TEST to see if n is a natural number, then you might do...

presque 4 ans il y a | 1

Réponse apportée
how to use surf function?
Almost always, when someone says they have a single vector of z values and they want to use surf, they mean that they have a lis...

presque 4 ans il y a | 1

Réponse apportée
Is there an easier way to index diagonal elements of a matrix?
A = diag(randi(100,10,1)); n = size(A,1); A(sub2ind([n,n],[3 6 7 9],[3 6 7 9])) = 1000; A If you understand how matrix ele...

presque 4 ans il y a | 2

| A accepté

Réponse apportée
Symbolic solve with user-specified precision
Your belief has preciously little value. Faith in mathematics tends to be a waste of mental energy. Let me expand your equations...

presque 4 ans il y a | 0

Réponse apportée
I created an array of size 255 of pseudo-random integers . I want to access the value at a particular index of the array how can I do it ?
Basically, you need to look at the getting started tutorials. Try the MATLAB Onramp. r0 = uint8(randi(255,255,1)); r0(158)

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Is it possible to (non-linear) minimize x^y by choosing both x and y?
Can MATLAB solve it? Yes. Your doubt is only you not knowing how to solve the problem. In fact, simplest is to transform the pr...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
isprime function seems to have poor performance
As a follow-up, I've also compared the MATLAB isprime to that of Python and Mathematica. On significanty large numbers, The MATL...

presque 4 ans il y a | 2

Réponse apportée
Where to get a zip code for free 30 days trial
This is not a question about MATLAB. However, the answer is easy. CONTACT sales/customer service. Just contact the MathWorks dir...

presque 4 ans il y a | 1

Réponse apportée
Is it possible to generate an encrypted function that can be used a limited number of times?
Is it possible? It depends on how good or technically naive are your users. How determined would they be? You can "encrypt" a f...

presque 4 ans il y a | 1

Réponse apportée
Optimization - find a max on a complicated function
You maximize a function using a tool that minimizes it, by finding the minimum of -f(x). How to do it? Use fminbnd. Set the bou...

presque 4 ans il y a | 1

Réponse apportée
finding the orthogonal vectors for a series of vectors
I think you are confused. Really, this is not a difficult problem. You need to understand the linear algebra of it, or you will ...

presque 4 ans il y a | 3

Réponse apportée
How to select columns in a matrix whose first row data is positive?
Easy peasy. A=[-1 2 5 4 -4;1 2 3 4 6] B = A(:,A(1,:) > 0)

presque 4 ans il y a | 0

| A accepté

Réponse apportée
How can I use the ( nchoosek ) for this case nchoosek(x,y) where x=[1:1:80] , and y=64;
As Jan pointed out, you CANNOT solve your problem in this way. Using nchoosek in this form, it almost always is a form of brute ...

presque 4 ans il y a | 0

Réponse apportée
How can i solve this differential equation by the method of finite difference approche?
Answers is not a service where we do your homework assignments. However, you have now gotten an answer, so I'll point out that y...

presque 4 ans il y a | 0

Réponse apportée
Decimal and very small values returning zeros
Um, why are you doing this numerically at all??????? With the variable of integration as c, your kernel is: (pi*t)^(-1/2).*...

presque 4 ans il y a | 0

Réponse apportée
least square fitting for a nonlinear regression.
You show no data, and only a difficult to understand equation, but I am pretty sure what form you are trying to fit. y(t) ...

presque 4 ans il y a | 0

Réponse apportée
How to solve a system of equations?
pt1, pt2, and pt3 are the equations of the surfaces of three spheres, each wih the same fixed, but unspecified radius. Pick an...

presque 4 ans il y a | 0

Réponse apportée
How to optimize parameters with dsolve?
You cannot do so. The solution using dsolve has MANY parameters in it that have no assigned value. As far as the use of dsolv...

presque 4 ans il y a | 0

Réponse apportée
How to convert decimal time to HH:MM:SS
format long g T = now % so the current time in a decimal format The integer part of that time represents days, and above. The ...

presque 4 ans il y a | 0

Réponse apportée
Integration Help in exponential
Did you try it? Why not make an effort? Surely you can do something. syms t T K(t) = exp(-t^1.3/27.290)*exp(-t/12.724)*t^0.3 ...

presque 4 ans il y a | 0

Réponse apportée
How to find the factorial of fractional numbers using matlab code?
You CANNOT compute the factorial of a fractional number. Factorials are defined only for integers. HOWEVER... It is true that...

presque 4 ans il y a | 2

| A accepté

Réponse apportée
If your MATLAB licence expires, can you still use datasets created on MATLAB prior to expiration (and saved in non-MATLAB format e.g. Excel) for future research papers?
Unequivocably, yes you can do so. There is no problem with use of such data after your license will expire.

presque 4 ans il y a | 0

Réponse apportée
Fmincon converged to an infeasible point, I don't know why
I'm sorry, but this code is a bit strange. Ok, wildly strange. Why are you using fmincon? You have no linear inequality constra...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Should I use EIG or SVD to compute the eigenvalues of a symmetric matrix?
Again, these are just my thoughts as I write them down. I'll possibly fail to get everything answered in here. Such is life. Wh...

presque 4 ans il y a | 0

Question


Should I use EIG or SVD to compute the eigenvalues of a symmetric matrix?
I saw ths question posed as an answer to another question. So I'll pose the question myself, then post my own thoughts as my ans...

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

2

réponses

Charger plus