Top 5% contributor
pre 2014b I was able to use the following to get the axes handle to which a legend belongs
Asked 7 months ago
Answered 9 months ago
Hi Michael, if you only need the xy coordinates there is also the matlab function ginput to achieve this task. http://www.mathw...
2 years ago
ok, here's the solution: you can tell legend() with which plot handle the legend entry is associated, by:
Answered 2 years ago
I copied your example sheet to example.xlsx and tested the code below. Please Note the remarks, I would not recommend the use of...
Answered 1 month ago
set(gca, 'XTick', 1:100:n, 'XTickLabel', dates(1:100:n,:));
because you want a string in your 4th column, you need a cell array. here's my q&d solution:
new = c...
here's the probably dirtiest code I've written so far, but does, what you want:
% make an example plot with several classes...
simpler without any external functions
olderpatients = structfun(@(X) X(data.age>80),data,'Uni',false);
Answered 8 days ago
Here's my findings...
for ii = 1:15
Answered 7 months ago
you can access the data of each plot by
for ii = 1:10
f = open('figure_ii.fig') % use the cor...
have a look at this:
figure;plot([2 2],[-1000 1000],'r')
On pre 2014b graphic handling the following code to retrieve the displayed strings and the handles of the referenced plot elemen...
Asked 9 months ago
first of all: please note the rules for posting questions!
bad title, "new to matlab" and so on...
now my answer:
title(['my title' var1 var2])
depending on the variable type, you may have to convert to string and add separators like white...
you could add the data set with the black boxes at last and then only define 2 legend entries.
If I had known, how to use the get command properly, I would by then have known, that get(pplab,'Characters',n,1) gives me the h...
if you have data in your chart, that's supposed to be scaled to the secondary y-axis, just move the plot there, here...
Finally, I found a workaround!
Here's an example
str = 'foobar';
subscr = round(rand(length(str),1));
xls = actxserv...
Hi Stefanie, I just faced the same obstacle, so here is my solution: The BarWidth Property is dependent on the smallest delta ...
Choose your country 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 location from the following list:
See all countries