Question

Can I modify the banner for a MATLAB web-app

when running a particular web app, there is a fat banner labelled "MATLAB Web Apps" at the top of the browser screen. There is a...

5 months ago | 0 answers | 0

Answered

Why does javaclasspath.txt not set the static javaclasspath when I re-start MATLAB

Answering my own question (because it showed up on the automated Related Content search) - see this Answer <https://uk.mathwo...

Why does javaclasspath.txt not set the static javaclasspath when I re-start MATLAB

Answering my own question (because it showed up on the automated Related Content search) - see this Answer <https://uk.mathwo...

1 year ago | 0

| accepted

Question

Why does javaclasspath.txt not set the static javaclasspath when I re-start MATLAB

<https://blogs.mathworks.com/loren/2016/07/11/clearing-the-air-in-your-matlab-session/?s_tid=srchtitle#comment-46425 Here's> a n...

1 year ago | 1 answer | 0

Question

Did R2018a change the Exception ID for non-existing directory / folder

My code broke in R2018a when the MException id apparently changed from 'MATLAB:cd:NonExistentDirectory' into 'MATLAB:cd:NonEx...

1 year ago | 0 answers | 0

Submitted

dirtab(in)

Tabulate directory list (dir results as table also with extension)

1 year ago | 0 downloads |

Question

Can DatabaseDatastore work with Oracle, for example?

According to the doc here <https://uk.mathworks.com/help/database/ug/databasedatastore.html DatabaseDatastore> object supports...

1 year ago | 1 answer | 0

Answered

How to paste nicely into Excel from MATLAB variable editor?

Thanks for your point. I don't have OpenOffice but I confirm that behaviour I first complained about still applies in MATLAB R20...

How to paste nicely into Excel from MATLAB variable editor?

Thanks for your point. I don't have OpenOffice but I confirm that behaviour I first complained about still applies in MATLAB R20...

2 years ago | 0

Solved

Combine the first and last names

MATLAB R2016 provides a rich set of functions to work with string arrays. In this problem, you will be given two string arrays o...

2 years ago

Answered

Moving Average Filter: A doubt

Yes, the 2 lines you wrote do achieve what you want. The filter function is causal and inclusively ends at t0. The much newer fu...

Moving Average Filter: A doubt

Yes, the 2 lines you wrote do achieve what you want. The filter function is causal and inclusively ends at t0. The much newer fu...

2 years ago | 0

Question

What do you think of "Did you mean clearvars -except".....?

I often use clearvars -except, e.g. clearvars -except temperature loads speeds but because I don't sub-vocalize the hyph...

3 years ago | 2 answers | 0

Answered

How do I find the index of a datapointon a MATLAB plot?

Surely the approved method for this is to use a data cursor? I fear that it may respond slowly to navigation if you have a milli...

How do I find the index of a datapointon a MATLAB plot?

Surely the approved method for this is to use a data cursor? I fear that it may respond slowly to navigation if you have a milli...

3 years ago | 0

Answered

I want to conver the excel dateformat('27-03-2013 06:00:00') in to matlab yearday i.e 31 jan 2013 = 31 and `1st Feb 2013 = 32

Consider: t = {'27-03-2013 06:00:00' % in text form, apparently from Excel '09-02-2013 12:00:00' } % an example m...

I want to conver the excel dateformat('27-03-2013 06:00:00') in to matlab yearday i.e 31 jan 2013 = 31 and `1st Feb 2013 = 32

Consider: t = {'27-03-2013 06:00:00' % in text form, apparently from Excel '09-02-2013 12:00:00' } % an example m...

3 years ago | 0

| accepted

Answered

How do I read the text between href tags and return the results in a cell array?

You can try something like >> RE='<a[\s]+href="(?<target>.*?)"[^>]*>(?<text>.*?)</a>'; >> list=regexp(html, RE, 'names')...

How do I read the text between href tags and return the results in a cell array?

You can try something like >> RE='<a[\s]+href="(?<target>.*?)"[^>]*>(?<text>.*?)</a>'; >> list=regexp(html, RE, 'names')...

3 years ago | 0

| accepted

Answered

Extract hyperlink from data retrieved through urlread()

By default hyperlinks are rendered in the command window. You already have the underlying text that you want in your variable bu...

Extract hyperlink from data retrieved through urlread()

By default hyperlinks are rendered in the command window. You already have the underlying text that you want in your variable bu...

3 years ago | 0

| accepted

Answered

Load data from .MAT into .XML

With a single use-case you could just write your own function by expanding the example given in MATLAB help <http://uk.mathworks...

Load data from .MAT into .XML

With a single use-case you could just write your own function by expanding the example given in MATLAB help <http://uk.mathworks...

3 years ago | 0

Answered

detect debug mode

I also needed an answer to this question! I was pleased just now to find here on Answers that feature('IsDebugMode') does the tr...

detect debug mode

I also needed an answer to this question! I was pleased just now to find here on Answers that feature('IsDebugMode') does the tr...

3 years ago | 3

Answered

How to paste nicely into Excel from MATLAB variable editor?

_It is not directly possible. From Mathworks:_ I understand that you would like to paste cells with strings from the MATLAB V...

How to paste nicely into Excel from MATLAB variable editor?

_It is not directly possible. From Mathworks:_ I understand that you would like to paste cells with strings from the MATLAB V...

4 years ago | 0

| accepted

Question

How to paste nicely into Excel from MATLAB variable editor?

One can readily paste data from Excel into a MATLAB cell array in the variable editor using Paste Excel Data (Ctrl-Shift-V), but...

4 years ago | 7 answers | 2

Submitted

datenum2datetime(T, vars)

Convert numeric datenum array, or given columns of table or dataset, to new datetime class

4 years ago | 0 downloads |

Submitted

Apply Standard+ Keyboard Shortcuts Keys to a Figure Window

Make regular+ Keyboard Shortcuts work after a Figure window grabs focus from the desktop.

4 years ago | 1 download |

Answered

How do I invoke a shadowed core MATLAB function (not built-in) from an overloaded function of same name

A colleague gave me this answer, which I have used. I put the following code into the top of my overlay function (print() in my ...

How do I invoke a shadowed core MATLAB function (not built-in) from an overloaded function of same name

A colleague gave me this answer, which I have used. I put the following code into the top of my overlay function (print() in my ...

5 years ago | 3

| accepted

Question

How do I invoke a shadowed core MATLAB function (not built-in) from an overloaded function of same name

In an application I wanted to add a calling jacket for MATLAB's print. I was trying to add a print option -dsvg which used the g...

5 years ago | 2 answers | 0

Question

How can I detect when a figure's colormap is changed?

The most obvious way to change a figure's colormap is via the Edit/Colormap... menu, although controls such as those added with ...

5 years ago | 0 answers | 0

Answered

Initializing a struct with n-d fields.

An alternative approach just using builtin functions C = cell(numel(field),1,2,3,4); % pre-allocate cell-array to required ...

Initializing a struct with n-d fields.

An alternative approach just using builtin functions C = cell(numel(field),1,2,3,4); % pre-allocate cell-array to required ...

5 years ago | 0

Question

Where did my Service Requests go?

The look and feel of the service request history in my TMW account appears to have had a makeover. While this looks like a wel...

5 years ago | 1 answer | 1

Solved

Determine if input is odd

Given the input n, return true if n is odd or false if n is even.

5 years ago

Solved

Find the sum of all the numbers of the input vector

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

5 years ago

Solved

Column Removal

Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

5 years ago