Community Profile

photo

Daniel Shub


93 total contributions since 2011

Daniel Shub's Badges

  • 24 Month Streak
  • Thankful Level 3
  • Guiding Light
  • Revival Level 2
  • Knowledgeable Level 4
  • First Answer

View details...

Contributions in
View by

Answered
Wish-list for MATLAB Answer sections.
That before/when the magic editor powers kick in (edit and delete buttons showing up everywhere) that an email is sent to the ed...

3 Monate ago | 0

Answered
Good programming practice...
Come to Answers before using global or eval. There is almost always a better way to do it. http://matlab.wikia.com/wiki/FAQ#Why...

8 Monate ago | 3

Answered
delete element from vector
I can think of three ways that are all slightly different a=[1,2,3,4,5]; If you want to get rid of all cases where |a| i...

9 Monate ago | 49

| accepted

Answered
Activating on Linux without eth0
I asked a related question over at <http://unix.stackexchange.com/questions/74039/creating-eth0-with-consistent-network-device-n...

etwa 3 Jahre ago | 3

| accepted

Question


Hardware based OpenGL on Linux
I am unable to get hardware based OpenGL since the change to HG2 (i.e., R2014b and R2015a) on Linux. Prior to that, I can use ha...

fast 4 Jahre ago | 1 answer | 0

1

answer

Question


Why should I stay?
This may be a rant or a parting message, but I think it really is a question: Why should I continue to participate in MATLAB ans...

mehr als 5 Jahre ago | 9 answers | 14

9

answers

Answered
Does someone know how to print a square onto the command window using for loops????
I am not sure why you want to use a loop or fprintf. The simplest, but potentially not square enough solution for a filled squar...

fast 6 Jahre ago | 2

Answered
automatic Matlab to run each 10 min
You could do while true myfunc; pause(10*60); end

etwa 6 Jahre ago | 1

Question


MATLAB .deb or .rpm based installer
I am curious why there is no .deb or .rpm based installer for MATLAB. It seems the way TMW handles the software downloads it wou...

etwa 6 Jahre ago | 0 answers | 2

0

answers

Answered
set latters in a string to different fontsizes with interpreter latex
Presumably by "doesn't work" you mean there is not a difference in the font size. The reason there is no difference in the font ...

etwa 6 Jahre ago | 3

| accepted

Answered
Using regexp to capture parts of a filename
Depending on how structured your file names are, it might be easier to skip the regexp part. file = 'Exp000_DD2CM000_PN0...

etwa 6 Jahre ago | 0

Question


Activating on Linux without eth0
I have an activation question. I have asked technical support, but I thought I would ask here. I thought this would be desirable...

etwa 6 Jahre ago | 2 answers | 0

2

answers

Answered
How can I get fprintf to show plus sign in front of positive numbers ?
So close ... You want %+4.2f fprintf('%+4.2f%+4.2fX1%+4.2fX2%+4.2fX1^2%+4.2fX1X2%+4.2fX2^2\n\n',a1 ,a2 ,a3 ,a4 ,a5 ,a6)

mehr als 6 Jahre ago | 3

| accepted

Question


Timers: possible bug/documentation error
A few years ago I asked this <http://www.mathworks.com/matlabcentral/answers/21537-what-thread-do-timers-operate-in question> ab...

mehr als 6 Jahre ago | 1 answer | 2

1

answer

Answered
Global variables and multiple licenses of Matlab
Each instance of MATLAB is completely independent. Things like global variables are local to the instance of MATLAB that created...

mehr als 6 Jahre ago | 1

| accepted

Answered
putting a ' in a title
You were so close, you need an extra ' title(' U'' squared ')

mehr als 6 Jahre ago | 1

Answered
Warning: Unable to interpret TeX string
It is very possible that I have screwed up my systems LaTeX processing (I have been playing with it recently). For example, on m...

mehr als 6 Jahre ago | 4

Answered
How to change text size in boxplot
I can think of two ugly hacks that work ... The first is to set the default font size of all text labels for the plot h ...

mehr als 6 Jahre ago | 1

| accepted

Answered
Prevent MATLAB from displaying full stack on error.
I think with careful use of try/catch and |throwascaller| you can achieve this. Just be careful since it makes debugging very di...

mehr als 6 Jahre ago | 3

Answered
Input Vector Graphics into Matlab
You can definitely import an EPS file (and any other vector graphic that is saved as plain text) by simply reading in the text f...

mehr als 6 Jahre ago | 1

Answered
Professional looking Matlab FAQ
# I would suggest that this be left up to TMW since they have professional documentation writers. Answering these types of quest...

mehr als 6 Jahre ago | 2

Answered
subsref overload has fewer outputs than expected on cell attribute
I am not following everything ... The two commands |instance.some_cell| and |instance.some_cell{:}| mean different things. See a...

mehr als 6 Jahre ago | 0

Answered
Sorting variable names in alphabetical order
Assuming you mean the variable editor and not the workspace window, I think this is a possible bug. There seems to me no good re...

mehr als 6 Jahre ago | 1

Question


Floating point accurarcy and COLON
I have just been bitten by an odd floating point comparison issue. At the heart of the issue is that I expected to get true for ...

mehr als 6 Jahre ago | 1 answer | 2

1

answer

Answered
close a message box thru coding
You could do something like h = msgbox('please wait'); n = 0; while rand > 1e-9; n = n+1; end; delete(h); Where...

mehr als 6 Jahre ago | 2

| accepted

Answered
Why 'str2double' is preferred over 'str2num?
In this case I think it is best to actually look at the code of the two functions type str2num type str2double One pr...

mehr als 6 Jahre ago | 5

Answered
Clearing Global variables... except for.
To remove the variables locally clear(globals{:}) to remove them globally clear('global', var{:}) You should also...

fast 7 Jahre ago | 2

Answered
Pass variable by reference to function
While I think IA's answer is the better way to do it. If you really want to do what you are talking about you can create a subcl...

fast 7 Jahre ago | 4

| accepted

Answered
looking for an efficient way to activate all fprintf in the function
If you are using a function, you can overload fprintf with a nested function. function myfunction(debug) fprintf('first...

fast 7 Jahre ago | 3

| accepted

Answered
sum every 24 rows in a vector
I am not sure what all the code you posted has to do with anything ... If I have a 8760x1 array x = randn(8760, 1); I...

fast 7 Jahre ago | 2

Load more