Answered
New to matlab, trying to understand basic functions still
If you are this new to MATLAB, then you seriously need to spend some tie reading the tutorials available. The MATLAB Onramp is ...

26 dagar ago | 0

Answered
ITERATIVE SOLUTION OF ONE UNKNOWN VALUE IN AN EQUATION
Hint: try solving for t. syms x y t tsol = solve(x == cos(t) - y*sin(t),t) So there are two solutions. Much of the time, a f...

26 dagar ago | 0

| accepted

Answered
Unable to find explicit solution
It is not just that MATLAB could not solve it. In fact, it is trivially easy to write down equations where there is no algebraic...

26 dagar ago | 0

| accepted

Answered
Using biterr with negative numbers
Did I not just answer how to solve essentially the same problem, but in the other direction? Read my answer to your last questio...

28 dagar ago | 0

Answered
Do you know how to convert existing graph into coding. I don't have the equations. I have the graph picture in my textbook but i need it to include in my matlab apps
I'm sorry. There is no magic way to know the formula of a given graph in a textbook. And no magic way to just turn that graph in...

28 dagar ago | 1

Answered
How do I generate a random number vector composed of just 1 and -1
The trick is always to start with something you can do, and see if there is a way to modify it so it will work. For example, yo...

28 dagar ago | 1

Answered
I am a university student and this is my university email: redacted@eng.zu.edu.eg Can I get Matlab for free? If possible, how do I get the activation key?
I assume you are a student in Egypt, given the address. MATLAB is not offered for free. However, you need to contact your unive...

30 dagar ago | 0

Answered
Solve these equations to get x and y in normal number
USE DOUBLE. You already saw that in the answer to your last question. syms x y equ1 = 2760*sind(200)+x*sind(107.5)+y*sind(307....

ungefär en månad ago | 0

Answered
How to deal with the Hermitian matrix that is meant to be positive semidefinite but turned out to have negative eigenvalue due to numerical issues?
This is not a question of a precision you can set. You can download my nearestSPD function from the file exchange. It finds the...

ungefär en månad ago | 1

| accepted

Answered
i was calculate using gauss jacobi method with 4x4 matrice, why does NaN appear? what should i do?
You write a function that allows you to pass in A and B, but then you define A anb B in the function? Sigh. I think you do not u...

ungefär en månad ago | 0

Answered
Graphing changing constants using for loops
Why do you think it is not? Ok, there are multiple problems in your code. First, maybe I should ask what you think this line do...

ungefär en månad ago | 0

| accepted

Answered
Best practice: should a function return a row vector or a column vector
Let me disagree with a basic assumption of your question, in that there must be some best practice at all on this. Instead, I'll...

ungefär en månad ago | 2

Answered
I don't understand why this script is outputting imaginary values
Hint: the log of a negative number is imaginary. Hint: The sqrt of a negative number is imaginary. Do you take logs in there?...

ungefär en månad ago | 1

Answered
I need help figuring out the mistake in my function approximation
Avoid the use of the normal equations as you used, i.e., this crapola that you called the least squares method. Backslash is jus...

ungefär en månad ago | 0

Answered
quadratic curvature doesn't went smoothly
load steam % Fit a first degree polynomial to the data. [p s]= polyfit(x,y,2); y1=polyval(p,x); % PLOTTING DATA plot(x,y,'o...

ungefär en månad ago | 0

Answered
surf for n-dimensional cartesian matrix
You cannot do so. That makes no sense at all, sorry. You actually have a FOUR dimensional problem, thus W(x,y,z). This is beca...

ungefär en månad ago | 0

Answered
problem with symbolic factorization with two symbols
That you want to see a simple set of factors is not relevant. You essentially need to obtain the roots of this cubic polynomial ...

ungefär en månad ago | 1

| accepted

Answered
fmincon: optimize till nonlinear condition is false
It does not just skip" the interval. It probably never saw it. An optimizer does not plot your function. It has no clue what it ...

ungefär en månad ago | 1

Answered
Save text of script in .mat file?
Is it really a common problem? Not that I've ever seen any need for in 35 years of MATLAB use, nor in any question I can recall ...

ungefär en månad ago | 0

Answered
The function ''vpasolve'' cannot find a solution with specified range even if its option 'random' was set to true, however the specified range does include 1 solution.
d1=-8;d2=-1;d3=6; t1=2.2187;t2=1.2392;t3=1.4223; v=6.038;a1=v*t1/2;a2=v*t2/2;a3=v*t3/2; c1=d1/2;c2=d2/2;c3=d3/2; b1=sqrt(a1^...

ungefär en månad ago | 1

Answered
Printing a calculated function.
You CANNOT. At least, given only the vector of values, there are infinitely many possible functions that may have generated them...

ungefär en månad ago | 0

Answered
Finding Solution to Inequality in Matlab
Simple enough. I'll just work with eqn6 here. syms tau beta lambda theta Solx eqn6 = (1-tau)*(1-theta)/((1-beta)*(1-lambda))> ...

ungefär 2 månader ago | 0

Answered
How to create loop for gaussian quadrature
What has any of this to do with a loop anyway? There are no loops seen. You have hard coded what appear to be some basic Gauss-L...

ungefär 2 månader ago | 0

Answered
Solving an initial value problem when one of the initial values is unknown
Simple enough, since this ODE has an analytical solution, even without any boundary conditions specified. (If the ODE did not ha...

ungefär 2 månader ago | 0

Answered
Find files path location and removal.
I think I understand what you have done here, but I may be wrong. Never store files in the MATLAB toolbox directories. NEVER do...

ungefär 2 månader ago | 0

Answered
creation of a circular plane passing through three nodes and for central node
It does not pass through those other points, because ... your code is wrong. Seems simple enough. What did you do incorrectly? ...

ungefär 2 månader ago | 0

| accepted

Answered
Is there a way to make matlab faster?
We don't know if you just want it to run faster. After all, everybody wants their code to execute in zero time on an infinitely ...

ungefär 2 månader ago | 1

Answered
How do I get largest distance between two rows in an nx3 matrix?
As long as there are not too many points, pdist2 will work, and be easy to use. Just choose the largest of all distances found. ...

ungefär 2 månader ago | 0

Answered
Outer product of two 512*512*300 matrices
Since there has been no response to my request for clarification... The request was for an outer product. An outer product is a...

ungefär 2 månader ago | 1

Answered
Finding a way to cleanly show double data points in a plot
You want to show two different points at different locations on the x axis. But currently you have them with the same values for...

ungefär 2 månader ago | 0

Load more