Answered

Batch Files and Matlab: Sequential execution and "start \wait"

%http://www.mathworks.com/help/techdoc/ref/system.html function_CALLER %Ensure there is only one copy of matlab running ...

Batch Files and Matlab: Sequential execution and "start \wait"

%http://www.mathworks.com/help/techdoc/ref/system.html function_CALLER %Ensure there is only one copy of matlab running ...

2 years ago | 0

| accepted

Answered

Optimization Problem: Suggestions from the floor

interpn.m assumes equally spaced data, as per ndgrid.m. It does not support nonuniformly spaced data. griddatan.m allows c...

Optimization Problem: Suggestions from the floor

interpn.m assumes equally spaced data, as per ndgrid.m. It does not support nonuniformly spaced data. griddatan.m allows c...

9 years ago | 0

| accepted

Answered

Help using lastwarn.m

>> [msgstr, msgid] = lastwarn; >> msgstr msgstr = Out of range or non-integer values truncated during conversion to...

Help using lastwarn.m

>> [msgstr, msgid] = lastwarn; >> msgstr msgstr = Out of range or non-integer values truncated during conversion to...

9 years ago | 0

| accepted

Question

Help using lastwarn.m

I have code which does: [msgstr, msgid] = lastwarn; warning('OFF', msgid); dostuff(); %generates a waring message warni...

9 years ago | 2 answers | 0

Question

Optimization Problem: Suggestions from the floor

Im running MATLAB 2010B and have the optimization toolbox (but not the global optimization toolbox). I am not sure if I can use...

9 years ago | 2 answers | 0

Answered

gunzip.m is very slow

no one replied:( I wrote my own stuff in C#. It now takes around 3 mins and not 152...

gunzip.m is very slow

no one replied:( I wrote my own stuff in C#. It now takes around 3 mins and not 152...

9 years ago | 0

| accepted

Question

gunzip.m is very slow

I am running MATLAB 2010b, win7, 64 bit, quod core, 16GB RAM. I have a large number of csv.gz files, between 200MB and 6GB in s...

9 years ago | 1 answer | 0

Question

fnplt, splines and figure properties - problems with inbuilt MATHWORKS function

I have some 3D data and I plot into a B-spline: Z2 = repmat(z, [1, size(z,1)]); tol = 0.1E-5; sp = spaps({x,y},Z2,tol...

9 years ago | 1 answer | 0

Answered

Basic Imagesc Question -- 2D Matrix

patch.m is the correct function to use.

Basic Imagesc Question -- 2D Matrix

patch.m is the correct function to use.

9 years ago | 0

| accepted

Question

BAR: Stacking identical data

c = NaN(2,5); c(1,:) = rand(1,5); c(2,:) = randi(10,1,5); c = sort(c,2); bar(c(1,:), c(2,:), '...

9 years ago | 1 answer | 0

Question

Basic Imagesc Question -- 2D Matrix

I have a 2D matrix. I wish to plot it in a particular way. The first col, I wish to represent the values on the y-axis. The s...

9 years ago | 2 answers | 0

Answered

Making a MATLAB movie (AVI) including the axis

solved: movegui(h, 'onscreen'); rect = get(h,'Position'); rect(1:2) = [0 0]; data = randn(20,1); for t = 1: 100 ...

Making a MATLAB movie (AVI) including the axis

solved: movegui(h, 'onscreen'); rect = get(h,'Position'); rect(1:2) = [0 0]; data = randn(20,1); for t = 1: 100 ...

9 years ago | 1

| accepted

Question

Making a MATLAB movie (AVI) including the axis

I want to make a movie file (avi) which when played back on a non-matlab PC includes the axis, titles etc. h=figure; movegui(...

9 years ago | 1 answer | 1

Question

Time Series Objects

Hello. I say: fid = fopen(myPath); M = textscan(fid, '%s %s %s %f %d %f %f %d %d', 'delimiter', ',', 'EmptyValue', NaN); ...

9 years ago | 0 answers | 0

Answered

Microsoft Visual C++ Runtime Library. Runtime Error! Program E:\Matlab\bin\win32\matlab.exe

I spoke to mathworks technical support and they said they had never heard of this issue before. I then updated as much of the...

Microsoft Visual C++ Runtime Library. Runtime Error! Program E:\Matlab\bin\win32\matlab.exe

I spoke to mathworks technical support and they said they had never heard of this issue before. I then updated as much of the...

10 years ago | 0

| accepted

Question

Microsoft Visual C++ Runtime Library. Runtime Error! Program E:\Matlab\bin\win32\matlab.exe

This has come up quite a lot in the forums before, but there doesn't seem to be any decent answers to why its happening or how t...

10 years ago | 1 answer | 0

Answered

Batch Files and Matlab: Sequential execution and "start \wait"

right this seems to work: function myFunc status = false; while(~status) [mem sV] = memory; display(['The...

Batch Files and Matlab: Sequential execution and "start \wait"

right this seems to work: function myFunc status = false; while(~status) [mem sV] = memory; display(['The...

10 years ago | 0

Question

How can I detect how many instances of Matlab are currently running on my machine?

In task manager you can see how many matlab.exe there are. is it possible to tell this from inside a matlab function? eg I hav...

10 years ago | 1 answer | 0

Answered

Batch Files and Matlab: Sequential execution and "start \wait"

Hang on. can i not just call the bat file in a for loop in matlab using http://www.mathworks.com/help/techdoc/ref/system.html ...

Batch Files and Matlab: Sequential execution and "start \wait"

Hang on. can i not just call the bat file in a for loop in matlab using http://www.mathworks.com/help/techdoc/ref/system.html ...

10 years ago | 0

Answered

Memory Issues: Almost like clear doesn't fully work

please also see http://www.mathworks.com/matlabcentral/answers/5982-batch-files-and-matlab-sequential-execution-and-start-wait

Memory Issues: Almost like clear doesn't fully work

please also see http://www.mathworks.com/matlabcentral/answers/5982-batch-files-and-matlab-sequential-execution-and-start-wait

10 years ago | 0

| accepted

Question

Batch Files and Matlab: Sequential execution and "start \wait"

hi I am having to call a large number, N, (hundreds) of functions from inside a bat file (see the following url for reasons wh...

10 years ago | 6 answers | 0

Answered

Memory Issues: Almost like clear doesn't fully work

Since MATLAB uses a heap method of memory management, extended MATLAB sessions may cause memory to become fragmented. When memor...

Memory Issues: Almost like clear doesn't fully work

Since MATLAB uses a heap method of memory management, extended MATLAB sessions may cause memory to become fragmented. When memor...

10 years ago | 0

Question

Memory Issues: Almost like clear doesn't fully work

I am running 32b vista, Matlab 2009a. The machine has 4GB of RAM installed, PAE & 3G switch activated. the machine is dedicated ...

10 years ago | 4 answers | 0

Answered

Basic Regression with missing data question

Thank you for the reply. I try and do: Data = X; Design = y; [Parameters, Covariance, Resid, Info] = ecmmvnrmle(Data, De...

Basic Regression with missing data question

Thank you for the reply. I try and do: Data = X; Design = y; [Parameters, Covariance, Resid, Info] = ecmmvnrmle(Data, De...

10 years ago | 0

Question

Basic Regression with missing data question

I have a matrix of predictors size (M x N), where N is the number of predictors (cols) and M is the number of observations (rows...

10 years ago | 1 answer | 2

Question

instantaneous phase from a power spectrum

I have manually generated a power spectrum for an AR(2) time varying process (which I have incidentially scaled by the variance ...

10 years ago | 1 answer | 0

Answered

MEX ERRORs: Calling C++ code from MATLAB

I tried replacing the values.h as suggested by Ashish. It removed one error but then more sprung up. Petter: Unclear on what ...

MEX ERRORs: Calling C++ code from MATLAB

I tried replacing the values.h as suggested by Ashish. It removed one error but then more sprung up. Petter: Unclear on what ...

10 years ago | 0

Question

MEX ERRORs: Calling C++ code from MATLAB

I am trying to run <http://www-lagis.univ-lille1.fr/~davy/code/Davy_TVAR_code.tar.gz this code> (GZipped Tar Ball) in MATLAB. Th...

10 years ago | 4 answers | 0