Community Profile

Contact

Top 5% contributor

4 downloads

6 months 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 8 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...

657 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

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

6 downloads

1 month 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

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

0

Asked 1 month 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...

Asked 8 months ago

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

Answered 19 days 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 4 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

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

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

Asked 4 years ago

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

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

Answered 3 years ago