Answered

Determinant of a unitary matrix

Gosh. I wonder, if there were really much better ways to compute the determinant, they might have used it? ;-) There are no spe...

Determinant of a unitary matrix

Gosh. I wonder, if there were really much better ways to compute the determinant, they might have used it? ;-) There are no spe...

8 jours ago | 0

| accepted

Answered

How to remove duplicates from a matrix without using unique?

How could you use the output of a sort to help? Why not make an effort?

How to remove duplicates from a matrix without using unique?

How could you use the output of a sort to help? Why not make an effort?

8 jours ago | 1

Answered

Can anyone tell what is this line doing

You asked again, why you cannot use f(1,3), instead of f(1,2). LOOK CAREFULLY AT WHAT YOU HAVE. TAKE IT ONE STEP AT A TIME. f...

Can anyone tell what is this line doing

You asked again, why you cannot use f(1,3), instead of f(1,2). LOOK CAREFULLY AT WHAT YOU HAVE. TAKE IT ONE STEP AT A TIME. f...

8 jours ago | 0

| accepted

Answered

Create Random Points in Elliptical Belt

If you already know how to generate random points uniformly over an elliptical region, then you already have the simple answer. ...

Create Random Points in Elliptical Belt

If you already know how to generate random points uniformly over an elliptical region, then you already have the simple answer. ...

8 jours ago | 0

| accepted

Answered

Exponential distributed random values

You need to do that since your exponential rate parameter varies. If it were constant, this would not be necessary. The first a...

Exponential distributed random values

You need to do that since your exponential rate parameter varies. If it were constant, this would not be necessary. The first a...

9 jours ago | 0

| accepted

Answered

How can I solve the determinant of large-sized symbolic matrix: det(A)=0?

First, you don't want to solve for a zero determinant! Period. This will never be a well-posed problem, simply because we can tr...

How can I solve the determinant of large-sized symbolic matrix: det(A)=0?

First, you don't want to solve for a zero determinant! Period. This will never be a well-posed problem, simply because we can tr...

9 jours ago | 0

| accepted

Answered

Composite Simpson's 1/3 rule code error

Tell me, what is fx? fx is NOT a function. It is a scalar, vector, or array. Whatever x was, fx is the same thing. If it NOT a ...

Composite Simpson's 1/3 rule code error

Tell me, what is fx? fx is NOT a function. It is a scalar, vector, or array. Whatever x was, fx is the same thing. If it NOT a ...

10 jours ago | 0

Answered

excluding a small combinations from a combination?

There are not that many combinations that include the subset [2 4 6] out of nchoosek(1:10,4). This means the oversampling will n...

excluding a small combinations from a combination?

There are not that many combinations that include the subset [2 4 6] out of nchoosek(1:10,4). This means the oversampling will n...

10 jours ago | 0

Answered

How to plot a complex function in matlab like : f(z)=sin(z)?

The problem is, if z is a complex variable, then so is the extension of sin(z) into the complex plane. For example... sin(1 + i...

How to plot a complex function in matlab like : f(z)=sin(z)?

The problem is, if z is a complex variable, then so is the extension of sin(z) into the complex plane. For example... sin(1 + i...

10 jours ago | 1

Answered

Integration of a function

It can be confusing at times I have seen for newcomers to know which tools apply where, because we have symbolic tools and numer...

Integration of a function

It can be confusing at times I have seen for newcomers to know which tools apply where, because we have symbolic tools and numer...

10 jours ago | 0

| accepted

Answered

what does this line do

It does nothing on its own. A single line of code has little meaning, out of context. What does it do? It sets some elements o...

what does this line do

It does nothing on its own. A single line of code has little meaning, out of context. What does it do? It sets some elements o...

11 jours ago | 0

Answered

Matlab solver for natural log equation

Does a solution near(er) to zero exist? PLOT IT!!!!!! syms x f = (-27109/x)-0.95*log(x)+25.18 - log(0.5); fplot(f,[10,1000]) ...

Matlab solver for natural log equation

Does a solution near(er) to zero exist? PLOT IT!!!!!! syms x f = (-27109/x)-0.95*log(x)+25.18 - log(0.5); fplot(f,[10,1000]) ...

11 jours ago | 0

| accepted

Answered

Is NaN ok here?

Sure. It does not bother me. Why does it bother you? B = [1.66000000e-01 6.60000000e-02 1.40000000e-02 3.90000000e-02 1.4000000...

Is NaN ok here?

Sure. It does not bother me. Why does it bother you? B = [1.66000000e-01 6.60000000e-02 1.40000000e-02 3.90000000e-02 1.4000000...

11 jours ago | 0

| accepted

Answered

Gaussian Quadrature Error Help

I think you misiunderstand Gaussian quadrature. You claim to have 4 points. WRONG. You have TWO points in x, and TWO in y, the...

Gaussian Quadrature Error Help

I think you misiunderstand Gaussian quadrature. You claim to have 4 points. WRONG. You have TWO points in x, and TWO in y, the...

12 jours ago | 1

| accepted

Answered

Tic, Toc Behavior

Using tic and toc to masure any time is a bad idea. Using tic and toc to masure any time is a bad idea. Using tic and toc to m...

Tic, Toc Behavior

Using tic and toc to masure any time is a bad idea. Using tic and toc to masure any time is a bad idea. Using tic and toc to m...

12 jours ago | 1

Answered

What does squeeze() do in MATLAB?

Squeeze is a useful tool to help compress dimensions of a multidimensional array when you have performed some operations. Let me...

What does squeeze() do in MATLAB?

Squeeze is a useful tool to help compress dimensions of a multidimensional array when you have performed some operations. Let me...

12 jours ago | 1

| accepted

Answered

Solve as Optimization Problem in Matlab

In MATLAB, the solution is intlinprog. Of course, there may be multiple solutions. intlinprog does not give them, if any could e...

Solve as Optimization Problem in Matlab

In MATLAB, the solution is intlinprog. Of course, there may be multiple solutions. intlinprog does not give them, if any could e...

13 jours ago | 0

Answered

Matrix multiplication from the right with inverse matrix

a is a 3x2 matrix. No matter what, you cannot compute the inverse of a, so U=R*A^-1 is meaningless. I assume you want to sol...

Matrix multiplication from the right with inverse matrix

a is a 3x2 matrix. No matter what, you cannot compute the inverse of a, so U=R*A^-1 is meaningless. I assume you want to sol...

13 jours ago | 0

Answered

Look-up Table "Newton Interpolation"

Let me suggest this is a bad idea. The result will be an interpolant that is not even differentiable across the data points. A n...

Look-up Table "Newton Interpolation"

Let me suggest this is a bad idea. The result will be an interpolant that is not even differentiable across the data points. A n...

14 jours ago | 0

Answered

radius and height of a cylinder with given volume and cost per m^2

I won't do your homework for you, and I truly hope nobody else does it either, as that would be inappropriate. But it seems if ...

radius and height of a cylinder with given volume and cost per m^2

I won't do your homework for you, and I truly hope nobody else does it either, as that would be inappropriate. But it seems if ...

14 jours ago | 1

| accepted

Answered

How to do a non linear fit in MATLAB?

Only VERY poorly. Your data is barely sufficient to estimate anything more than a straight line. R=8.314; P=[0.1 0.1 0.1 0.1 ...

How to do a non linear fit in MATLAB?

Only VERY poorly. Your data is barely sufficient to estimate anything more than a straight line. R=8.314; P=[0.1 0.1 0.1 0.1 ...

14 jours ago | 0

Answered

Fit with exp2 doesn't working

I'll assume you want to fit this using a sum of two exponentials? Since that is the way you plotted it, I assume that is so. ...

Fit with exp2 doesn't working

I'll assume you want to fit this using a sum of two exponentials? Since that is the way you plotted it, I assume that is so. ...

14 jours ago | 1

Answered

Curve is not fitting

With only one or two points where the function is not essentially constant to within the noise of the system, a good fit will be...

Curve is not fitting

With only one or two points where the function is not essentially constant to within the noise of the system, a good fit will be...

14 jours ago | 1

Answered

How can i find equilibrium points of 2 ODEs?

You have a system of ODEs. An equilibrium point is where the derivative is zero. So just use solve, applied to the derivatives...

How can i find equilibrium points of 2 ODEs?

You have a system of ODEs. An equilibrium point is where the derivative is zero. So just use solve, applied to the derivatives...

14 jours ago | 0

| accepted

Answered

Use or Pi and raising matrix to a Power

MATLAB tells you exactly what is wrong, and how to fix it. (This has nothing to do with your use of pi.) Error using ^ (lin...

Use or Pi and raising matrix to a Power

MATLAB tells you exactly what is wrong, and how to fix it. (This has nothing to do with your use of pi.) Error using ^ (lin...

14 jours ago | 0

Answered

Inverse linear/nonlinear regression model

You cannot do this. There are infinitely many possible solutions there, as you should recognize.

Inverse linear/nonlinear regression model

You cannot do this. There are infinitely many possible solutions there, as you should recognize.

15 jours ago | 0

Answered

checking input an integer greater than 0?

If you want to check for an integer that exceeds zero, first use the && and || operators. So assuming you want to throw an erro...

checking input an integer greater than 0?

If you want to check for an integer that exceeds zero, first use the && and || operators. So assuming you want to throw an erro...

15 jours ago | 0

Answered

Between ei(vpa(5)) and vpa (ei(5) ) which command would provide a higher precision for the integral ei(5) ?

Is this a homework assignment? My spidey sense is tingling. However, a quick glance at your other questions suggests you are hop...

Between ei(vpa(5)) and vpa (ei(5) ) which command would provide a higher precision for the integral ei(5) ?

Is this a homework assignment? My spidey sense is tingling. However, a quick glance at your other questions suggests you are hop...

15 jours ago | 0

| accepted

Answered

solve two equations with 2 unknowns(pbar,rho)

The symbolic toolbox does not always work well with the stats toolbox. And stats is where normcdf and norminv come from. So do...

solve two equations with 2 unknowns(pbar,rho)

The symbolic toolbox does not always work well with the stats toolbox. And stats is where normcdf and norminv come from. So do...

15 jours ago | 0