Feeds
提问
Trying to plot the solution to a differential equation, but my code is giving me a solid number rather than an equation??
I will paste my code, attatch the .m file, and also paste my inputs. Very strange to me because I cant find the problem. New to ...
6 years 前 | 0 个回答 | 0
0
个回答提问
Error when calling function, "Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters."
function m_roots(f,m) xroots = zeros(1,m); dx=1/100; x=0; jj=0; while jj<m while f(x)*f(x+dx)>0, x=x+dx; end ...
6 years 前 | 3 个回答 | 0
3
个回答提问
Writing a function that returns all the roots of any function within a certain range?
Hi all, I'm just getting started with MATLAB and coding in general so don't understnad many of the basics. My task here is to...
6 years 前 | 1 个回答 | 0