MATLAB: How to plot a sym function with constant function such as x=2(vertical line) & y=3(horizontal line) sym plotsymbolic plot syms x y fplot((@x)x==2) hold on fplot((@y)y==3) Best Answer syms x yeqn=yeqn1=xfplot(subs(eqn,y,3))hold onfplot(subs(eqn1,x,2)) Related SolutionsMATLAB: Flipping Values (1 Line) Like other, I totally fail to see why you need a for loop ... Anyways, this will workfor k=1, [b,a] = deal(a,b)end MATLAB: Text file modification (remove blank line) filecontent = fileread('YourFile.txt');newcontent = regexprep(filecontent, '\n\n+', '\n');fid = fopen('NewFile.txt', 'w');fwrite(fid, newcontent);fclose(fid); Related QuestionAdd cut line (horizontal line) in bar graphDoes the SUBS function in the Symbolic Toolbox give an output of type DOUBLEHow to erase the diagonal elements of a matrix (in one line)
Best Answer