Comments on: MATLAB: Setting custom tick labels https://blogs.mathworks.com/videos/2010/07/23/matlab-setting-custom-tick-labels/?s_tid=feedtopost Stuart uses video to share his experiences solving problems with MATLAB day-to-day, interesting new features, plus tips and tricks he has picked up along the way. Mon, 24 Dec 2012 16:19:13 +0000 hourly 1 https://wordpress.org/?v=6.2.2 By: Abbas https://blogs.mathworks.com/videos/2010/07/23/matlab-setting-custom-tick-labels/#comment-5489 Mon, 24 Dec 2012 16:19:13 +0000 https://blogs.mathworks.com/videos/2010/07/23/matlab-setting-custom-tick-labels/#comment-5489 Dear Doug,
Thank you very much. I really needed to know this. And I’m happy that it can be found as the first search result in Google.
Abbas

]]>
By: Pawel https://blogs.mathworks.com/videos/2010/07/23/matlab-setting-custom-tick-labels/#comment-3117 Tue, 26 Jun 2012 09:07:57 +0000 https://blogs.mathworks.com/videos/2010/07/23/matlab-setting-custom-tick-labels/#comment-3117 Why make people watch a video of you typing those commands?? A snippet of code and some comments in an article would be much more useful.

]]>
By: dhull https://blogs.mathworks.com/videos/2010/07/23/matlab-setting-custom-tick-labels/#comment-2234 Tue, 17 Aug 2010 15:05:53 +0000 https://blogs.mathworks.com/videos/2010/07/23/matlab-setting-custom-tick-labels/#comment-2234 @Barry.

Here is a workaround/explanation.

https://www.mathworks.com/support/solutions/en/data/1-5HAF0I/?solution=1-5HAF0I

Doug

]]>
By: Barry https://blogs.mathworks.com/videos/2010/07/23/matlab-setting-custom-tick-labels/#comment-2233 Tue, 17 Aug 2010 10:29:15 +0000 https://blogs.mathworks.com/videos/2010/07/23/matlab-setting-custom-tick-labels/#comment-2233 Hallo Doug,

I tried to use this trick and it works properly except when I try to use Greek alphabet. for example:
set(gca, ‘XTickLabel’, {‘X’,’U’,’L’,’\Gamma’,’X’,’W’,’K’});

can you explain how to fix it?

Thank you very much.

]]>
By: Scott https://blogs.mathworks.com/videos/2010/07/23/matlab-setting-custom-tick-labels/#comment-2224 Fri, 13 Aug 2010 10:38:51 +0000 https://blogs.mathworks.com/videos/2010/07/23/matlab-setting-custom-tick-labels/#comment-2224 Ugh. I knew there was something simple I was missing. I just found the “finchart” command (actually, I had looked at this before, but for some reason its existence slipped my mind recently). I’m looking through the m file now (assuming I’ll find the answer to my question there).

]]>
By: Scott https://blogs.mathworks.com/videos/2010/07/23/matlab-setting-custom-tick-labels/#comment-2223 Fri, 13 Aug 2010 10:29:44 +0000 https://blogs.mathworks.com/videos/2010/07/23/matlab-setting-custom-tick-labels/#comment-2223 I’m sure this must be posted somewhere, but I’ve looked and can’t seem to find the answer anywhere.

I’m trying to create a basic line plot of a stock’s price. The normal 2d plot correctly puts the price on the y axis, but it puts a count (e.g., 1 2 3 4 5…# of obs) on the x axis. I’d like to have the actual dates associated with each price put on the x axis. My data matrix includes the Matlab number representing the date in column 1 and the stock’s price for each date in column 2. I’ve even converted the Matlab date number into standard date strings (e.g., 7-Aug-2010). How do I get the dates in column 1 (or the date strings created from column 1’s date number) to be used as tick labels on the x axis in the plot?

]]>