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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 2

Enviada


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

más de 3 años hace | 1 descarga |

0.0 / 5

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

| aceptada

Enviada


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

más de 3 años hace | 2 descargas |

5.0 / 5

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

más de 3 años hace | 0

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

más de 3 años hace | 1

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

más de 3 años hace | 1

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 1

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

más de 3 años hace | 2

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

| aceptada

Respondida
asking about command in matlab
As much as I completely agree with @the cyclist, that you need to start to learn MATLAB, you also need to learn to take apart a ...

más de 3 años hace | 0

Respondida
elliptic curves and finite fields in Matlab
An inverse is trivial in MATLAB. Just use gcd. That is, if you want to solve the problem a*x = 1, mod P where a and P are ...

más de 3 años hace | 0

Respondida
variance for an array
Why would you need a for loop? V = 42; % you don't tell us what is the variance. So that is my choice. 42 is the answer to all ...

más de 3 años hace | 0

Respondida
Construct the complete curve from one segment of it
load d1.mat x = d1(:,1); y = d1(:,2); k = 130:270; plot(x,y,'-b',x(k),y(k),'ro') Seriouisly, you want to reconstruct the EN...

más de 3 años hace | 0

Cargar más