Question

default behaviour of key press callback for matlab figure

When press a key, matlab automatically brings the command window to the front. But when I assign a customed keypressfcn to the ...

1 year ago | 1 answer | 0

Question

position of axis label

When changing the axis limits, the location of the axis label string remains at the center of the axis. But if I moved the label...

1 year ago | 1 answer | 0

Question

Automatic positioning of label/title of axes

After moving the string of xlabel/ylabel/title of an axes using the interactive tool, the position becomes fixed. In this case, ...

1 year ago | 0 answers | 0

Answered

Lanczos algorithm for eigenvalues

The builtin function eigs is what you want.

Lanczos algorithm for eigenvalues

The builtin function eigs is what you want.

2 years ago | 1

Question

What is the advantage of fliplr, flipud?

It's easy to flip along a dim using `end:-1:1`. So why design the builtin fliplr, flipud functions?

2 years ago | 1 answer | 0

Question

Is there a way to remove or rename a variable in a big MAT file?

I want to rename/remove a variable in very large MAT file but want to avoid load all the data, modify variables and write all ne...

3 years ago | 1 answer | 1

Question

What is "start simulink ..."

When I'm running `which` command, there is a "start simulink" message in the status bar. Why `which` is linked to simulink?

3 years ago | 0 answers | 0

Question

Is 2d colormap supported by matlab?

Generally in matlab we use 1D gradient colormap as <<http://blogs.mathworks.com/images/steve/2014/parula_part_2_01.png>> H...

3 years ago | 1 answer | 0

Question

Warnings/Errors when quit matlab

I got warnings when exit matlab Warning: The following error was caught while executing 'internal.hotplug.EventSource' ...

4 years ago | 0 answers | 0

Question

Is there existing function for great-circle least-square fit?

Is there existing function to fit a great circle to points on a sphere?

4 years ago | 0 answers | 0

Question

Is it possible to rotate the markers plotted by `plot` or `scatter`?

As for plot(1:3,1:3,'linestyle','none','marker','v'); or scatter(1:3,1:3,'v','filled'); Is it able to rotat...

4 years ago | 1 answer | 0

Question

Is there a way to add track-like boarder to the mapping axes?

As for the white-black alternative track boarder as in the following figure, how to make that in Matlab? <<http://gmt.soest.h...

4 years ago | 0 answers | 0

Question

How to plot the brightness lines in Matlab, as this picture?

<<https://d262ilb51hltx0.cloudfront.net/max/2000/1*3QWmqtaUPYW_hdNgQCf44g.png>> Higher dense the path, higher brighness shown...

4 years ago | 2 answers | 0

Answered

`distance` function doesn't work for ellipsoid

I found that it's a bug in .../toolbox/map/map/private/geodesicinv.m Two places of flat = ecc2flat(ellipsoid); ...

`distance` function doesn't work for ellipsoid

I found that it's a bug in .../toolbox/map/map/private/geodesicinv.m Two places of flat = ecc2flat(ellipsoid); ...

4 years ago | 0

| accepted

Question

`distance` function doesn't work for ellipsoid

e_84 = referenceEllipsoid('wgs84'); [d_84, b_84] = distance([1,2], [30,90], e_84); throw Error using / Matrix ...

4 years ago | 1 answer | 0

Answered

Can anyone explain how can this happen?

I found the doc. http://www.mathworks.com/help/matlab/matlab_prog/variable-names.html#btcg64o-1 Another potential source...

Can anyone explain how can this happen?

I found the doc. http://www.mathworks.com/help/matlab/matlab_prog/variable-names.html#btcg64o-1 Another potential source...

5 years ago | 0

| accepted

Question

Can anyone explain how can this happen?

function myfunctest subfcn_set('notafunc'); whos which notafunc notafunc subfcn_set('sin'); whos...

5 years ago | 2 answers | 0

Question

Will it be a good idea for MATLAB Answers provide functions enabling us follow/favorite a topic/question?

It seems there is no such utility yet.

5 years ago | 1 answer | 0

Question

Is there any function which returns the content of a variable as string?

We have to know the data type when using `sprintf` and it can convert limited types to string. disp(var) can show the conte...

5 years ago | 2 answers | 0

Question

Change the code when it's running

If a matlab script is running, in what situations the modifications of the code will take effects immediately for the running sc...

5 years ago | 2 answers | 0

Question

regarding the startup options

How do I know if it's ok to run my script with '-nojvm'? And what's the difference between '-nodesktop' and '-nodispaly -nosp...

5 years ago | 1 answer | 0

Question

What's the effect to start up Matlab with -nojvm?

I cannot use anything related to java, or only part of functions related to java?

5 years ago | 1 answer | 0

Question

Is it must necessary to apply a tapering to the signal before the bandpass filtering using filtfilt?

In the help doc of filtfilt, it says "filtfilt minimizes start-up and ending transients by matching initial conditions ..." I do...

5 years ago | 0 answers | 0

Question

Workaround for fake file in memory?

I have a mex function which reads data from a file and process it result = mex_process_data(string_path_to_file); The da...

5 years ago | 3 answers | 0

Question

In eqdazim mapping, how to plot a limited range of latitudes and longitudes with an origin off pole points?

I wanna plot a map in eqdazim (or other equal azimuth) mapping, with the origin at (50,20) and the outer frame boundary stopping...

5 years ago | 0 answers | 0

Question

How to calculate the middle point between two points on the Earth in matlab?

Given the latitudes and longitudes of two points, how to get the middle point efficiently? My trouble is there are millions o...

5 years ago | 2 answers | 0

Question

about the built-in matlab function decimate

In the matlab function 'decimate', the input signal is firstly lowpass-filtered, then downsampled. In the code, I found that ...

6 years ago | 1 answer | 0

Question

Is it possible to call a subfunction inside a function mscript?

Is it possible to call a subfunction inside a mscript function and get the returned value? e.g., the content of 'func.m' as b...

6 years ago | 3 answers | 0

Answered

energy of a signal in t and f domain

I found the solution myself. Normalizing spectral amplitude by fs will work. But I don't know why to do this.

energy of a signal in t and f domain

I found the solution myself. Normalizing spectral amplitude by fs will work. But I don't know why to do this.

6 years ago | 0

| accepted

Question

energy of a signal in t and f domain

The energy of a signal is expected to be the same in t and f domain. n = 1e4; dx = 0.25; x = rand(n,1) -0.5; ...

6 years ago | 2 answers | 0