Community Profile

Contact

Top 5% contributor

6 downloads

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

851 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

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 5 months 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 12 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 5 months ago

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

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

8 downloads

2 years ago

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

Solve this!

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

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

7 downloads

6 months ago

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

Asked 1 year ago

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

Answered 1 year 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 ...

Answered 3 years ago

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