y-values from a given function
Show older comments
I have a function and two values of x and I would like to find the values corresponding to the x-values, how should I start ? I was thinking to do for loop but it does not work it only gave me one of the answers (as you can see below)!
for x = 0.36 : 0.40
y = x^4 + 5*x^2 + sqrt(x-1)
end
y =
0.6648 + 0.8000i
1 Comment
John D'Errico
on 9 Jan 2017
So your code was wrong. Show your code, and someone will show you how to fix it.
Accepted Answer
More Answers (0)
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!