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

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 0

| accepted

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

3 years ago | 1

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 2

Submitted


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

3 years ago | 1 download |

0.0 / 5

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

| accepted

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

3 years ago | 0

| accepted

Submitted


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

3 years ago | 3 downloads |

5.0 / 5

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

3 years ago | 0

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

3 years ago | 1

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

3 years ago | 1

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

| accepted

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

3 years ago | 1

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

3 years ago | 2

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

3 years ago | 0

| accepted

Answered
Can I believe the values of these large integers?
clear; clc; tic; mAx = 10000; daTa = zeros(mAx,mAx); daTa(:,2) = 2; daTa(:,1) = 1; daTa(1,:) = 1; daTa(3,3) = 3; for idx ...

3 years ago | 0

| accepted

Load more