Beantwortet
'polyfit' for parametrized curves.
Can polyfit be made to solve this in a parameetric form? NO. Why not? Because even if it COULD be used for that purpose, the res...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Boolean operations with polyshape objects
Computers are such literal things. They do what you tell them to do, not what you want them to do. The fix lies in the mind read...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Observation: sortrows() blows up when attempting to sort empty cells
output = cell(5,5); output(1:3,1:5) = {'1'}; output(4:5,1:5) = {''} sortrows(output) Gosh. I must be using a different versi...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Moment diagram code error when using .^2
You SAID that you understand the need for the .* and .^ operators. Then we see this: M=-(UDL/2)*(x-0).^2*(x>0) + (UDL/2)*(x-4)....

mehr als 3 Jahre vor | 0

Beantwortet
plot two implicit functions in one figure
Show what you have tried. If nothing, why not? First, apparently you know what an implicit function is. So have you tried using ...

mehr als 3 Jahre vor | 0

Beantwortet
How do I make a specific range of numbers and increment?
What does any of the other information have to do with anything? That is, we have no interest in the values of Q, R, or kJ, or a...

mehr als 3 Jahre vor | 0

Beantwortet
Help with non linear equations.
syms mu sigma alpha eq(1) = 8.07 == mu - sigma + sigma*(1-0.1)^(-1/alpha) eq(2) = 11.82 == mu - sigma + sigma*(1-0.5)^(-1/al...

mehr als 3 Jahre vor | 1

Beantwortet
I deleted part of the trapz function code, how do I fix it?
@Bora Eryilmaz gives the code. Thanks for having done that. In the long term though, this points out why you should strenuously...

mehr als 3 Jahre vor | 0

Beantwortet
How to solve an ecuation without symbolic variables?
I won't do homework. But I'll give you a hint or two. First, what does the mean value theorem tell us for integrals. It says th...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Optimization of a multivariable function within given solution space
100 variable problems are hugely more complex than 3 variable problems on a very limited search space. You can often solve the s...

mehr als 3 Jahre vor | 1

Beantwortet
Mirror a point cloud (nx3 matrix) with respect to a plane
Pretty simple really. The YZ plane lies at X == 0, and is perpendicular to the x axis. So just negate the value of x, in each ...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
New to matlab and I do not understand given code
As much as I dislike doing homework for students, this is a case where I will relent, because it is very uncear why one would su...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Is there a function to find the paired factors of an integer?
allfactorpairs = @(n) [divisors(n)',n./divisors(n)']; allfactorpairs(16) If you want only those pairs where the first elemen...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to detect cluster of radial lines which are generated from same point ?
Surely there is a tool you can find in image processing to search for lines. Use it. Find all lines in the image. For EACH dark...

mehr als 3 Jahre vor | 0

Beantwortet
Symbolic solution for intersection points between a torus and a circle. How to make it concise? (for rewriting to C++).
How would I do it? Simple enoiucgh. The equation of a torus is easy to write in a parametric form, so as a function of two angle...

mehr als 3 Jahre vor | 0

Beantwortet
new interface for QR decomposition in Matlab 2022a
Yes. You are correct, in that QR now returns only the upper triangular factor. A = rand(5,3); result = qr(A) In the release h...

mehr als 3 Jahre vor | 0

Beantwortet
Polyfit coeffs weird output
You don't really need to show anything more than this: [p,s] = polyfit(x1,y,15); A degree 15 polynomial. That means the equati...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
how to derivate an equation of x and y without taking any variable constant?
Specify that y is a function of x. You o so like this: syms y(x) Now you can differentiate that expression with respect to x. ...

mehr als 3 Jahre vor | 2

Beantwortet
while loop keeps running forever
I think you seriously need to spend some time with the MATLAB tutorials. while is not terminated by endwhile A while loop is n...

mehr als 3 Jahre vor | 1

Beantwortet
Power of a binary matrix
This is really pretty simple. Far simpler than you might think. You want to do a powermod operation, on a matrix, so mod(...

mehr als 3 Jahre vor | 1

| akzeptiert

Gesendet


minkowskiSum
Compute the Minkowski sum of any two polygons or polyshapes, convex or concave.

mehr als 3 Jahre vor | 3 Downloads |

0.0 / 5

Beantwortet
Generalized Minkowski Sum calculation
https://en.wikipedia.org/wiki/Minkowski_addition The convex case is quite simple to solve. I could write code for that in a few...

mehr als 3 Jahre vor | 3

| akzeptiert

Beantwortet
I need a graph to be smooth
You asked this question before. I answered it. In fact, you even show the code I wrote. And you accepted my answer then as I rec...

mehr als 3 Jahre vor | 0

Beantwortet
Why does Matlab's divisors function take so long when working on an ordinary integer?
You ALWAYS. ALWAYS. ALWAYS need to consider the arguments for a function. Does it work in double precision, or as a sym? Don't f...

mehr als 3 Jahre vor | 0

Beantwortet
boundry value third order problem
I don't know if this is homework. But it possibly is. So I'll just point you in a decent direction. And if you are going to sol...

mehr als 3 Jahre vor | 1

Beantwortet
Normalizing a set of data to zero
Do you want ALL of those minima to be zero? If so, then you will need to do something especially artful. If all you want is the ...

mehr als 3 Jahre vor | 0

Beantwortet
Random 3D Array of Cylinders with Random Rotation and Fixed Length
THERE IS NO SIMPLE SOLUTION. Accept that. For example, even for as simple a problem as random sphere packing, where you want to ...

mehr als 3 Jahre vor | 0

Beantwortet
Why my polynomial function is wavy
A simple rule applies: Polynomials oscillate. Not infinitely many times. But this is a fundamental nature of polynomials. As the...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
NEED URGENT HELP! Code keeps returning the desired variables as empty 0x1
Must a solution exist for all problems? No. Of course not. Those empty syms are a signal that MATLAB was unable to solve your pr...

mehr als 3 Jahre vor | 0

Beantwortet
Trying to find area under my plot
You don't give your data. You show only a plot. So make a polyshape of it. Then compute the area. t = linspace(0,2*pi,50); x =...

mehr als 3 Jahre vor | 0

Mehr laden