Domanda

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

oltre 9 anni fa | 3 risposte | 1

Domanda

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

oltre 9 anni fa | 3 risposte | 0

Risposto

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

oltre 9 anni fa | 1

Domanda

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

oltre 9 anni fa | 2 risposte | 0

Domanda

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?

oltre 9 anni fa | 3 risposte | 0

Domanda

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

oltre 9 anni fa | 2 risposte | 0

Domanda

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

oltre 9 anni fa | 1 risposta | 0

Domanda

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

quasi 10 anni fa | 1 risposta | 0

Domanda

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

quasi 10 anni fa | 2 risposte | 0

Domanda

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

quasi 10 anni fa | 1 risposta | 0

Domanda

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

circa 10 anni fa | 0 risposte | 0

Domanda

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

circa 10 anni fa | 3 risposte | 3

Domanda

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

circa 10 anni fa | 2 risposte | 0

Domanda

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

oltre 10 anni fa | 2 risposte | 0

Domanda

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

oltre 10 anni fa | 1 risposta | 0

Domanda

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

oltre 10 anni fa | 3 risposte | 2

Domanda

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

oltre 10 anni fa | 2 risposte | 0

Domanda

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

oltre 10 anni fa | 0 risposte | 0

Domanda

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

oltre 10 anni fa | 2 risposte | 0

Domanda

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

oltre 10 anni fa | 1 risposta | 0

Domanda

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

oltre 10 anni fa | 1 risposta | 3

Domanda

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

oltre 10 anni fa | 1 risposta | 0

Domanda

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

quasi 11 anni fa | 0 risposte | 0

Domanda

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

quasi 11 anni fa | 1 risposta | 1

Domanda

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

oltre 11 anni fa | 3 risposte | 1

Domanda

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

oltre 11 anni fa | 1 risposta | 0

Domanda

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

oltre 11 anni fa | 2 risposte | 0

Domanda

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

quasi 12 anni fa | 1 risposta | 1

Domanda

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

quasi 12 anni fa | 1 risposta | 0

Risposto

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

quasi 12 anni fa | 0