Unidentified variable or function of x

5 views (last 30 days)
seoung gi Sin
seoung gi Sin on 30 Oct 2022
Edited: KSSV on 30 Oct 2022
function [x]=cake(p,q,r)
a=diff(p,x)
b=diff(q,x)
c=exp(-1*int(p,x))
p2=diff(((a+b)*c),x)/((a+b)*c)
q2=((a+b*c)*(-c))
r2=(((a+b)*c)*diff(r,x))-((diff(((a+b)*c),x))*((a+b)*c))
end
I am trying to make an algothrism but x variable is unidentified.
Help.

Accepted Answer

KSSV
KSSV on 30 Oct 2022
Edited: KSSV on 30 Oct 2022
function x=cake(p,q,x)
a=diff(p,x)
b=diff(q,x)
c=exp(-1*int(p,x))
p2=diff(((a+b)*c),x)/((a+b)*c)
q2=((a+b*c)*(-c))
r2=(((a+b)*c)*diff(r,x))-((diff(((a+b)*c),x))*((a+b)*c))
end

More Answers (0)

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!