Question


Since R2013a, unique() retrieves first occurrence: where in the docs?
The release notes 2013a state the change of the set functions, but I can't seem to find the info in the documentation of <http:/...

11 years ago | 1 answer | 5

1

answer

Question


What is the optimal block size for importing a big .csv with textscan()
I have |.csv| files as big as ~17GB and limited RAM (to 8GB), therefore I am importing them in blocks. I noticed that importing ...

11 years ago | 0 answers | 0

0

answers

Answered
When will the April 2013 Matlab contest be announced?
The previous one was the last one: http://blogs.mathworks.com/contest/2012/10/31/the-end-of-an-era/

11 years ago | 0

| accepted

Answered
function to read a cell contents
I discourage creating incrementally numbered variables in the workspace, however here's the bare-bone approach: % Index veg...

11 years ago | 0

| accepted

Answered
How can I make markers transparent?
Alternatively, if you have the Statistics TB, you can use |<http://www.mathworks.co.uk/help/stats/scatterhist.html scatterhist()...

11 years ago | 1

Answered
matlab datenum to excel datetime
In MATLAB you can convert MATLAB datenums into EXCEL datenums with the function <http://www.mathworks.co.uk/help/finance/m2xdate...

12 years ago | 0

Answered
How can I set automatically the textarrow position on a graph?
You will find this utility very useful: http://www.mathworks.co.uk/matlabcentral/fileexchange/10656-data-space-to-figure-units-c...

12 years ago | 1

Answered
matlab code for taking very less sample
You might find the <http://www.mathworks.co.uk/help/matlab/getting-started-with-matlab.html?s_tid=doc_12b getting started guide>...

12 years ago | 0

| accepted

Answered
Transparent surface with log axis
You won't be able to do that: http://www.mathworks.com/matlabcentral/answers/13441#answer_18342 However, you can use a manual...

12 years ago | 0

Answered
Column of ONES in multiple regression
In <http://www.mathworks.co.uk/help/stats/regress.html |regress()|>, you need to add a column of ones to allow for an intercept ...

12 years ago | 0

Answered
Charecter to binary form
You are comparing the char |'1'| with the numeric |1|. >> double('1') ans = 49 as in the ASCII table. You h...

12 years ago | 0

| accepted

Answered
For loop versus Matrix notation
You can use <http://www.mathworks.co.uk/help/matlab/ref/accumarray.html |accumarray()|>: Y = [uniquedates accumarray(X(:,1),...

12 years ago | 0

| accepted

Question


Spellcheck functionality in MATLAB editor
I would like to receive your *feedback*: * would you find useful to have *spellcheck* built into the MATLAB Editor? (Cons...

12 years ago | 5 answers | 21

5

answers

Answered
Compound Interest with monthly Contributions, Unable to vectorize.
n = 18*12; % number of periods i = 0.005; % per period interest I = 1000; ...

12 years ago | 0

Answered
how can store two power 1000 value in matlab.
You can with the Symbolic Toolbox: s = vpa(2^1000,301);

12 years ago | 0

Answered
better way to improve performance of my code
Remove pause(0.5) which waits half a second, i.e. 0.5*1e7 = 5e6 = about 1388.89 hours.

12 years ago | 0

Answered
Clustergram Bug? - Different dendrograms produced by Clustergram vs SPSS and pdist -> linkage -> dendrogram using the same parameters
You can contact technical support by compiling this form: http://www.mathworks.co.uk/support/contact_us/index.html

12 years ago | 1

| accepted

Question


Improve quality of Latex equations published to .html with publish()
Suppose you have this in a blank .m file: %% % I was writing something $x^2+e^{\pi i}$ Now, hit the publish button a...

12 years ago | 1 answer | 4

1

answer

Answered
detecting the existence of alphabetical elements
regexpr(str,'[a-zA-Z]')

12 years ago | 0

Answered
how I can replace diff(x(t), t) with xdot ?
syms t xdot; x = sym('x(t)'); f = sin(x); df = diff(f,t); subs(df,'diff(x(t), t)',xdot)

12 years ago | 0

Answered
large date/number/string text file reading to certain number of elements then ignoring end of line
To skip ret of the line use |'%*[^\n]'|: fid = fopen('test.txt'); fmt = ['%s%s' repmat('%f',1,10), '%*[^\n]']; out = ...

12 years ago | 0

| accepted

Answered
Too late to submit Negative feedback for R2012b !
I did test the R2012b_prerelease and I submitted my feedback as mentioned in the other post Aurelien linked. However, I am no...

12 years ago | 4

Answered
Obtaining same values at avery simulation using rand function
You can use |rng()| rng(1) rand(1,5) rng(1) rand(1,5) Or with your approach: s = RandStream('mcg16807'...

12 years ago | 0

Answered
Solving legend Problems in Matlab
mesh(v) mesh(probability) You forgot a |hold on| in between.

12 years ago | 0

Answered
Experiences with release 2012b
I already let TMW know but I'll be posting here as well: * I miss the previous edit configurations window. Now I have to crea...

12 years ago | 9

Answered
Mis match in comparing the values
http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F

12 years ago | 2

| accepted

Answered
Generating array of consecutive timestamps in double
I recommend to use MATLAB serial dates as produced by |datenum()|. Any manipulation with dates becomes much easier. The appearan...

12 years ago | 1

| accepted

Answered
Looking for a way to mask handle functions when calling methods or doc
*EDITED* Hide superclass methods using |Hidden| from <http://www.mathworks.co.uk/help/techdoc/matlab_oop/brjjv0d.html Method ...

12 years ago | 0

| accepted

Answered
Implementation of limits on the optimization results
Should it be b = zeros(size(A,1),1); An example problem (without nonlinear constraints): f = @(x) x(1)^2 + x(2)^2 +...

12 years ago | 1

| accepted

Answered
how to sum floating point elements of an array
"??? Subscript indices must either be real positive integers or logicals" It means you're doing something: a = 1:0.1:2...

12 years ago | 0

Load more