Submitted


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

4 years ago | 73 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 ...

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

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

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

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

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

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

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

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

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

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

4 years ago | 0

| accepted

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

Answered
Problem with convergence of nonlinear equation systems with constraints ( using solve() )
A common fallacy that people fall to, is that just because you don't know the value of some variable, that it MUST be symbolic. ...

4 years ago | 0

Answered
why I get error when Start my code with %?
%% Section 1 % ka=0.8; Am=1; fm=2; t=0:0.001:1; mt=Am*sin(2*pi*fm*t); Ac=2; fc=50; ct=Ac*cos(2*pi*fc*t); St=(1+ka.*m...

4 years ago | 0

Answered
how to solve this
You already solved it. So where is the problem? If I had to guess, it is why the circle you just plotted does not appear circula...

4 years ago | 0

Answered
Fast Evaluation of Multivariate Polynomials
You have clearly not looked quite EVERYWHERE. Had you done so, you might have found my polyfitn. In there, is a polyvaln code, w...

4 years ago | 1

Answered
Sorting of points (2D) clockwise with respect to the center of gravity
I'm confused. Have you already subtracted off the center of gravity from the columns of data? I don't see that operation. If not...

4 years ago | 0

Answered
The Chinese Remainder Theorem
Since I was going to post this on the FEX anyway, I've attached a simple code to implement the basic C.R.T. Note that all you re...

4 years ago | 0

Question


Solving systems of linear congruences in MATLAB
I've noticed many questions over the years where someone would like to find all integer solutions to a problem. And often it is ...

4 years ago | 0 answers | 1

0

answers

Answered
How to compute the difference of the integrals of two functions (f(x) and j(x)) only over the portions where f(x)>j(x)
I don't see why it should be a struggle. Start at the beginning. Break the problem down into small pieces. Then solve each of th...

4 years ago | 1

Answered
How can i equally distribute a list of values into 3 approximately equal groups.
DON'T WRITE YOUR OWN CODE to solve problems that are already well known and solved by others who understand the problems and how...

4 years ago | 0

Answered
Temperature conversion script doest work with negative input value
Nope. Works just fine. For example, with F = -459 (approximately absolute zero) you should get approximately -273. F=input('Inp...

4 years ago | 0

| accepted

Answered
Convergence can't be reached in lsqcurvefit
Not every model you pose will always fit every set of data. But first, we should look at your model, as well as your data. G_pr...

4 years ago | 0

Answered
I need an activation key for license 4xxxx
Answers is not customer support. We cannot help you. In this respect, even if someone COULD help you, they would not post an act...

4 years ago | 0

Answered
Spline with clamped end conditions using griddedInterpolant
You cannot do so. There is no capability for that in griddedInterpolant. But I fail to see the problem. Just use spline, which D...

4 years ago | 1

Answered
Plotting multiple figures using subplot
help subplot

4 years ago | 0

Load more