Answered
How do you perform generic value in MATLAB?
If you do not know those parameters, then you don't know them. What "simulation" would you run? What meaning does it have? At b...

5 years ago | 0

Answered
how to solve a system of integro-differential equations?
Last time I checked, int(exp(-t),[-inf,T]) is both trivial to integrate, and yet essentially infinite, for ANY finite value of T...

5 years ago | 1

Answered
Sketch the analytical solution, using the formula below. HELP
I might guess that you actually meant to MULTIPLY t with the value (n-1) in this exprssion: x(n+1)=x(n-1)*cos(w*t(n-1))+(v0/w)*...

5 years ago | 0

| accepted

Answered
Cholesky factorization: How to change code to produce A = L' * D * L instead of A = L * D * L' .
The trivial solution is... You want to compute a U*D*U' factorization, where U is UPPER triangular. MATLAB already offers LDL, ...

5 years ago | 0

Answered
Write a MATLAB script (maksimin) that calculates the maximum and minimum values in an input vector. You should consider that the input vector can have any length
Do you know how to work with character strings, how to build them from components? You should. TRY IT! For example, A = 'Fred';...

5 years ago | 0

| accepted

Answered
Why does matrix inversion cause extremely large values to appear in the inverted matrix?
As others have said, a singular stiffness matrix typically means one of several things in a Finite Element problem. It might b...

5 years ago | 0

Answered
plotting graph with multiple uknown variables
Sorry. If you have no idea what all of those parameters are, then there is nothing you can plot. A plot requires NUMBERS. You ha...

5 years ago | 0

Answered
Matlab 2012b om m1
This is not a problem of Java version, although it might be a factor, if it were not that MATLAB is not compiled to run on that ...

5 years ago | 0

Answered
finding the points which results in zero in simple formula
You have the phi and theta. Now you want to know, for which values of phi and theta, you will have y==0, exactly? DON'T USE A L...

5 years ago | 0

| accepted

Answered
Can't find sat() function
which sat -all sat.m is not found in any MathWorks provided toolbox. You may need to ask your instructor, since they may have ...

5 years ago | 1

Answered
How to code this equation to find y?
Is the result that MATLAB provided a valid result? syms y(x) ode = diff(y,x,2)+2*diff(y,x)+5*y == 1+x*exp(x) ySol(x) = dsolv...

5 years ago | 0

Answered
Why is sec(theta) different than sqrt(1+tan(theta).^2) in MATLAB?
First, what you have written is NOT an identity. The identity is sec(theta)^2 = 1 + tan(theta)^2 There IS a difference! Y...

5 years ago | 1

Answered
Why does MATLAB give an error with this instruction? x(0.14*100)=5;
Is there a bug in MATLAB? Sigh. If I had a nickel for every time someone has asked that question, I would be wealthy. (It does n...

5 years ago | 2

| accepted

Answered
Linprog gives a solution but one constraint is not satisfied (no notification)
Not possible to know, since you don't actually show us the code you wrote. You may have done something wrong. Or it may just be...

5 years ago | 1

Answered
make a data plot
Easier than you think. First, write a little function that will plot a bar of fixed height, between two points on the x axis. I...

5 years ago | 0

| accepted

Answered
Multiplication of large matrix with its transpose
Best is to never create it at all. Instead, use mathematics to work with it. And that depends on what you will do with this matr...

5 years ago | 1

| accepted

Answered
Forcing positive values when solving system of linear equations
Sorry. PINV does not allow you to constrain the sign of your estimates. You can use LSQNONNEG, which does allow you to do that,...

5 years ago | 1

| accepted

Answered
How can I convert the shape of one class to another using Matlab?
All you have is a picture, not a shape. Until you express those boundaries as a shape of some sort, you cannot do anything. Sin...

5 years ago | 0

Answered
Solving ODE with non-constant parameters using ode45
Trivial. In fact, there are many ways I could do this. As an example, i'll define it in terms of three other parameters, S,u an...

5 years ago | 0

Answered
Matlab function deprecates its inputs
Your function is copied below. Answers actually uses R2021b, so we can test your assertion here. param_init('ExternalSubject') ...

5 years ago | 0

| accepted

Answered
why does 'sum' and 'trapz' function show same result ?
Um, no. Sum is not the same as trapz. Are they close, under some circumstances? Well, yes. format long g sum(B) ans = 591258...

5 years ago | 1

| accepted

Answered
How to obtain union of three shapes given the coordinates
Tivial. generate the three objects as polyshapes. Compute the union. For example... cy_l=0.3; % length of rectangle outside...

5 years ago | 0

Answered
How to get the source code of a function
If the function is compiled, then no. Sorry, but no. MathWorks does not give out code, unless you work for them. So sure, just g...

5 years ago | 1

Answered
Contour plot of x and y
Since you have not (yet) shown me any data or answered my questions, I'll offer one simple solution, just making guesses about t...

5 years ago | 0

Answered
Contour plot of x and y
I'm not sure what you mean. A contour plot is a specific type of plot. A contour is a level surface, that is, the set of points...

5 years ago | 0

Answered
How to resolve problem in for loop?
Is "a" a number, in the form MATLAB will expect it? NO! a is a BigInteger number. You cannot use the colon operator on a. a=jav...

5 years ago | 1

Answered
Find unique values in a pseudo inverse based on SVD
Um, in general, ALL of the values in the computation will be non-unique. In some simple, RARE cases, that will not be true. How ...

5 years ago | 0

| accepted

Answered
Multiplication on the diagonal of a submatrix
You really want to learn better ways to time things than to use tic and toc. They are not very accurate for short times. Not too...

5 years ago | 1

| accepted

Answered
Iteratively defining and solving equations
It is a LINEAR system of equations. You don't want to be solving them iteratively. You need to learn how to define the matrix th...

5 years ago | 0

Answered
How to generate two random where the distance between is within a range
Can you "say" that? Um, yes. But then you need to write the code. Given one known point, now you want to find another randomly ...

5 years ago | 0

| accepted

Load more