Community Profile

Contact

Top 5% contributor

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

19 downloads

15 days ago

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

accepted

1

Answered 7 months ago

sounds like you are not running the built-in plot [matlabroot '\toolbox\matlab\graph2d\plot.m'], seeing as it fails within M-cod...

614 views

Responded 1 year ago

Further to my comment (see above), the old behaviour can be had by restoredefaultpath; matlabpath(strrep(matlabpath, use...

Answered 2 years ago

Using |handle()| on a numeric graphics handle turns it into an object, e.g. ax = handle(gca); % ax is a scalar object o...

2 Answers

3

Asked 2 years ago

As an enthusiast for the dataset class, I notice with interest a new class table in the latest MATLAB release (in the promo vide...

1 Answers

2

Asked 1 year ago

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

0

Asked 7 months ago

the short answer to your question would be NO, see <http://www.mathworks.co.uk/help/compiler/unsupported-functions.html> Pro...

Answered 1 year ago

It is easiest to share your analysis results from MATLAB via a web-page by using the Publish feature with the output sent to or ...

Answered 3 years ago

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

I find that |warning('message', a1, a2,...)| treats args a1 etc differently to |warning('message_id', 'message', a1, a2, ..., an...

Asked 3 years ago

4 downloads

5 months ago

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

Solve this!

1 year ago

Given a and b, return the sum a+b in c.

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

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

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

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

Asked 3 days ago

I usually invoke this window with the short-cut Ctrl-Shift-F, although it is also found in the main MATLAB command window Edit m...

0 Answers

From this UK office running R2011a, we can't see any files at all in the File Exchange from inside MATLAB. How is for your? Is t...

Running in MS Windows I sort of expect Ctrl-Tab to switch active tabs/files in the editor. This happens in other Windows applica...

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

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

5 downloads

2 years ago

Did you consider using regular expressions, e.g. regexprep('some text ee1 some more text ee1 ee1', 'ee1', {'FIRST' 'SECON...

I guess you appreciate |fprintf(1,f,x)| can be used as a replacement for |disp(x)| but the format string |fmt| e.g. |'%s\n'| or ...

You could publish to PDF direct from MATLAB. Also, if you have the possibility to Print to PDF on your system and printing from ...

Consider the following >> A=[1 2 3; 4 5 NaN] , B=[1 2 3; NaN 5 NaN ] A = 1 2 3 4 5 NaN B...