Difference between revisions of "MATLAB talk:Plotting"
Jump to navigation
Jump to search
(No difference)
|
Revision as of 15:14, 1 October 2009
- For the EGR53 lab6, I am having difficulty finding the x and y coordinates of the best low-cost location in problem 4.25. I have generated my graphs and found the minimum operating cost, however when I use the find command to find the coordinates of this location MATLAB returns an error 'Index exceeds matrix dimensions'. The code I typed in to find the x and y coordinates were as follows:
xMin = CustX(find(TotalCost==MinCost)) , yMin = CustY(find(TotalCost==MinCost)) Mew40 11:14, 1 October 2009 (EDT)