Answered
how to solve this equation (vdmoins/2)*(1-cos((x + alpha)*(2 * pi)/360)) + (vpiston/2)*(1+cos((x)*(2 * pi)/360))==291
First, check that a root exists. vdmoins = 537; alpha = 45; vpiston = 426; fun = @(x) (vdmoins/2)*(1-cos((x + alph...

8 years ago | 1

Answered
How to create symbolic polynomials from a coefficient vector and symbolic vector?
As Walter shows, you can do it using provided tools easily enough. Just to understand how things work, you can also do it direct...

8 years ago | 0

| accepted

Answered
Efficiently repeating nullspace operation
First, don't store your data in three separate arrays. Learn to use a 3-d array instead. That avoids having to aggregate those r...

8 years ago | 2

Answered
hi i downloaded a trial version matlab with some trial version finance tool boxes but dont kow how to begin using it? need assistance.
Read the getting started tutorials first. Learn MATLAB. There is nothing we can do for you, until you at least start to learn th...

8 years ago | 0

Answered
What shall i do to convert a matrix in the attached format in to a matrix that displays (Coordinate.X) in the 1st column, (Coordinate.Y): 2nd column, (Coordinate.Z): 3rd column, & (Value it self) in 4th column. (Assuming that matrix is 4*4*4)
If the 4x4x4 matrix is called A, then this will do it with the first variable moving the most rapidly: [X,Y,Z] = ndgrid(1:4...

8 years ago | 0

| accepted

Answered
Question about vpasolve to solve a nonlinear equation with mutliple variables
You have one equation, in more than one unknown. There is no solution for x. Or, said differently, there may generally be infini...

8 years ago | 0

| accepted

Answered
Can anybody help me point out why I cant display x(result) when I call my function?
There are soooo many problems in this code, that I stopped looking early. Sorry, but true. Hey, at least you know to use semi-co...

8 years ago | 1

| accepted

Answered
computation time-eigen vectors multiplication
Well, disregarding my questions about why in the name of god and little green apples you want to do this, the trivial answer is ...

8 years ago | 0

| accepted

Answered
How to expand a Matrix ?
One answer is to just use indexing, using a carefully designed index vector. Or, you can use tools like repmat & permute & resha...

8 years ago | 2

Answered
Concatenating Arrays with Different Dimensions
You can want to do all sorts of things that are not possible to do. But you cannot create a double precision array that has a...

8 years ago | 0

| accepted

Answered
How to write a function that will count the number of prime numbers betweeen n1 and n2 using a for loop?
Your problem is you needed to do something given the result of isprime(x). You stuffed that result into y. But then you did noth...

8 years ago | 2

Answered
what is pkurtosis?
Isn't the best way to read the documentation for the function? <https://www.mathworks.com/help/signal/ref/pkurtosis.html pkur...

8 years ago | 0

Answered
How to compute 3^301 as an integer
You can never represent 3^301 as an integer in double precision, because it exceeds 2^53-1. It also clearly exceeds the capacity...

8 years ago | 1

| accepted

Answered
Syntax and code in function parameter for ~
No. The function does NOT output sol and it_hist. The ~ in position 1 tells MATLAB NOT to return the first argument. The seco...

8 years ago | 0

| accepted

Answered
Finding Roots of a Function
Close is a relative thing. For example, suppose you have the function f_x = @(x) (x-1).*(x-1.5); Now it should be pe...

8 years ago | 0

Answered
Matrix dimensions must agree;Error
As you wrote it, this is a test for EQUALITY. It is NOT an assignment. y==sqrt(16-x.^2)-2 If you wanted to assign that r...

8 years ago | 0

Answered
solving for unknown matrix element as function of an undetermined independent variable
Think about it. Write out what you are asking. You have a 2x2 matrix, where each element is a function of the unknown variable E...

8 years ago | 0

| accepted

Answered
How to find which distribution a CDF belongs to?
If all you have is the CDF, there are still things you can do. It would help if you were able to provide data, not just a plot. ...

8 years ago | 1

Answered
Store vector data of not fixed length into a Matrix
You cannot store entire vectors into a double matrix as you tried to do. So this is impossible: A(1)=[2 6 7 9] A(2)=[4 6...

8 years ago | 0

| accepted

Answered
How could I sharpen the parameters of my model?
(I suppose, as long as I am going to spend this much time on a question, I might as well put it in an answer.) Let me expand ...

8 years ago | 0

Answered
How can I delete element ?
x(ind) = [];

8 years ago | 1

Answered
How to plot sin(x) for sin(x)>0, and 0 for sin(x)<=0?
The simplest answer is to consider what max(sin(x),0) does. This will work as long as the function is continuous across the brea...

8 years ago | 1

Answered
Where am I going wrong in this code to find SVD of a matrix
Why do I find this task a little silly? At least, the way you are accomplishing it is driving the wrong way down a one-way stree...

8 years ago | 1

| accepted

Answered
Who can see the vote of an answer or a question?
Who can see them? Are you asking to know who voted for an answer or question, or how many votes something has gotten? Anyone ...

8 years ago | 2

| accepted

Answered
Simplify coefficients on symbolic fraction
Did you try vpa? Yeah, I suppose the name might not be obvious. syms z vpa((360107496127452805861054873600*z + 4254272...

8 years ago | 7

Answered
Matrix grouping result of combinations
Hmm. How about this as a start, a constructive way to build the array you seem to be asking to create. I'll presume that the ...

8 years ago | 2

| accepted

Answered
I have an equations system - 14 equations, 14 variables. Matlab cannot solve it. Why?
Do ALL highly complex, nonlinear systems of equations have an analytical solution? (No.) And even if a solution does exist, i...

8 years ago | 0

Answered
How to use mvnrnd to generate a normal distribution within +- 1 sigma rather than the whole range (+- 3 sigma)
It is not normal if you restrict the range. Period. So the result of any such operation will NOT be normally distributed. PERIOD...

8 years ago | 1

| accepted

Answered
Plotting Bivariate Normal distribution pdf using random numbers generated from the distribution.
To me, the simple way to plot an approximate pdf from a random sample would come from a 2-d histogram. X = mvnrnd([0 0],eye...

8 years ago | 0

Answered
Find value of beta
If these are known: x=4; c1=0.73 ; c2=151 ; c3=0.58 ; c4=0.002 ; c5=2.14 ; c6=13.2 ; c7=18.4 ; ...

8 years ago | 1

Load more