Again a better description for this problem is needed. Found it a at a blog. https://titanwolf.org/Network/Articles/Article?AID=47afa1e5-84c0-4745-b143-9cf7cb8c2030#gsc.tab=0 Basically, we have some money to buy stocks and a vector with the forecast of a stock price for the upcoming months. We must decide when to buy and later sell this stock to obtain the greatest profit (if possible), but this operation can only be done once. In this problem the author also wants the position for buying and selling (smallest buying price if more than one possibility exists).
Maximum running product for a string of numbers
Set some matrix elements to zero
Replace all zeros and NaNs in a matrix with the string 'error'
Try 1.5.4: Celsius to Fahrenheit
PACMAT 04 - Optimized Ghosts, Equal Speed, 10 Lives
Rubik's Cube: 30 Moves or Less : Minimum Moves
PACMAT 07 - Optimized Ghosts, PAC 2X Ghost Speed, 4 Lives; Interactive Download
Prime Sequences: AP-k Minimum Final Value
Find third Side of a right triangle given hypotenuse and a side. No * - or other functions allowed
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office