Exponential and Binary Search Algorithm
Show older comments
Hello, So I tried to convert a cpp program that uses exponential search and binary search. I am however getting errors within the code for MATLAB, I do not understand where I have gone wrong.
The errors I am getting are in the binary search function at line 4, the exponential function at line 13 and the main file at line 10. The only thing I can think of is I am not passing the information across the functions correctly?
I hope what I have done doesn't hurt your eyes too badly!
6 Comments
Steven Lord
on 11 May 2017
What are the full texts (all the words displayed in red) of the error messages you receive when you try running this code?
Henry Migo
on 11 May 2017
Jan
on 11 May 2017
This tells where the error is, but the part which explains the cause is still missing.
Henry Migo
on 11 May 2017
Jan
on 11 May 2017
What is "the error box"?
Henry Migo
on 11 May 2017
Accepted Answer
More Answers (0)
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!