Réponse apportée
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...

plus de 3 ans il y a | 1

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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, ...

plus de 3 ans il y a | 1

Réponse apportée
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? ...

plus de 3 ans il y a | 1

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
precision of function: UNIQUE
help uniquetol

plus de 3 ans il y a | 0

Réponse apportée
Help making a matrix table
Can you create a matrix of all ones? Consider the function triu. Read the help. Look at the examples.

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
'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...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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)....

plus de 3 ans il y a | 0

Réponse apportée
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 ...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 1

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 1

Réponse apportée
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 ...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 1

| A accepté

Charger plus