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

meer dan 7 jaar ago | 2

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

meer dan 7 jaar ago | 0

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

meer dan 7 jaar ago | 1

| accepted

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

meer dan 7 jaar ago | 1

Answered
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]) ...

bijna 8 jaar ago | 0

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

bijna 8 jaar ago | 0

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

bijna 8 jaar ago | 1

Answered
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]); >...

bijna 8 jaar ago | 0

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

bijna 8 jaar ago | 0

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

bijna 8 jaar ago | 0

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

bijna 8 jaar ago | 0

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

bijna 8 jaar ago | 0

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

bijna 8 jaar ago | 0

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

bijna 8 jaar ago | 4

Answered
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:/...

bijna 8 jaar ago | 3

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

bijna 8 jaar ago | 1

| accepted

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

bijna 8 jaar ago | 4

| accepted

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

bijna 8 jaar ago | 0

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

bijna 8 jaar ago | 2

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

ongeveer 8 jaar ago | 0

| accepted

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

ongeveer 8 jaar ago | 0

Answered
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,' '...

ongeveer 8 jaar ago | 22

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

ongeveer 8 jaar ago | 2

| accepted

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

ongeveer 8 jaar ago | 0

| accepted

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

ongeveer 8 jaar ago | 7

Answered
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]...

meer dan 8 jaar ago | 7

| accepted

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

meer dan 8 jaar ago | 0

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

meer dan 8 jaar ago | 0

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

meer dan 8 jaar ago | 0

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

meer dan 8 jaar ago | 0

Load more