Month: May 2024
After adding a command to get dotted line graph I am still getting solid line only in the legend i am getting dotted line
plot(x1 – x2,F,’:g’);
xlabel(‘Displacement(m)’)
ylabel(‘Spring Force(N)’)
legend(‘F’)plot(x1 – x2,F,’:g’);
xlabel(‘Displacement(m)’)
ylabel(‘Spring Force(N)’)
legend(‘F’) plot(x1 – x2,F,’:g’);
xlabel(‘Displacement(m)’)
ylabel(‘Spring Force(N)’)
legend(‘F’) graph MATLAB Answers — New Questions
I have a nonlinear equation with a symbolic variable and cant solve it.
Hi, I have to plot a phase diagram of an implicit equation, but in there lies a function p that depends nonlinearly on one of the variables (alpha), so I am trying to solve the nonlinear equation in terms of my variable alpha. However, I only get a solution in terms of a z2 variable. Can anybody help? Here is the code
n = 2.1;
alpha0 = 0;
syms p alpha
eqn = p^(n+1) – alpha0*p^n + p -(alpha0 + alpha) == 0;
sol = solve(eqn,p);
For n = 2 works just fine, but not for n = 2.1, which prompts my problem.Hi, I have to plot a phase diagram of an implicit equation, but in there lies a function p that depends nonlinearly on one of the variables (alpha), so I am trying to solve the nonlinear equation in terms of my variable alpha. However, I only get a solution in terms of a z2 variable. Can anybody help? Here is the code
n = 2.1;
alpha0 = 0;
syms p alpha
eqn = p^(n+1) – alpha0*p^n + p -(alpha0 + alpha) == 0;
sol = solve(eqn,p);
For n = 2 works just fine, but not for n = 2.1, which prompts my problem. Hi, I have to plot a phase diagram of an implicit equation, but in there lies a function p that depends nonlinearly on one of the variables (alpha), so I am trying to solve the nonlinear equation in terms of my variable alpha. However, I only get a solution in terms of a z2 variable. Can anybody help? Here is the code
n = 2.1;
alpha0 = 0;
syms p alpha
eqn = p^(n+1) – alpha0*p^n + p -(alpha0 + alpha) == 0;
sol = solve(eqn,p);
For n = 2 works just fine, but not for n = 2.1, which prompts my problem. nonlinear, nonlinear equation, symbolic variable MATLAB Answers — New Questions