Community Profile

photo

Daniel Shub


86 2011 年以降の合計貢献数

Daniel Shub's バッジ

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

詳細を表示...

貢献した分野
表示方法

回答済み
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...

4ヶ月 前 | 3

回答済み
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...

5ヶ月 前 | 47

| 採用済み

回答済み
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...

3年弱 前 | 3

| 採用済み

質問


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...

3年以上 前 | 1 件の回答 | 0

1

回答

質問


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...

5年以上 前 | 9 件の回答 | 14

9

回答

回答済み
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...

5年以上 前 | 2

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

5年以上 前 | 1

質問


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...

5年以上 前 | 0 件の回答 | 2

0

回答

回答済み
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 ...

6年弱 前 | 3

| 採用済み

回答済み
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...

6年弱 前 | 0

質問


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...

6年弱 前 | 2 件の回答 | 0

2

回答

回答済み
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)

6年弱 前 | 3

| 採用済み

質問


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...

約6年 前 | 1 件の回答 | 2

1

回答

回答済み
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...

約6年 前 | 1

| 採用済み

回答済み
putting a ' in a title
You were so close, you need an extra ' title(' U'' squared ')

約6年 前 | 1

回答済み
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...

約6年 前 | 4

回答済み
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 ...

約6年 前 | 1

| 採用済み

回答済み
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...

約6年 前 | 3

回答済み
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...

約6年 前 | 1

回答済み
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...

約6年 前 | 2

回答済み
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...

約6年 前 | 0

回答済み
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...

6年以上 前 | 1

質問


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 ...

6年以上 前 | 1 件の回答 | 2

1

回答

回答済み
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...

6年以上 前 | 2

| 採用済み

回答済み
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...

6年以上 前 | 4

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

6年以上 前 | 2

回答済み
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...

6年以上 前 | 4

| 採用済み

回答済み
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...

6年以上 前 | 3

| 採用済み

回答済み
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...

6年以上 前 | 2

回答済み
insert element in vector
While I think this is a homework problem ... Function handles and cat are your friends insert = @(a, x, n)cat(2, x(1:n)...

6年以上 前 | 7

Load more