Statistik
RANG
2.152
of 295.495
REPUTATION
29
BEITRÄGE
11 Fragen
11 Antworten
ANTWORTZUSTIMMUNG
45.45%
ERHALTENE STIMMEN
21
RANG
of 20.240
REPUTATION
N/A
DURCHSCHNITTLICHE BEWERTUNG
0.00
BEITRÄGE
0 Dateien
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANG
of 153.991
BEITRÄGE
0 Probleme
0 Lösungen
PUNKTESTAND
0
ANZAHL DER ABZEICHEN
0
BEITRÄGE
0 Beiträge
BEITRÄGE
0 Öffentlich Kanäle
DURCHSCHNITTLICHE BEWERTUNG
BEITRÄGE
0 Highlights
DURCHSCHNITTLICHE ANZAHL DER LIKES
Feeds
Stretching a rectangle over a date axis
There's a nice solution to drawing a semi-transparent colored rectangle over a plot at https://stackoverflow.com/questions/45266...
mehr als 4 Jahre vor | 1
Frage
customize user prompt in console window?
Is there a way to change the user prompt from ">>" in the Matlab console window? In linux systems, this can be done for the bas...
mehr als 5 Jahre vor | 1 Antwort | 1
1
AntwortFrage
strrep is inconsistent with empty replacement strings
I have reported this as a bug. strrep responds differently when the replacement string is various flavors of empty. 'Proper' w...
mehr als 5 Jahre vor | 1 Antwort | 0
1
AntwortFrage
How does copy-on-modify operate on structs and classes?
I understand that Matlab uses "copy-on-modify" so matrices, structs and class objects are only copied inside a function when the...
mehr als 5 Jahre vor | 1 Antwort | 2
1
AntwortFrage
inconsistency when comparing cell arrays with strings vs char array
Why does matlab not compare strings & char arrays the same way in aggregate as it does individually? >> type test_input.m fu...
mehr als 5 Jahre vor | 2 Antworten | 3
2
AntwortenHow can I check whether an argument is given or not (inputParser)?
A bit late to the game here, but expanding on Sean de Wolski's brief suggestion, here is a code snippet that should satisfy. Th...
fast 6 Jahre vor | 2
preallocate array without initializing
BL is apparently correct -- it can be done in a MEX file -- and I have located a functional solution on Matlab File Eschange: 3...
fast 6 Jahre vor | 0
preallocate array without initializing
A little experimenting has determined the following: z = zeros(m,n); is apparently quite fast, but only helpful if one needs...
fast 6 Jahre vor | 0
Frage
preallocate array without initializing
Is there any way to preallocate a matrix without initializing it to either NaN's, zeros or ones? I'm working with large image...
fast 6 Jahre vor | 5 Antworten | 0
5
AntwortenFrage
How to specify the output type of an fread(fid...) ?
fread(...) lets you specify the data type of the data to be read, but appears to always return the results in a matrix of double...
fast 6 Jahre vor | 1 Antwort | 0
1
AntwortWhy is an empty string not empty? isempty('') returns true, but isempty("") returns false
There have been many good suggestions above for workarounds for code going forward. Thanks all for your input. Having read and...
fast 7 Jahre vor | 1
Why is an empty string not empty? isempty('') returns true, but isempty("") returns false
I think I'm going to submit this to MathWorks as a bug, and see what they say.
fast 7 Jahre vor | 0
Why is an empty string not empty? isempty('') returns true, but isempty("") returns false
Hmmm. I suppose one could override isempty(...) Attempting to view the code for isempty(), it shows no code, just comments, th...
fast 7 Jahre vor | 1
Frage
Why is an empty string not empty? isempty('') returns true, but isempty("") returns false
(Updated to clarify the problem) Strings, added in R2016b, are a great addition to matlab, but one aspect is a problem: test...
fast 7 Jahre vor | 6 Antworten | 3
6
AntwortenShow memory options in Matlab working on Mac platform
Several cmdline tools for determining physical memory on Macs. I use: [status, cmdout]=system('sysctl hw.memsize | awk ''{prin...
mehr als 7 Jahre vor | 2
If else condition to determine if a year is a leap year
ndays = datenum(Y+1,0,0) - datenum(Y,0,0); isleap = ndays == 366;
etwa 8 Jahre vor | 0
How to keep/use last used CURRENT DIR?
In Matlab R2015a for Mac OS X, this is a setting one can change in the preferences: Preferences | Matlab | General One can...
etwa 9 Jahre vor | 0
Converting a date string to day of year
As Tursa's example implies, matlab datenum's are numeric timestamps (of type double) that can be subtracted (to get a relative o...
mehr als 9 Jahre vor | 1
Frage
setting ColorOrderIndex before 1st line is drawn?
Per Matlab documentation "Why Are Plot Lines Different", we can reset the color order to restart by using (handle).ColorOrderIn...
mehr als 9 Jahre vor | 2 Antworten | 0
2
AntwortenFrage
how to use readtable with excel spreadsheets, skip extra header lines, and read to "end"?
readtable apparently doesn't support "HeaderLines" option for xls files. From documentation, it does support reading ranges lik...
mehr als 9 Jahre vor | 1 Antwort | 4
1
AntwortFrage
Why does R2015a ask for permisson to accept incoming connections?
Have just installed R2015a on OS X yosemite, and on startup, it asks whether I want to allow matlab to accept incoming connectio...
mehr als 9 Jahre vor | 1 Antwort | 0
1
AntwortFrage
How to open files in separate windows in 2014A (Mac OS X version)?
2012 & earlier allowed me to open each file in a new editor window undocked -- i.e. it is own editor window. (I vaguely recall ...
etwa 10 Jahre vor | 0 Antworten | 0