MATLAB: How to find x of y by y of x on a equation i need to find x of y by y of x for example if i have y = 2*x i need to find x so the answer is x = (1/2)*y how to do that using Matlab Best Answer syms x yeqn = y == 2*xsolve(eqn, x) Related SolutionsMATLAB: How to find value of x given y B=xlsread('cp_lambda.csv');x1=B(:,1);y1=B(:,2);figure(2)plot(x1,y1)x2 = 0.1;y2 = spline(x1,y1,x2);hold onplot(x2,y2,'or')hold off MATLAB: Have x find y x=0:0.1:10;y1=cos(x);y2=sin(x);x1=2.234y11=interp1(x,y1,x1)Y21=interp1(x,y2,x1) Related QuestionConditional equation X1=X(y==1)Basic questions how to find x
Best Answer