Not w/o using text instead of letting the axis tick property control them, no.
First fix the formatting issue with tick labels that I've harped on for nearly 30 years -- that of not putting the same number of decimal places on all labels instead of letting integers default. That may fix the problem adequately that you can live with it, but it will certainly go a long way towards the "truly professional" look that I agree is somewhat lacking as default...
ytk=get(gca,'ytick').';
set(gca,'yticklabel',num2str(ytk,'%0.1f'))
Ohhh....just thought of a "trick"...let's see--
set(gca,'yticklabel',num2str(ytk,'%0.1f '))
Drat! The renderer strips out the trailing blank so only way to reposition will be via the use of text as mentioned above. Changing positions won't help as the axes labels will just move around together.
ERRATUM While this is quite old, OP did an edit that came up as new activity and in rereading the thread I notice a misstatement that just by chance I discovered the issue in just within the last couple of days at the newsgroup. That is I presumed above that the problem w/ the trailing space in the above was owing to HG; turns out it's a "feature" (I think I think it's a bug, but it's documented behavior) in num2str that it strips blanks even if given a specific format statement so the above doesn't actually pass the string with the trailing blank had assumed it did. One would have to build the string array and append the blank or use sprintf to make the format "stick". END ERRATUM
Oh, I guess you could get more complicated and add a second axes object for the actual display and set the tick labels to empty on the original...but I think just writing text is probably simpler than that.
ADDENDUM
text example code--as above start with retrieving the current tick values, then
set(gca,'yticklab',[])
xtik=get(gca,'xtick'); dxtik=xtik(2)-xtik(1);
xpos=xtik(1)-0.1*dxtik;
text(repmat(xpos,size(ytk)),ytk,num2str(ytk,'%0.1f'),'horizontal','right')
The x-position is arbitrary; adjust as desired. I took 10% of the x-axis tick spacing to the left of the first x-tick. You could switch over to absolute positions and remove the dependence on the actual axes values; I'll leave that as "exercise for the student"... :)
Best Answer
OK, the mystery is solv'ed; the root cause is uiimport with it's "new and improved" flavor in wanting to use table class and then even if select columns it wants to turn text in which there are many more rows than unique values into categorical variables instead of char/cellstr and the initial code was written with string comparison operators which fail (silently, unfortunately) on categorical variables.
The workaround in short term is to convert the categorical variable to cellstr and carry on--I'll add this here to point out there really are some advantages if you will allow Matlab to have its way--consider the Details array; as you were using it, you presently are doing string comparisons to locate certain pieces of information as
As previously noted, you do not need the Q array to do the comparison, simply compare the array to a single string does the same job with much less memory, the length of Q in this case is over 16K. IOW,
is identical in result or you can even do without the temporary Q altho I can see good reason to not bury "magic strings" in the code itself so that's not a bad factoring.
OTOH, if you let Matlab go ahead and convert the input to categorical, you can then do the same thing as
and eliminate the comparison function itself in favor of the equality operator.
Categorical variables have many other helpful uses in categorizing functionality as well that could turn out very useful besides just logical addressing. One nice feature that could be very helpful in debugging or otherwise looking at your data is
that produces a summary of the categories; easy to find a miscoded entry that way, maybe, if nothing else? (I just imported the file, didn't run the script so hadn't renamed the array you'll notice.)
All in all, I'd suggest revisiting the subject and consider perhaps using some of the newer features instead of beating MATLAB totally into submission.