Réponse apportée
maximization nonlinear problem and local maximum solution
Whenever I try to squeeze blood from a rock, all I ever do is get my hands all bloody with my own blood from my own fingers. The...

plus de 3 ans il y a | 0

Réponse apportée
How can we generate all n by n matrices with entries {0,1,2,...,m-1} for any natural numbers m and n?
So, for the simpler case of how to solve for ALL 2x2 matrices, containing the integers 0:6, just work in base 7. M = reshape(de...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Is using the Trapz function equivalent to using the Mean function in MATLAB ?
NO. It is not the same thing. Can it, under some circumstances be approximately the same? Well, with multiple caveats, yes. Some...

plus de 3 ans il y a | 0

Réponse apportée
How can we generate all n by n matrices with entries {0,1,2,...,m-1} for any natural numbers m and n?
Assuming you mean with replacement, then yes, the total number of those matrices is m^(n^2). For m and n even reasonably large, ...

plus de 3 ans il y a | 0

Réponse apportée
How to solve a semi-definite programming with l1-norm objective?
This is an optimization problem, but I would argue it has been posed poorly. If you want to constrain the matrix A to be positiv...

plus de 3 ans il y a | 1

Réponse apportée
parameter Heligman pollard
Given only 17 data points, estimation of 8 highly nonlinear parameters will be almost impossible. Sorry. x1=[0;1;5;10;15;20;25;...

plus de 3 ans il y a | 0

Réponse apportée
exitflag in fminsearch
It is NEVER possible for fminsearch to return a decimal value for the exit flag. That presumes there was no accidental modificat...

plus de 3 ans il y a | 0

Réponse apportée
bilinear curvefit
This is essentially just a linear spline, so a pair of piecewise linear segments, continuous at the join point. The problem is,...

plus de 3 ans il y a | 0

Réponse apportée
Sorting of trigonometric functions
The simplest way to achieve what you want is to compute the sin, and then do the sort. Anything else you could do would be more ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
finding values of implicit function of 3d
So you have the relation: a=0; b=10; T=3; e = exp(1); ux = 90; v = 70; syms u t x b^u*(ux/e*u)^(v*t/2) == b^(x/2) (Please...

plus de 3 ans il y a | 1

Réponse apportée
How to write an inequality constraint to solve NLP problem by fmincon
They are NOT TWO constraints. They are FOUR constraints. Just because you want to be efficient in how you write them in terms of...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How do I plot from excel different columns file?
You were ALMOST there. Literally, almost. You need the x axis variable. Here is your array: numbers = [1 6 7 4 3 3 4 7;2...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
What is the equivalent of element-wise division in python when denominator contains complex number
That is the correct expression. Why it gives zero is hard to tell. You may have defined the variable i in your code already as a...

plus de 3 ans il y a | 0

Réponse apportée
FOR Loop Final Answer Problem
Your code predicts a 4 year tuition of 5500. Clearly that is not correct. How would I solve this, even if I was not using a loop...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Matlab code contains comments with strange/unrecognisable characters. Can these be "translated" in English?
If you get no response, you could try Google Translate, though it does not seem to be terribly helpful today. It thinks the comm...

plus de 3 ans il y a | 0

Réponse apportée
monte carlo from lognormal distribution?
You have not told me the distribution quantiles yet. So I'll make some up. P = [1, 5, 10, 25, 50, 75, 90, 95, 99]/100; Q = log...

plus de 3 ans il y a | 0

Réponse apportée
Calculating the new beta parameters given two variables
I saw this question when you first posted, but it was not at all clear what was your question. Now I see you want to compute the...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
SAMPLE TIME , SIMULATION TIME , STEPSIZE IN DETAIL
This is not remotely a question about MATLAB. But since these words are often used by many of the tools in MATLAB, I'll assume y...

plus de 3 ans il y a | 0

Réponse apportée
Plotting a bar graph on a circular axis
Just to make up some data... n = 100; theta = linspace(0,2*pi,n); r = 10 + rand(1,n); r = [r;r+1+rand(1,n)]; Ok. now I have...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Row vector using Leibniz series
Think about it. How does that generate a VECTOR? In what you wrote, is n a SCALAR? (Yes) y=(-1).^n/(2.*n+1) So how will that c...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Experiment and Model not fitting well
We don't actually have the data. so it is difficult to be more clear about this. But you seem to think what the model must be ab...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
eig() gives eigenvalues in the "wrong" order
(You should accept @Matt J's answer. I'm just expanding on it, but if I make this as a comment on Matt's answer, the comments te...

plus de 3 ans il y a | 2

A soumis


num2bin
Expression of all numbers in a variety of binary forms.

plus de 3 ans il y a | 1 téléchargement |

0.0 / 5

Réponse apportée
LSQNONNEG function with large amount of data
No answer was made, so too late for @Neil Cohen. (Sorry about that. But @Borong Liu might gain.) Since there is still interest, ...

plus de 3 ans il y a | 0

Réponse apportée
Given a big square matrix and some eigenvalues, how to find the corresponding eigenvectors?
A = magic(8) format long g [V,D] = eig(A); d = diag(D) Now we wish to solve for the eigenvector, corresponding to one of the ...

plus de 3 ans il y a | 0

Réponse apportée
How do you round up or down to a decimal
You are trying to use capabilities of round that are not present in your (older) MATLAB release. For that code to work, you nee...

plus de 3 ans il y a | 0

Réponse apportée
The proper way to sample 3 normally or lognormal distributed variables added up to 1
Let me answer your second question separately. How would you sample three NORMALLY distributed random variables that sum to 1? T...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
The proper way to sample 3 normally or lognormal distributed variables added up to 1
Magic? You have three variables, with means that will at least get you in the right ballpark. The goal however, its to insure t...

plus de 3 ans il y a | 0

Réponse apportée
Solving a system of Linear Equations with constraints. Using Symbolic math.
This is just an eigenvalue problem. (Yes, I know that is probably beyond the scope of the question that was asked. But this is j...

plus de 3 ans il y a | 0

Réponse apportée
Matlab kills itself when my matrix is bigger than 7.5 GB
No. Parallel processing will not help. In fact, it could make things worse, since you only have a fixed amount of RAM, but now y...

plus de 3 ans il y a | 0

| A accepté

Charger plus