Question

How to extract x and y position of contour line?

In old matlab versions, I could extract x and y points along a contour line as shown below. This is incredibly useful in my work...

bijna 6 jaar ago | 3 answers | 1

Question

How to load in variable if it is present in a matfile?

I am having trouble with "conditional" loading of a variable from a matfile, depending on whether the matfile contains the varia...

bijna 6 jaar ago | 3 answers | 0

Answered

Text and Plot in PDF format

Could you do this following <http://www.mathworks.com/help/matlab/matlab_prog/publishing-matlab-code.html this approach>? There ...

Text and Plot in PDF format

Could you do this following <http://www.mathworks.com/help/matlab/matlab_prog/publishing-matlab-code.html this approach>? There ...

bijna 6 jaar ago | 1

Question

Why slow conversion from date in Matlab time to day of year?

I have a vector of dates in Matlab time convention which I need to convert to day of the year. The following code is slow (9 sec...

bijna 6 jaar ago | 2 answers | 0

Question

How to set default font size and style?

In R2015a, how do I set the default text for plot titles, ticklabels, and axes labels to 12 point normal font?

ongeveer 6 jaar ago | 2 answers | 0

Question

How to alter contour label properties?

How can I change contour label properties without getting the warning shown below? [cc, hh] = contourf(peaks); t = clab...

ongeveer 6 jaar ago | 1 answer | 0

Question

How to split a string and return only decimal numbers?

I would like to extract a vector x containing decimal numbers from this string, myString = 'YYYY MM DD hh mm .0200 .0325 ...

ongeveer 6 jaar ago | 1 answer | 0

Question

Problems with "help" and "doc" in R2014b

After installing R2014b, help and doc commands no longer work correctly. Is there a fix? Some background: * <http://www.mathw...

meer dan 6 jaar ago | 1 answer | 0

Question

Why "Unable to parse command history line" error?

Starting today, I get "Unable to parse command history line:" whenever I start Matlab. No other information is provided. I am r...

meer dan 6 jaar ago | 2 answers | 0

Question

How to speed up this code?

I would like fast code to find the index of the closest element of a vector to a scalar. Here's what I am doing now, someVe...

meer dan 6 jaar ago | 1 answer | 0

Question

How to combine different license types (and is it a good idea)?

I am (reluctantly) the administrator of licenses for a small group. Presently licenses are either <http://www.mathworks.com/help...

meer dan 6 jaar ago | 0 answers | 0

Question

How to accept an answer in a comment?

I submitted a question and someone answered correctly in a comment to my question. (Someone else answered in an answer, but that...

meer dan 6 jaar ago | 3 answers | 2

Question

How to prevent Matlab from freezing when doc help is opened?

I have R2013b and 22 figure windows are open. When I use doc at the command line to open help windows (for figure and print), Ma...

bijna 7 jaar ago | 2 answers | 0

Question

Shading to indicate a condition on a time series plot

I have a long time series, let's say of water level in a stream, shown on a line plot. I would like to shade in periods when a c...

bijna 7 jaar ago | 2 answers | 0

Question

How to eliminate "Edit Plot" arrow error in a copied figure?

I have a set of figures that I copy then delete using the code from <http://www.mathworks.com/matlabcentral/answers/133438-can-f...

bijna 7 jaar ago | 1 answer | 0

Question

Can figure numbers be re-assigned?

Is it possible to *re-assign a figure number* , for example if I have a Figure 55 open, can I make it Figure 2 as long as I don'...

bijna 7 jaar ago | 2 answers | 1

Question

Extract xdata and ydata from hggroup

I would like to extract the xdata and ydata values of "lines" in a <http://www.mathworks.com/help/ident/ref/bode.html bode> plot...

bijna 7 jaar ago | 2 answers | 0

Question

Why floating letters left behind from workspace pull-down App menu?

The Matlab window appears to generate floating letters in the Windows workspace. The following letters appear where the Matlab w...

bijna 7 jaar ago | 0 answers | 0

Question

How to pass in a list of variables to "load" function without using eval?

Is there a way to load in a list of variables from a file, if the list of variables is passed in? I would like to avoid using ev...

bijna 7 jaar ago | 2 answers | 0

Question

Can I dynanically reference a variable name, similar to dynamic field references?

I have a large mat file containing many different variables. I would like to load and process the variables by working through a...

ongeveer 7 jaar ago | 1 answer | 0

Question

How to make a subplot into a new standalone figure?

A colleague is giving me several fig files, each of which contains several subplots. What is the way that I can "copy" a subplot...

ongeveer 7 jaar ago | 1 answer | 3

Question

Can I run 2 versions of a function in 2 different Matlab sessions?

I am wondering if it is possible to run 2 versions of the same function in 2 different Matlab sessions. * Let's say I have a ...

ongeveer 7 jaar ago | 1 answer | 0

Question

How to avoid truncated block names when printing Simulink model?

I have a question about printing out a Simulink model. When printing I chose 'Include print log' to list all the blocks included...

meer dan 7 jaar ago | 0 answers | 0

Question

How did bdroot get its name?

I am curious how the function <http://www.mathworks.co.uk/help/simulink/slref/bdroot.html bdroot> got its name. Is "bdroot" an a...

meer dan 7 jaar ago | 1 answer | 1

Question

What happens if toolbox is not renewed

I am the (reluctant) administrator of a group of commercial Matlab licenses with some questions about toolbox renewals: * Wh...

bijna 8 jaar ago | 3 answers | 1

Question

Problem with indexing within a vector

I have two vectors, x and y. I would like to make third vector, z, which has the combined magnitude of x and y, i.e. sqrt(x.^2 +...

ongeveer 8 jaar ago | 1 answer | 0

Question

How to identify contiguous regions between two thresholds?

If I have a variable z at mapped locations x and y, is there way to obtain the x-y locations of the contour(s) enclosing any con...

meer dan 8 jaar ago | 2 answers | 0

Question

Is there a better way to capture the output of an external program?

In a Matlab script, I use a command-line program called <http://www.cpc.ncep.noaa.gov/products/wesley/wgrib2/ wgrib2> to extract...

meer dan 8 jaar ago | 1 answer | 1

Question

How do I parse this string?

I would like to parse the following string a='4:256404:val=9.999e+20:val=1.82:val=2.15:val=2.66:val=2.18:val=1.81'; to o...

meer dan 8 jaar ago | 1 answer | 0

Answered

read_grib order of data

While it is too late for your project, I will mention the <http://www.cpc.ncep.noaa.gov/products/wesley/wgrib2/ wgrib2> package,...

read_grib order of data

While it is too late for your project, I will mention the <http://www.cpc.ncep.noaa.gov/products/wesley/wgrib2/ wgrib2> package,...

meer dan 8 jaar ago | 0