Answered
plotting of 2D surfaces
Totally CONFUSING. X= [1 0.9932 0.9735 0.97 0.9702 0.9479 0.915 0.913 0.9002 0.8877 0.8893 0.8927 0.881...

3 years ago | 0

Answered
Precision and indices must be positive integers
Why did this line gather an error? kd = (Ppeak-0)/(times(end) - t); The end operator must be used within an array inde...

3 years ago | 0

Answered
Determine positions of projected points onto an ellipse
Simple. Just download my distance2curve utility, found on the file exchange. For some example data, I'm not sure what you mean...

3 years ago | 2

Answered
Can someone explain to me why the x parameter at a certain point becomes negative and why certain arrays start filling with complex numbers?
Look carefully at what you are doing. I can only guess what your variables might mean. ind = 130:160; table(x(ind)',y(ind)',ve...

3 years ago | 0

Answered
I'm writing a code to find the intersection points of two circles.
You had a problem in the use of syms here, causing an error. syms x y A = [x y]; B = [x y]; C = [x y]; D = [x y]; AB = nor...

3 years ago | 0

Answered
I need to convert a vector into a matrix using a function, but I cannot use reshape or any build functions.
You need to understand that passing in 12 separate arguments to a function is NOT the same thing as passing in a vector of lengt...

3 years ago | 0

Answered
How to convert asin function to atan2 function?
What you are asking does not make complete sense. Actually, relatively little sense at all, really. Sorry, but let me explain in...

3 years ago | 0

Answered
3d surface plot of an elliptic shape
If all you want to do is plot the ellipsoid, then you are doing it the wrong way. Just use fimplicit3. You never need to compute...

3 years ago | 0

Answered
How do I find the unknowns from a strut equation
A=[3 5 -9; -1 -1 2; 3 4 -8]; B=[1; 0; 1]; syms k1 k2 k3 Lc % Lc will be used for lambda in part c; K=[k1; k2; k3]; % state fee...

3 years ago | 1

Answered
a line cut itself
Please stop asking the same question. This is just a continuation of your last question. syms T Fx=3*T.^2-12*T+16; Fy=2-9*T+...

3 years ago | 1

| accepted

Answered
How to convert ode45 to Differential Algebraic Equations?
I would like to fly to Los Angeles. However, I don't want to take a plane, and since I have often taken a train to destinations,...

3 years ago | 0

Answered
Existing MATLAB projects to describe the lunar spin
The moon DOES rotate, very much so. It just rotates in a very specific manner, to match its rotation around the earth. So we thi...

3 years ago | 0

| accepted

Answered
errors running a function
I would read the error message. It said "Error using filter2 N-D arrays are not supported." So, first, is your array more th...

3 years ago | 0

| accepted

Answered
error running a function
which fftshow -all fftshow is not a function that is part of MATLAB, or in any of its toolboxes. Perhaps you found it in some c...

3 years ago | 0

| accepted

Answered
Is this only an issue because I'm using R2020b?
This capability was only added quite recently into MATLAB. (I could check, but I'm pretty sure it was after R2020.) featureI...

3 years ago | 0

| accepted

Answered
How can I constraint the solution to one set of roots
How does an optimization based root finder work? That is, NOT roots, or tools like solve. The analogy I often offer is that of s...

3 years ago | 1

Answered
is this code correct?
Why do you think something is wrong? :) I really like the way Answers shows a symbolic expression in a nice viewable form. Ofte...

3 years ago | 0

Answered
How does one sum 16, 3x3 matrices as efficiently as possible?
First, DON'T store all of those matrices as different arrays. Store tham as one 3-dimensional array, as a 3x3x16 array. Then th...

3 years ago | 1

Answered
A positive root of an equation
syms M r0 epsilon rho k1 K b m alpha omega mu k2 eta sigma P = (r0*(1+k1*(mu+(rho*M)/(1+M))*(1-k2*(mu+(rho*M)/(1+M)))))*(eta+(e...

3 years ago | 0

Answered
Getting errors for equations while linear fitting.
What is hsline? help hsline It is not found in any MATLAB toolbox. So if hsline is code you found somewhere, or whatever, then...

3 years ago | 0

Answered
matrix 0f {0,1}
About as confusing a question as I could imagine, but after reading it several times, I will make a guess. I think in the end, ...

3 years ago | 1

Answered
Creating a matrix such as a = [1 1 1 1 1 1 1; ... 1 2 2 2 2 2 2; ... 1 2 3 3 3 3 3; ... 1 2 3 4 4 4 4; ... 1 2 3 4 5 5 5; ... 1 2 3 4 5 6 6; ...
Hint #1. Can you just create the matrix from scratch each time? So, is there a simple formula for a(i,j) in the order n matrix? ...

3 years ago | 1

Answered
How does matlab get the combinations that meet certain conditions in the matrix
Assuming you want to solve this problem: 2*A1 = A2 A1 + A2 = A3 then you could use the ndgrid solution, as shown by Wal...

3 years ago | 0

Answered
2nd order relationship between density and altitude using curve fitting.
z = [6377 6378 6379 6380 6381 6382 6383 6385 6387 6392 6397 6402]; %km rho = [1.225 1.112 1.007 0.9093 0.8194 0.7364 0.6601 0.5...

3 years ago | 0

| accepted

Answered
How can I make a fuction that takes two points and returns the coefficients a, b
Surely this is homework. So I hope people do not do your homework for you. At the same time, it is easy to find the formulas onl...

3 years ago | 0

Answered
precision of function: UNIQUE
help uniquetol

3 years ago | 0

Answered
Help making a matrix table
Can you create a matrix of all ones? Consider the function triu. Read the help. Look at the examples.

3 years ago | 0

Answered
Out of Memory error when resizing 3D volumes
Simple. If you are running out of memory, then just get more memory. An image of that size 2080*2080*2145 has almost 10 billi...

3 years ago | 0

| accepted

Answered
Possible to Disable Weight Rescaling for Matlab Curve Fitting?
No matter how you look at it, weights MUST be relative. A weight effectively says that data point i is K/L times as important as...

3 years ago | 0

Answered
How to parametrize a function ?
syms x y eq = sqrt(y) == x; syms t real ysol = solve(subs(eq,x,t),y,'returnconditions',true) The constraint tells you that t...

3 years ago | 0

| accepted

Load more