Community Profile

photo

Leo Simon


Last seen: 2 days ago

U.C. Berkeley

116 total contributions since 2011

Contact

Leo Simon's Badges

  • First Review
  • Thankful Level 4
  • Knowledgeable Level 1
  • First Answer

View details...

Contributions in
View by

Question


legend doesn't list all of the plotted lines using plotyy
In the code below, 8 lines are plotted, but the legend displays only 7 of them. Could somebody please explain how I can dis...

2 days ago | 1 answer | 0

1

answer

Question


two extremely odd behavior using plotyy
My matlab version is 2020a. The following code has two problems. Are they really indended behavior?? 1) t...

6 days ago | 1 answer | 0

1

answer

Question


Is there a way to tell matlab that set(gcf,'Visible','off') actually means don't show figures?
Unfortunately my code is sufficiently complex that I can't provide an MWE, but when I turn gcf Visibility off, using `set(gcf,'V...

7 days ago | 0 answers | 0

0

answers

Question


Assign multiple elements of one cell array to another
Suppose I have a cell array A as below and I'd like B{;,:,2} to duplicate A. How can I do this without running a double lo...

11 days ago | 1 answer | 0

1

answer

Question


entering a space that survives the latex interpreter
I'm trying to include blank spaces in the title to a plot. When I run the title string through the latex intepreter, it k...

2 months ago | 1 answer | 0

1

answer

Question


Drawing a line without creating a legend entry
In the MWE below, the green line shows up as the second row of the legend box. I want to be able to draw lines and increment...

3 months ago | 1 answer | 0

1

answer

Question


Command to exit to the base workspace?
Is there a command "between" return and quit that will exit from a workspace but leave me in the base workspace? return pu...

3 months ago | 1 answer | 0

1

answer

Question


exist function says directory figures exists when it doesn't
For some reason, even though the directory figures does not exist, the command exist('figures','dir') is returning a 7 instea...

3 months ago | 1 answer | 0

1

answer

Question


Particularly strange bug using the eval function
In the MWE below, I define a bunch of parameters using an eval command. I know that the experts recommend against using eval...

3 months ago | 5 answers | 0

5

answers

Question


bug in the legend command for version 2019B?
This command does not throw an warning close all;plot(1:10);legend([ 'E$\hat{s}_{' n2s(ii) '}$' ],'Interpreter','latex','Auto...

3 months ago | 1 answer | 0

1

answer

Question


Find index of an arbitrary cell array that contains a string
In This thread, @Jan answers the question in the title for the case of cell arrays that consist only of character variables. It...

5 months ago | 1 answer | 0

1

answer

Question


W = evalin('caller','who global') returns an error
The command evalin('caller','who global') correctly returns the global variables in the caller workspace, but W = evalin('c...

5 months ago | 1 answer | 0

1

answer

Question


dbstop doesn't stop if the line at which is supposed to stop is something like `'else'
If you save the code below to, say, mwe.m then at the command prompt type dbstop in mwe at 4 then call the function, it will i...

6 months ago | 1 answer | 0

1

answer

Question


matlab installer "you must verify your university login information" the "click here" link is dead
People have been complaining about this for years. I want to install an additional package. I run the installer and get to...

6 months ago | 1 answer | 0

1

answer

Answered
Why do I get a message "You must verify your university login information" when trying install or activate MATLAB?
It's a year later still, and this problem still isn't fixed. WHY ISN'T MATHWORKS LISTENING???? We need to be able to install ...

6 months ago | 0

Question


preserving the absolute location of an annotation after changing axis limits, or typing 'axis square'
I'm trying to draw an arrow using the recommended approach, i.e., using axxy2figxy, and maintain the flexibility to use commands...

6 months ago | 2 answers | 0

2

answers

Question


Combining multiple colors and latex commands as tick labels
I want to have some ticklabels as colored symbols and others as symbols like \bar{x}. These desires seem to be incompatible. ...

6 months ago | 1 answer | 0

1

answer

Question


Multi-colored tick labels in bold, redux
From this thread I learned from @Tommy how to create individually colored tick labels, using the Label function defined in the c...

7 months ago | 1 answer | 0

1

answer

Question


Generating arbitrary colored tick labels
From this thread I learned from @FrankZalkow how to assign different colors to different tick labels. (I needed to use xtickl...

7 months ago | 1 answer | 0

1

answer

Question


Short-circuiting multiple dbquit commands (update?)
A few years ago, in this thread I posed a question with the same title about how to avoid having to type dbquit, then dbstack, o...

7 months ago | 1 answer | 0

1

answer

Question


Mimicking the font that title() uses when calling it with latex interpreter
The command h1 = title('TITLE') brings up a title in a heavy bold font. I would like the command h2 = title('$\nabla$ T...

7 months ago | 1 answer | 0

1

answer

Answered
Getting hatchfill to properly display a patch legend
It turns out that the problems I described in my original question can all be resolved by using the legendflex and hatchfill2 p...

11 months ago | 0

| accepted

Question


Getting hatchfill to properly display a patch legend
I'm using hatchfill to create patterned hatches, as the above example illustrates. However the legend shows a line rather tha...

1 year ago | 2 answers | 0

2

answers

Question


Matlab answers no longer lets me cut an paste
I've been using this forum for decades, but suddenly there's been an "upgrade" to the interface, so that I can no longer cut and...

1 year ago | 1 answer | 0

1

answer

Answered
Opening uisetcolor extremely slow R2016b
Thanks Greg, wasted hours till I found your post. It's completely baffling why MATLAB would replace a perfectly good utility ...

1 year ago | 0

Answered
run code section in nodesktop mode
Figured as much. A pity though, it would be enormously helpful, and a great enhancement, for those of us who despise desktop ...

2 years ago | 0

Question


run code section in nodesktop mode
Title says it all. I always run matlab with the -nodesktop flag. I've just learned how to run a code section from within ...

2 years ago | 2 answers | 0

2

answers

Question


Why does a commented out line generate an error
The following code throws an error CellArray = { ... 'X' ... % ,'X...

2 years ago | 1 answer | 0

1

answer

Question


How do I prevent the legend from REALLY auto-updating
I'm plotting graphs of the same type in multiple subplots, with some subplots left blank. I'd like to use the blank spots to ...

2 years ago | 2 answers | 0

2

answers

Question


reverse the output order of the constraint function argument of fmincon
I frequently use fmincon to solve for a bunch of equality constraints, but my problems have no inequality constraints. My e...

2 years ago | 1 answer | 0

1

answer

Load more