Question


I know this is not a technical question.
I have been in the forum for more than a month , I took part in some contributions , I gained some reputation but still I haven’...

8 years ago | 0 answers | 0

0

answers

Answered
In symbolic optimization, is it possible to have symbolic results?
All the parameters in the equation have to be defined as symbolic variables in order to get your desired result.

8 years ago | 0

Solved


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

8 years ago

Answered
How can I replace an expression in a symbolic function with a new symbolic variable?
syms A B C f = sqrt(A.^2+ A*B) subs(f,A*B,C) actually this works

8 years ago | 1

| accepted

Answered
double integral in MATLAB, limits as variable?
fun = @(x,y) x.*y; xmin = 0; xmax = 5; ymin = 0; ymax = @(x) 5*x; Q = integral2(fun,xmin,xmax,ymin,ymax,'Method','tiled')

8 years ago | 1

Answered
I want to put this equation in MATLAB and write a report about it, I will need at least one graph, can anyone please give me with the code to do so?
syms y(t) ode=2*(y-1)*diff(y)==3*t.^2+4*t+2 cond=y(0)==-1; y(t)=dsolve(ode,cond) fplot(y(t))

8 years ago | 1

Answered
How do I change the order symbolic variables are displayed in the output in a Matlab Live Script?
Hi! There’s in built latex option in matlab . As soon as you define every variable as syms. For example syms x y y=x.^2-...

8 years ago | 0

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

8 years ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

8 years ago

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

8 years ago

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

8 years ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

8 years ago

Answered
Can't use yyaxis "No appropriate method, property, or field 'Pin' for class 'matlab.graphics.shape.internal.ScribePeer'. Error in yyaxis"
syms x y yyaxis left fplot(2*x) yyaxis right fplot(-2*x) This example works.

8 years ago | 0

| accepted

Question


'I get error saying Input function must return 'double' or 'single' values. Found 'sym'.' because max is defined in symbolic variable, how to overcome this issue??
syms x y b fun = @(x,y)x.^2; subplot(2,1,1) ezsurf(fun) xmin = 0; xmax = 4; ymin =0; ymax = @(x) b.*sqrt(x)...

8 years ago | 1 answer | 0

1

answer

Answered
how to plot a sym function with constant function such as x=2(vertical line) & y=3(horizontal line)?
syms x y eqn=y eqn1=x fplot(subs(eqn,y,3)) hold on fplot(subs(eqn1,x,2))

8 years ago | 0

| accepted

Question


how to plot a sym function with constant function such as x=2(vertical line) & y=3(horizontal line)?
syms x y fplot((@x)x==2) hold on fplot((@y)y==3)

8 years ago | 1 answer | 0

1

answer

Answered
how to view struct with fields?
<</matlabcentral/answers/uploaded_files/119886/Screen%20Shot%202018-06-02%20at%2010.45.37%20AM.png>>

8 years ago | 0

Question


how to view struct with fields?
syms x(t) y(t) v(t) m c g s=symengine disp ('1)------------------------------------------') cond1=x(0)==0; cond2=diff(x,t)==...

8 years ago | 2 answers | 0

2

answers

Question


I get explicit solution not found , how to view the solution ?
syms x(t) y(t) dx = diff(x,t) dx2=diff(x,t,2) dy = diff(y,t) dy2=diff(y,t,2) eqns = [dx2 + dx2 == y - 2...

8 years ago | 1 answer | 0

1

answer

Question


I can't view the solution. if anyone could guide me, I would be thankful.
syms t x y assume(t>0) a= solve([x-t==0,y-0.5*t.^2==0])

8 years ago | 1 answer | 0

1

answer