Answered
How to get the rightmost root in the interval?
You claim you want to find the right-most root. If you have an interval, the simple solution might be to just start fzero off us...

6 years ago | 0

Answered
Why Euler's number e = 2.71828... is not a built-in constant in MATLAB?
Let me add this as an answer, because there are very good reasons to leave e as not a named constant, instead of naming it. Yes,...

6 years ago | 10

Answered
How can I define a function as the maximum of multiple functions
This is not truly an answer to the question, but an alternative way of viewing the problem, in the event that the goal here is t...

6 years ago | 0

Answered
how can i plot the values of 2 variables against eachother from the determinant of a martix when det ==0?
First, need I point out just how bad of an idea is it to name a variable a lower case o? This is just asking to produce buggy co...

6 years ago | 0

| accepted

Answered
How do I extend the confidence boundaries of fitlm? Also help with general confidence boundaries of Least Squares?
You needed to scower more. Plotting the result of a call to fitlm then uses predict to compute confidence intervals when plotte...

6 years ago | 1

Answered
Infinit symbolic series with symsum() - HELP!
You did make an effort, even though this is homework. And you even got the correct answer. But pencil and paper should suffice, ...

6 years ago | 0

| accepted

Answered
Help understanding interp2?
Interp2 is a tool that allows you to interpolate on a gridded domain. So a grid based on meshgrid, in the (x,y) plane. The presu...

6 years ago | 2

| accepted

Answered
How to use fzero properly
Your question is how to use fzero properly. I won't do your assignment, since that is yours to do. (Oh, see that I've always be...

6 years ago | 0

Answered
How can i create a sequence that every symbol has the same probability as the others?
Actually, you are wrong in this. randn produces NORMALLY distibuted random numbers. normcdf(0.5) ans = 0.69146 So the...

6 years ago | 0

| accepted

Answered
coding for recursive formula
Some of my guesses would have been correct. Your first equation then has a delta function at k==0. And I'll assume the last te...

6 years ago | 0

Answered
Making numbers equal to a definite value
This is your homework assignment, posted with no effort made. Unfortunately, Madhan was sleepy and answered it, so it cannot be ...

6 years ago | 1

Answered
Evaluating the probability as a one tailed students t distribution
Just use tcdf. df = 10; ti = 2.35; tcdf(-ti,df) ans = 0.02032 tcdf(ti,df) ans = 0.97968 So the probabil...

6 years ago | 0

| accepted

Answered
How to get the values of biharmonic interpolation - 3D surface fitting
I don't see the problem. However, I would note that you have only 4 points, so the surface is pretty difficult to create in an i...

6 years ago | 0

| accepted

Answered
How to find an unknown constant in an integral equation with a known result?
Is it possible? Probably. Although there is no certainty a unique solution exists, or that any solution exists at all. This is...

6 years ago | 1

| accepted

Answered
How can i modify my code to do to find the smallest triangle number whose digits add up to N
What is wrong with the code as it is? Why do you think it does not work? When does it fail? What characteristic of T can you see...

6 years ago | 1

| accepted

Answered
Calculating weighted confidence interval
I looked at your data, but since you never provided the weights, I cannot reconstruct the fitting process. By the way, it is a ...

6 years ago | 2

Answered
How to get equation of surface ?
No. Not really. You can never know the true, underlying functional form for any list of scattered points, since there are infint...

6 years ago | 1

| accepted

Answered
Compute derivative of spline function at a certian value
By far the simplest is to use fnder, IF you have the curve fitting toolbox. x = linspace(-pi,pi,100); y = sin(x); f = spline(...

6 years ago | 2

Answered
Changing the output of a solve function
You probably won't like this solution, but it is fully valid, as long as you recognize that for ANY value of x, atan(x) is ident...

6 years ago | 0

| accepted

Answered
Which method is MATLAB use in poly2 to do a curve fitting?
The 'poly2' option for fit will use a simple linear least squares solver. (I did verify this fact, as could you have done. Be VE...

6 years ago | 0

| accepted

Answered
Can any body solve this error? Subscript indices must either be real positive integers or logicals. Error in mynumericlalinverselaplace (line 17) u(i)=2/t*real(k1*F1(y(i),a1/t))+2/t*real(k2*F1(y(i),a2/t))...
Simple enough, really. You create a cell array of function handles in a loop. Thus we see F1. for i=1:100 for i=1:100 F1{...

6 years ago | 1

| accepted

Answered
What does it mean? (ODE solution)
It seems the people who tried to respond to your question did not read it carefully, trying to solve the wrong ODE, or thinking ...

6 years ago | 2

Answered
Assigning values to vector
Read about discretize. It does exactly what you want.

6 years ago | 1

| accepted

Answered
I am using max function. I need to be able to find 2 values.
READ THE HELP FOR MAX. A = rand(61,5); >> [MaxA,ind] = max(A) MaxA = 0.97868 0.99908 0.96865 0.94517 ...

6 years ago | 1

Answered
Solution for an unknown variable
There will be no analytical solution. Write a function that for any given values or N and alpha, if you knew alpha, it could co...

6 years ago | 0

Answered
How to predict the function in two variables?
I've answered this question separately from my other answer, since it is now clear that you have essentially data that is scatte...

6 years ago | 0

| accepted

Answered
Natural Cubic Spline boundary conditions
The name "natural" applied to the boundary conditions on a spline refer to the use of calculus of variations in the derivation o...

6 years ago | 2

| accepted

Answered
How to predict the function in two variables?
Actually, probably not that. It appears there are three curves, each representing f(x), at ONE specific value of t. There are th...

6 years ago | 0

Answered
Solve linear least square problems with non-linear constraints
Someone might tell you to use fmincon. And they would be right, in a sense. But they would be missing an important point. https...

6 years ago | 0

| accepted

Answered
convert data to a function using polyfit
This is almost what would normally be called a broken stick regression, except the joints between the linear segments are curves...

6 years ago | 1

| accepted

Load more