Respondida
How to calculate the equation with letter and variable
Use <https://www.mathworks.com/help/symbolic/subs.html?s_cid=ans2doc_man_link subs> to substitute values, as shown below. You on...

más de 9 años hace | 2

Respondida
Solving a System of 2nd Order Linear ODE? "Explicit solutions cannot be found"
Since you're starting with floating point numbers, you should try a numerical simulation using ode45 or other numeric ODE solver...

más de 9 años hace | 0

Respondida
How can I find ranges of inequalities using solve in live script
Try the 'ReturnConditions' option: syms x ineq = x^4 +7*x -3*x^3 -6 > 0; S = solve(x^4 +7*x -3*x^3 -6 > 0, x,'IgnoreA...

más de 9 años hace | 1

| aceptada

Respondida
How can I extract an expression for a variable from an equation?
Can you post your code? And, try using the "solve" function. To declare the equation, use "==". sym x y z eqn = sin(z...

más de 9 años hace | 1

Respondida
Create an symbol array
Starting R2010b >> A = sym('A',[2 3]) A = [ A1_1, A1_2, A1_3] [ A2_1, A2_2, A2_3] >> A = sym('A%d%d',[2 3]) ...

más de 9 años hace | 0

Respondida
Substition of variables in a matrix
This works. Example is below. Can you provide the code for getting Adiff? Are you creating Xi,Yi,Zi first and using them to crea...

más de 9 años hace | 0

Respondida
How to plot inequality?
Here's an example of plotting an inequality. You'll need to adapt it. >> v = -5:0.1:5; [x,y] = meshgrid(v); % create a ...

más de 9 años hace | 1

Respondida
create symbolic expressions when using ndgrid
If I understand correctly, you are trying to do something like this? >> A = sym('A%d',[1 4]); B = sym('B%d',[1 4]); >...

más de 9 años hace | 0

Respondida
Symbolic variable from a Script/Workspace to Simulink function for calculations
By "only numeric matrix", I assume that your Block Parameter only accepts numbers? If so, can you convert the symbolic matrix to...

más de 9 años hace | 0

Respondida
String to Sym deprecated
As the warning says, please don't use string input. Is this helpful? syms a b = sym(a+1) If you store strings, then u...

más de 9 años hace | 0

Respondida
System of parametric equations, symbolic solution
The MATLAB "solve" ignores special cases. Here, it ignores the case "b = c" and thus cannot find a solution. Since it cannot fin...

más de 9 años hace | 0

Respondida
Precise conversions from double to symbolic
Use quotes to keep your input exactly as it. r = sym('1.78503') But you don't get the fractional representation since yo...

más de 9 años hace | 0

Respondida
Problem with "Conversion to logical from sym is not possible."
Since you MATLAB isn't new enough to have piecewise, you can use heaviside as a substitute for piecewise. FDInt = 1/(0.27+e...

más de 9 años hace | 0

Respondida
How to install symbolic toolbox if I have a student version of matlab
If this command works, you already have it. syms x If it errors, then add it from Addons: <https://www.mathworks.com/hel...

más de 9 años hace | 4

Respondida
Integrate a piecewise function (Second fundamental theorem of calculus)
This is the same question as <http://www.mathworks.com/matlabcentral/newsreader/view_thread/347103?s_cid=ans2doc_man_link http:/...

más de 9 años hace | 3

Respondida
replace expression of variables with an equivalent variable?
Your substitution can't work because you defined "theta_v" to be "omega*t + phi_v". So you're just substituting "omega*t + phi_v...

más de 9 años hace | 1

| aceptada

Respondida
Trigonometric Power Reduction Formulas using Symbolic Matlab
Here, you want to change the input from "sin" from "a" to cos with "2*a". Essentially, you want make the argument of the functio...

más de 9 años hace | 4

| aceptada

Respondida
symbolic of cos with power
Here, you want to change the input of "cos" from "x" to "2*x". Essentially, you want make the argument of "cos" more complicated...

más de 9 años hace | 0

Respondida
Numerical values of integrals
Use "vpaintegral" introduced in 16b: <https://www.mathworks.com/help/symbolic/vpaintegral.html?s_cid=ans2doc_man_link https://ww...

casi 10 años hace | 2

Respondida
Getting Both Symbolic Output and Numeric Output
Calculate the answer symbolically and substitute values in at the end. Start with symbolic matrices and variables ... sy...

casi 10 años hace | 0

| aceptada

Respondida
syms a b c x is not working with MuPAD
The "syms" command is for MATLAB and not for MuPAD.

casi 10 años hace | 0

Respondida
How do I place a two-lined title, x-label, y-label, or z-label on my plot?
Replace spaces with "\newline". labels = {'line1 line2','line1 line2','line1 line2'}; labels = cellfun(@(x) strrep(x,' '...

casi 10 años hace | 22

Respondida
vpasolve not returning an answer, just Empty sym: 0-by-1
Your equation is never satisfied. Hence, "vpasolve" returns empty sym. Here's how to figure that out. First, declare your equ...

casi 10 años hace | 2

| aceptada

Respondida
How do you create a symbolic function that takes a vector input?
You almost got it right! In fact, you just need to _delete_ a line of code. Don't declare "a" as a 1x3 vector because "a" can be...

casi 10 años hace | 0

| aceptada

Respondida
Strange ilaplace answer?????
Use "vpa" to solve for the roots and get a result in terms of "t" as documented here: <http://www.mathworks.com/help/symbolic/ro...

casi 10 años hace | 7

Respondida
How can I plot the region for two inequalities?
Here's how to numerically evaluate the conditions and visualize them. v = -5:0.01:5; % plotting range from -5 to 5 [x y]...

alrededor de 10 años hace | 7

| aceptada

Respondida
How can I use a ifft function to a symbolic variable ?
I'm assuming your error said: Undefined function 'ifft' for input arguments of type 'sym'. As the error message says, t...

alrededor de 10 años hace | 0

Respondida
Remove or ignore a particular row while reading from text files?
Could you find all elements of Cstr with '[7E8]' and delete them? Cstr = textread(file2{i2}, '%s', 'delimiter', ''); idx...

alrededor de 10 años hace | 0

Respondida
MuPAD Fails to Solve a Simple Inequality
solve's answer is correct. You can verify it as: syms X ndot4B xiA ndot4A xiB eqn = X*ndot4B*xiA - ndot4B*xiA + X*ndot4A...

alrededor de 10 años hace | 0

Respondida
Jacobi polynomials in MATLAB
Your first argument "j-3" is negative for j=0,1,2. That's what the error message says: A nonnegative integer or a symbol is expe...

alrededor de 10 años hace | 0

Cargar más