Unidentified variable or function of x

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

Asked:

on 30 Oct 2022

Edited:

on 30 Oct 2022

Community Treasure Hunt

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

Start Hunting!