Beantwortet
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...

mehr als 3 Jahre vor | 0

Beantwortet
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...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 3 Jahre vor | 0

Beantwortet
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...

mehr als 3 Jahre vor | 0

Beantwortet
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...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 3 Jahre vor | 0

Beantwortet
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...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
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...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 3 Jahre vor | 2

Gesendet


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

mehr als 3 Jahre vor | 1 Download |

0.0 / 5

Beantwortet
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, ...

mehr als 3 Jahre vor | 0

Beantwortet
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 ...

mehr als 3 Jahre vor | 0

Beantwortet
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...

mehr als 3 Jahre vor | 0

Beantwortet
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...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 3 Jahre vor | 0

Beantwortet
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...

mehr als 3 Jahre vor | 0

Beantwortet
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...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Are the algorithms used in mldivide direct solvers?
The algorithms in mldivide are not iterative, in the sense that an iterative algorithm converges to a result, improving upon it ...

mehr als 3 Jahre vor | 0

| akzeptiert

Gesendet


A limited set of basic number theoretic tools
Various tools for working with integers and their factors, primes, congruences, etc.

mehr als 3 Jahre vor | 3 Downloads |

5.0 / 5

Beantwortet
Is Matlab Fast Enough For Accurate Simulation Of New VAWT Turbines Like This?
Is it fast "enough" How fast is fast enough? Odds are you will never be happy. A small model that might be fast enough will not ...

mehr als 3 Jahre vor | 0

Beantwortet
Can I use multiple values for lb and ub in fmincon?
If you want to have one of the parameters as a bound, then it is NOT a bound constraint!!!!! For example, suppose I wanted to s...

mehr als 3 Jahre vor | 1

Beantwortet
How to solve systems of inequalities and obtain numerical values ​​of variables to write them in a .txt file?
A system of inequalities does not have a "numerical" solution. There will generally be infinitely many solutions (though in very...

mehr als 3 Jahre vor | 1

Beantwortet
Functional programming: looking to create functions that map f(p1,p2,p3,...,pN,x) to g([p1 p2 p3 ... pN],x) and the reverse
I think you are only part way along in your quest, but that your quest will never be happily fulfilled. You are asking to have ...

mehr als 3 Jahre vor | 0

Beantwortet
Plotting fmincon with varying constraint
You already know how to use fmincon. And surely you understand how to use a for loop. Set up a loop, varying a over the indicat...

mehr als 3 Jahre vor | 0

Beantwortet
How can I write the coordinates of this geometry?
Simplest? Use a polyshape. H = 10; Ps0 = polyshape([0 0;0 H;H H;H 0]) plot(Ps0) Next, create a pair of circles. t = linspac...

mehr als 3 Jahre vor | 0

Beantwortet
how do I properly format using the syms function in matlab
Do you need parens around the x? NO. syms x c=factor(2*x^4+x^3-19*x^2-9*x+9); fprintf('Problem 3a answer is :',c) Anyway, wh...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to find the nearest gaussian of a function ?
The one thing you don't want to do, is fit a degree 11 polynomial. From your comments, you have already figured out how to per...

mehr als 3 Jahre vor | 1

Beantwortet
I am trying to solve a system of linear equations generated from a 2-D finite element problem. The equations (shown below) are not in the general form Ax=B..
Ok. Now I see a real problem. I almost was going to make one up. But that is always less fun, and takes just a little more thoug...

mehr als 3 Jahre vor | 2

Beantwortet
At max, how many systems of odes can we solve at once?
There is no maximum number. Or, there is, but it is purely dependent on how much RAM you have, and the time you are willing to s...

mehr als 3 Jahre vor | 0

| akzeptiert

Mehr laden