Answered
Why are there gaps in some of my plots?
Are there NaN in either C or y? Try any( isnan( C ) ) any( isnan( y ) )

14 years ago | 0

| accepted

Answered
Testing MATLAB to the limits!
# use 64bit Matlab # use uint8 if possible # install a lot of RAM # pre-allocate # use the function, PROFILE >> 6e9*2...

14 years ago | 0

| accepted

Answered
What does this activeX error mean, how do i fix it?
Try methods( MN6 ) MN6.Visible = true;

14 years ago | 0

Answered
Logical Operator Matrix Problem
Try %% A = [true,false; true,true; false,false; false,true]; %% sss = sum( double(A), 2 ); %% ...

14 years ago | 0

| accepted

Answered
Matlab not converting from single to double (but it thinks it is...)
It works for me with R2012a 64bit on Windows7 - no warnings ... zz( zz > 1e36 ) = nan; pcolor(double(xx),double...

14 years ago | 0

Question


Is it a good idea to run Matlab in the "background" as a local out-of-process COM server?
Background # The cpu has 4 cores # An interactive application, which includes some long computations. The user don't want to...

14 years ago | 1 answer | 0

1

answer

Answered
transforming two date vectors
Try %% cac = cellfun( @(str) transpose( sscanf( str, '%d/%d/%*d' ) ) ... , A, 'uni', false ); ...

14 years ago | 0

Answered
map first field to second field in txt file
A slight modification of the textscan command I provided to your question the other day will read the file. (You never explained...

14 years ago | 1

| accepted

Answered
Logging of a calculation process as a .txt file
This FEX contribution might help: <http://www.mathworks.se/matlabcentral/fileexchange/37701-log4m-a-powerful-and-simple-logge...

14 years ago | 1

Answered
Can I label dates on the x-axis that does not correspond to the exact timing of my data?
Yes. See documentation on XTick vector of data values locating tick marks XTickLabel ... strings to use as...

14 years ago | 0

Answered
problem in compare strings
Try this %% str1 = 'Animation|Children''s|Comedy'; str2 = 'Animation*'; str3 = 'Animation'; ism...

14 years ago | 0

| accepted

Answered
Calculating Mean of Matrices
It was probably not a good idea to name them "loc1, loc2, loc3 .......loc549, loc550". See <http://matlab.wikia.com/wiki/FAQ#How...

14 years ago | 0

Answered
Let timer access another object's function
This works with R2012a classdef test_timer < handle properties t end methods f...

14 years ago | 0

Answered
computing montly averages when time series observations are irregural
Hint: * vec = datevec( A{:,1}, 'dd/mm/yy' ) * out = accumarray( vec(:,2), A(something), [], @mean ) *Better* vec =...

14 years ago | 0

| accepted

Answered
Creating a new matrix in each iteration
Since we don't know the size of coveredrtptest beforehand it is a bit tricky to preallocate it. This will give you a cell ar...

14 years ago | 1

| accepted

Answered
Creating an HDF5 dataset
A Matlab structure cannot be stored in a HDF5 file as one dataset _(except for simple ones with a few fields, the values of whic...

14 years ago | 2

Answered
Error in loading a very large matlab file
Version 7.3 MAT-files uses an HDF5 based format. I think one can read them piece-wise with the HDF5 functions of Matlab. I made ...

14 years ago | 0

Answered
how read such txtfile
How I can read a text file, which looks like this in an editor 1::1193::5::978300760 1::661::3::978302109 1:...

14 years ago | 2

| accepted

Answered
Confusion with function handles
Matlab doesn't need the keyword "end". However, it helps me to understand if you show the complete function or just an excerpt. ...

14 years ago | 0

| accepted

Answered
How can I perform a linear regression analysis with the equation y=a(x-b)?
Search for "basic fitting" in the on-line documentation. I think that includes all what you need. Or see: <http://www.mathwo...

14 years ago | 0

Answered
separate date from time
The function, floor, does it: >> floor( 874965478/86400 + datenum('1/1/1970') ) ans = 729655 and c...

14 years ago | 1

| accepted

Answered
[DISCONTINUED] MATLAB Answers Wish-list #2 (and bug reports)
*Background:* The S/N-ratio of Answer is low (IMO). Most answers solves someones acute problem, but deteriorates to noise over t...

14 years ago | 0

Solved


Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

14 years ago

Answered
plotting a linear equation
Try: %% b0 = 3; b1 = 4; f = @(x) b0-b1*x; %% ezplot( f, 0, 5 )

14 years ago | 3

Answered
execution last too long and still have not come to a conclusion!
Diffucult to say why your code never ends. I doubt that the reason is in the code you show. For-loop should end eventually. ...

14 years ago | 1

| accepted

Answered
dlmread with Complex Data
%% str = '0, -0.327608566493008 + 0.0694068104667148i'; cac = textscan( str, '%u%f', 'delimiter', ',', 'whitespace', ' '...

14 years ago | 0

| accepted

Answered
Merging the unique values
This code for ii = 2 : 6 out = cell(0,2); first_character = final_result{ ii, 2 }(1); for jj ...

14 years ago | 0

Answered
I want to find the minimum value.
Try which min -all

14 years ago | 1

Answered
How to read in txt file where certain columns are not separated by delimiters?
There must be a better way to read fix-format text (fortran). It should be possible this way - I think. However, it's error pron...

14 years ago | 0

Answered
Program does 5 calculations instead of one.
Firstly, the code appears to be a strange blend of loop and vectorized (as Jan says). Secondly, a short description of the un...

14 years ago | 0

Load more