Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 1

Respondida
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+...

más de 3 años hace | 1

| aceptada

Respondida
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,...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 1

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 1

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

Respondida
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, ...

más de 3 años hace | 1

Respondida
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? ...

más de 3 años hace | 1

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

Respondida
precision of function: UNIQUE
help uniquetol

más de 3 años hace | 0

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

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
'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...

más de 3 años hace | 1

| aceptada

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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)....

más de 3 años hace | 0

Respondida
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 ...

más de 3 años hace | 0

Cargar más