Community Profile

photo

Cameron Fogerty


Last seen: 3 years ago Active since 2019

Followers: 0   Following: 0

Statistics

Feeds

View by

Question


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 ...

4 years ago | 0 answers | 0

0

answers

Question


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 ...

4 years ago | 3 answers | 0

3

answers

Question


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...

4 years ago | 1 answer | 0

1

answer