Answered
Solve tridiagonal matrix system by thomas algorithm
Is it obligatory to create a matrix with those specific elements? Of course not. As long as you know what elements have which va...

16 Tage ago | 0

| accepted

Answered
Heun's method
Is there a general code? No, unless you write it, or find it on the file exchange. Why should there be?

16 Tage ago | 0

Answered
How to plot a nonlinear equation using FSOLVE in MATLAB
You have an implicit function. So a relationship involving two variables, where there is no way to resolve one as a function of ...

18 Tage ago | 0

| accepted

Answered
Obtaining a fourth order of accuracy approximation formula for y''(0) and findind rhe unknown coefficients
Save this function as an m-file, NOT in the MATLAB directories, but on your search path. function ypp = accuracyapprox syms ...

18 Tage ago | 0

Answered
Extrapolating intersection points (signal processing/curve fitting)
Download Doug Schwarz's utility: intersections. https://www.mathworks.com/matlabcentral/fileexchange/11837-fast-and-robust-curv...

18 Tage ago | 0

Answered
How to generate below matrix
Lets be serious here. You want to learn to create a general matrix, with elements in various places, that may, or may not, be wh...

18 Tage ago | 0

| accepted

Answered
how can i show that this equation has at least one solution with the given itnerval
We should not be doing your homework. But since Star has already answered your question, let me see if I can give you an idea. ...

19 Tage ago | 1

| accepted

Answered
fmincon with nonlinear equality constraints
This is barely an optimization problem at all. Many of your nonlinear constraints are just a kludge, a way to use a nonlinear e...

19 Tage ago | 1

Answered
System implementation for loop
Don't create a list of 84 distinct numbered variables. This is a bad idea, terribly poor programming style. It willl create bugg...

19 Tage ago | 0

| accepted

Answered
Multiplication of 2 matrix different
You should proably read the getting started tutorials, as this is a pretty basic question. In your early math courses, where t...

19 Tage ago | 0

Answered
Line search algorithm: nonlinear least squares method for fitting experimental data to a model
A bad idea: to write your own code to implement a numerical method, because you cannot make professionally written code to do th...

20 Tage ago | 0

Answered
Generate N random uniformly distributed points in a specific area
+1 to ytzhak goussha for the correct solution of course. A rejection method is really the logical way to solve it. What I'll poi...

20 Tage ago | 0

Answered
Matlab String (1000) conversion into (1 0 0 0)
Is x a character vector, or a string vector? If char, do this: x = '1000'; y = x - '0'; If a string, you could simply convert...

20 Tage ago | 0

| accepted

Answered
My plot is in radians. How can I change it to multiples of pi. Also, I need to plot the standard deviation as well. Thank you.
You want to know how many multiples of pi? So you would divide by pi.

21 Tage ago | 0

Answered
Trying to integrate sinx using the integrate function but when I plot the integral, instead of plotting from -1 to 1 it plots from 0 to 2. Does anyone know why this happens?
Actually, the integral of sin(x) is NOT -cos(x). This is a mistake that people frequently make. The integral is -cos(x), PLUS a ...

21 Tage ago | 1

| accepted

Answered
Solve exponential and trig function using roots?
Simple answer - No. Roots is designed to solve only one function, polynomial root finding. It does that well. You cannot make co...

21 Tage ago | 1

Answered
Solve an overdetermined problem with lsqlin
lsqlin is not written to allow multiple right hand side vectors. But each column of d is just a separate, distinct, independent ...

22 Tage ago | 0

| accepted

Answered
How can I increase the numerical precision of my calculations?
NO. MATLAB does NOT output this: 1/1.0001 = 0.999900009999000099990000999900009999000099990000999900009999000099990000999900009...

23 Tage ago | 0

Answered
Is it possible to creare a matrix of functions?
Do you want to create function handles? For example, fmat = {@(x) sin(x), @(x) cos(x), @(x) exp(x), @(x) x^2 + 1}; fmat{1}(...

24 Tage ago | 3

Answered
How To Remove Repeating Pattern From Vector
x(find(diff(x) == 0) + 1) = []; That just drops out the consecutive reps, changing x. If you want to create a new vector, you ...

24 Tage ago | 0

| accepted

Answered
How to find the normal to a hemisphere surface
Think about what the normal vector means. It points straight out from the hemisphere. What other known point is on the same line...

25 Tage ago | 1

| accepted

Answered
how to generate random points located on the surface of a hemisphere with its center at (2, 1, 3) and a radius of 6?
Actually, there are easier ways than those proposed, with no loops required. The trick is easy too, basd on the symmetry of rand...

25 Tage ago | 1

Answered
How to generate random matrices that are rank-deficient by generating their SVD first?
You do it by understanding what a rank deficient matrix is, and what the svd means. The svd of a matrix is a decomposition of th...

25 Tage ago | 1

| accepted

Answered
Gamfit function not working
Do you seriously expect to recover the exact values of those parameters? With only 100 samples, the CI are pretty wide. [p,ci] ...

25 Tage ago | 0

Answered
Spline Interpolation with derivative condition for knots
Technically, this is impossible to accompish, at least in terms of a cubic spline. A cubic spline is twice continuously differ...

25 Tage ago | 0

| accepted

Answered
how to generate random numbers with constraints?
This is not simple, if you want to find a truly uniform set. In 24 dimensions, things get fairly complicated. And the domain the...

26 Tage ago | 2

| accepted

Answered
Trying to minimise a function subject to nonlinear constraints
Simple mistake(s) here. You have TWO equality constraints. But your constraint function is written to have ONE equality constrai...

26 Tage ago | 1

| accepted

Answered
choose a number from a matrix based on probability parameter
I think perhaps you do not understand probability. Imagine that you have a "fair" coin. Flip it once, and you expect to see it c...

26 Tage ago | 2

Answered
Finding intersection of 2 parabolic curve fits with different y-axes
Um, trivial, sort of? You want to find the intersection of these two polynomial curves as plotted? They are quadratics, for g...

26 Tage ago | 1

Answered
optimization code with pso
You can't optimize two things at once, unless they both happen to be optimal at the same location. However, you can try to optim...

26 Tage ago | 0

| accepted

Load more