# K E

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

**Content Feed**

提问

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

7 years 前 | 1 个回答 | 1

### 1

个回答提问

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

7 years 前 | 1 个回答 | 0

### 1

个回答提问

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

7 years 前 | 1 个回答 | 0

### 1

个回答提问

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

7 years 前 | 1 个回答 | 0

### 1

个回答提问

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

7 years 前 | 0 个回答 | 0

### 0

个回答提问

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

7 years 前 | 1 个回答 | 0

### 1

个回答提问

Faster sliding window statistics?

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

7 years 前 | 2 个回答 | 1

### 2

个回答提问

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

7 years 前 | 1 个回答 | 0

### 1

个回答提问

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

7 years 前 | 1 个回答 | 1

### 1

个回答提问

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

7 years 前 | 0 个回答 | 0

### 0

个回答提问

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

7 years 前 | 1 个回答 | 0

### 1

个回答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-...

7 years 前 | 0

提问

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

7 years 前 | 2 个回答 | 0

### 2

个回答提问

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

7 years 前 | 1 个回答 | 0

### 1

个回答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 <...

7 years 前 | 0

提问

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

7 years 前 | 1 个回答 | 0

### 1

个回答提问

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

7 years 前 | 2 个回答 | 0

### 2

个回答提问

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

7 years 前 | 1 个回答 | 0

### 1

个回答提问

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

7 years 前 | 1 个回答 | 0

### 1

个回答提问

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

8 years 前 | 0 个回答 | 0

### 0

个回答提问

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

8 years 前 | 2 个回答 | 0

### 2

个回答提问

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

8 years 前 | 1 个回答 | 0

### 1

个回答提问

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

8 years 前 | 1 个回答 | 0

### 1

个回答提问

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

8 years 前 | 1 个回答 | 0

### 1

个回答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...

8 years 前 | 0

提问

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

8 years 前 | 2 个回答 | 0

### 2

个回答提问

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

8 years 前 | 2 个回答 | 0

### 2

个回答提问

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

8 years 前 | 4 个回答 | 0

### 4

个回答提问

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

8 years 前 | 2 个回答 | 0

### 2

个回答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...

8 years 前 | 3

| 已接受