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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

Pregunta


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

más de 14 años hace | 1 respuesta | 0

1

respuesta

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

más de 14 años hace | 0

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

más de 14 años hace | 1

| aceptada

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

más de 14 años hace | 1

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

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 1

| aceptada

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

más de 14 años hace | 2

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

más de 14 años hace | 0

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

más de 14 años hace | 2

| aceptada

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 1

| aceptada

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

más de 14 años hace | 0

Resuelto


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

más de 14 años hace

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

más de 14 años hace | 3

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

más de 14 años hace | 1

| aceptada

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 1

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

más de 14 años hace | 0

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

más de 14 años hace | 0

Cargar más