질문

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

6년 이하 전 | 답변 수: 3 | 1

질문

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

6년 이하 전 | 답변 수: 3 | 0

답변 있음

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

6년 이하 전 | 1

질문

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

6년 이하 전 | 답변 수: 2 | 0

질문

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?

약 6년 전 | 답변 수: 2 | 0

질문

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

약 6년 전 | 답변 수: 1 | 0

질문

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

약 6년 전 | 답변 수: 1 | 0

질문

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

6년 이상 전 | 답변 수: 1 | 0

질문

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

6년 이상 전 | 답변 수: 2 | 0

질문

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

6년 이상 전 | 답변 수: 1 | 0

질문

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

6년 이상 전 | 답변 수: 0 | 0

질문

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

6년 이상 전 | 답변 수: 3 | 2

질문

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

6년 이상 전 | 답변 수: 2 | 0

질문

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

7년 이하 전 | 답변 수: 2 | 0

질문

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

7년 이하 전 | 답변 수: 1 | 0

질문

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

7년 이하 전 | 답변 수: 2 | 1

질문

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

7년 이하 전 | 답변 수: 2 | 0

질문

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

7년 이하 전 | 답변 수: 0 | 0

질문

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

7년 이하 전 | 답변 수: 2 | 0

질문

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

약 7년 전 | 답변 수: 1 | 0

질문

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

약 7년 전 | 답변 수: 1 | 3

질문

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

약 7년 전 | 답변 수: 1 | 0

질문

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

7년 이상 전 | 답변 수: 0 | 0

질문

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

7년 이상 전 | 답변 수: 1 | 1

질문

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

8년 이하 전 | 답변 수: 3 | 1

질문

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

약 8년 전 | 답변 수: 1 | 0

질문

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

8년 이상 전 | 답변 수: 2 | 0

질문

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

8년 이상 전 | 답변 수: 1 | 1

질문

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

8년 이상 전 | 답변 수: 1 | 0

답변 있음

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

8년 이상 전 | 0