221 total contributions since 2011

Use Matlab for statistics and time series analysis and Simulink for machine modeling. Fan of community-based learning like Matlab Answers; appreciate the help I've gotten here.

Professional Interests: Statistics; marine engineering and hydrodynamics; surface wave dynamics; motor design

Question

How to plot a vertical line at a certain datetime

I am using datetime to plot some time series data. I would like to add a vertical line to mark a certain date on the plot. How d...

más de 3 años ago | 1 answer | 1

Question

How to assign default values to function inputs

I have a function with some required inputs, heatContent = function(swRadiation, lwRadiation) If the user passes in [] f...

más de 3 años ago | 1 answer | 0

Question

How to set the number of x-axis ticks on a datetime plot?

If I plot a variable y at times given by a datetime vector t, the x-axis ticks are automatically chosen, t = [datetime('no...

más de 3 años ago | 1 answer | 0

Question

Fastest way to read in large mixed text file?

I have an ASCII file with 300000 lines with the following format: 01-01-1979T00:00:00 722816.000000 128.783100 0.027240 0.0...

más de 3 años ago | 1 answer | 0

Question

Matlab coder executable to run in Labview

I am new to Matlab <https://www.mathworks.com/products/matlab-coder/ Coder> and <http://www.ni.com/labview/why/ LabView> but int...

casi 4 años ago | 0 answers | 0

Question

How to speed up manipulations of plot with a lot of data

I have time series with 20000000 samples that I am plotting in R2016b for data exploration. I would prefer not to downsample or ...

casi 4 años ago | 1 answer | 0

Question

Faster sliding window statistics?

I use <http://www.mathworks.com/matlabcentral/fileexchange/12550-slidefun slidefun> to estimate statistics such as max, min, or ...

casi 4 años ago | 2 answers | 1

Question

Automatically generate program logic flow chart from mfile?

I just discovered <http://code2flow.com/# code2flow> which is great for mapping out the logical flow of code, for example when d...

casi 4 años ago | 0 answers | 0

Question

How to use datetime to plot value vs. hour of day, i.e. daily cycle?

Let's say I have a time series of humidity with <http://www.mathworks.com/examples/matlab/mw/matlab-ex44241397-plot-dates-and-du...

alrededor de 4 años ago | 1 answer | 1

Question

How to time out a Matlab command?

Is there a way to time out a Matlab command within a mfile, so that mfile execution resumes after a certain time spent on the Ma...

alrededor de 4 años ago | 0 answers | 0

Question

How to eliminate 'print -dmeta' crash?

Is there a way to either (a) prevent 'print -dmeta' from crashing Matlab, or (b) to preserve a figure window's aspect ratio when...

alrededor de 4 años ago | 1 answer | 0

Answered

How to retreive Windows shell hint for a file using Matlab?

It turns out this information is in the binary file itself and I used <http://www.mathworks.com/matlabcentral/fileexchange/9647-...

How to retreive Windows shell hint for a file using Matlab?

It turns out this information is in the binary file itself and I used <http://www.mathworks.com/matlabcentral/fileexchange/9647-...

alrededor de 4 años ago | 0

Question

How to close editor from the command line?

I accidentally opened a huge file in the editor and it won't close, and when I restart Matlab the editor reopens the huge file. ...

alrededor de 4 años ago | 2 answers | 0

Question

How to retreive Windows shell hint for a file using Matlab?

When you hover your cursor over a file in Windows 7, you get a 'shell hint' such as the 'Model State' property shown in the scre...

alrededor de 4 años ago | 1 answer | 0

Answered

How to save a command history of commands implemented yesterday from 3:00 pm to 5:00 pm?

If you did not set anything up ahead of time, I don't know if this can be done. But if you know ahead of time, you can use the <...

How to save a command history of commands implemented yesterday from 3:00 pm to 5:00 pm?

If you did not set anything up ahead of time, I don't know if this can be done. But if you know ahead of time, you can use the <...

alrededor de 4 años ago | 0

Question

How can I load a field from a saved structure?

For my work, it is convenient to store measurement data in structures with many fields. The structure is useful for keeping all ...

alrededor de 4 años ago | 1 answer | 0

Question

How can I add a patch which lies underneath an existing line?

If I have a plot containing a line, I would like to add a patch but have it appear under the line so the line remains visible. (...

más de 4 años ago | 2 answers | 0

Question

How can I pass control back to the MATLAB command prompt after keyboard command?

I am debugging some code and have inserted a keyboard command into a loop. The code generates a figure, then when it hits the ke...

más de 4 años ago | 1 answer | 0

Question

How to rewind in VideoReader?

If I have read several frames in VideoReader, how can I rewind to the first frame? In this example, let's say I stop the repla...

más de 4 años ago | 1 answer | 0

Question

Why "Name is nonexistent or not a directory" only when Adminstrator?

In the past couple days, Matlab has developed some strange behavior: If I run it as an administrator, it can't seem to access a ...

más de 4 años ago | 0 answers | 0

Question

How to check if handle is to a deleted axes?

I am running an old plotting routine in R2015b for the first time. It is crashing on a legend command because apparently the axe...

más de 4 años ago | 2 answers | 0

Question

How to extract user entered properties from Simulink Lowpass Filter block?

My colleague has a simulink model ('DataFiltering') which contains a block called 'Lowpass' where the user can enter values for ...

casi 5 años ago | 1 answer | 0

Question

Looking within search path for a directory containing a chosen string

I have many directories on my search path and would like to search for path directories that contain a certain string, say 'matl...

casi 5 años ago | 1 answer | 0

Question

Is trial overwriting my legitimate Matlab installation?

I have a paid-up installation of Matlab R2015a and many toolboxes. I want to try two other toolboxes and requested/received a tr...

casi 5 años ago | 1 answer | 0

Answered

Matlab v7 not compatible with FITDIST Function ? Anybody Knows???

<http://www.mathworks.com/help/stats/fitdist.html?refresh=true fitdist> seems to require the Statistics and Machine Learning Too...

Matlab v7 not compatible with FITDIST Function ? Anybody Knows???

<http://www.mathworks.com/help/stats/fitdist.html?refresh=true fitdist> seems to require the Statistics and Machine Learning Too...

casi 5 años ago | 0

Question

Why does linspace deliver unequal spacing?

I thought linspace was supposed to deliver a vector with perfectly even spacing, but there seems to be a slight difference in sp...

casi 5 años ago | 2 answers | 0

Question

How to interpolate and leave NaNs if long gaps?

I have a temperature measurement (x) which is sampled nearly-regularly in time (t), except for data dropouts (missing t,x values...

casi 5 años ago | 1 answer | 0

Question

Why can't I access day, juliandate?

I have R2015a and can see help for <http://www.mathworks.com/help/matlab/ref/day.html day> and <http://www.mathworks.com/help/ma...

casi 5 años ago | 4 answers | 0

Question

Why is ncread reading in times which are wrong by a year?

I am getting the wrong year when I read in data from the file below using ncread. url = 'http://nomads.ncep.noaa.gov:9090/d...

casi 5 años ago | 2 answers | 0

Answered

How to extract x and y position of contour line?

Just realized that the contour matrix cc now seems to contain x and y location data, pcolor(x, y, z); % Plot the data ho...

How to extract x and y position of contour line?

Just realized that the contour matrix cc now seems to contain x and y location data, pcolor(x, y, z); % Plot the data ho...

alrededor de 5 años ago | 2

| accepted