A résolu


Too mean-spirited
Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...

environ 14 ans il y a

A résolu


radius of a spherical planet
you just measured its surface area, that is the input.

environ 14 ans il y a

A résolu


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

environ 14 ans il y a

A résolu


Pangrams!
A pangram, or holoalphabetic sentence, is a sentence using every letter of the alphabet at least once. Example: Input s ...

environ 14 ans il y a

A résolu


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

environ 14 ans il y a

A résolu


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

environ 14 ans il y a

A résolu


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

environ 14 ans il y a

A résolu


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

environ 14 ans il y a

A résolu


Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

environ 14 ans il y a

A résolu


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

environ 14 ans il y a

A résolu


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

environ 14 ans il y a

A résolu


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

environ 14 ans il y a

A résolu


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

environ 14 ans il y a

A résolu


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

environ 14 ans il y a

Réponse apportée
Jpeg text rendering when saving.
Try <http://www.mathworks.com/matlabcentral/fileexchange/23629 export_fig> on the file exchange.

environ 14 ans il y a | 0

Réponse apportée
Copying and Pasting 3-D Plots
<http://www.mathworks.com/matlabcentral/answers/21962-export-figure-to-microsoft-outlook See this question>.

environ 14 ans il y a | 0

Réponse apportée
OpenGL and print
To get transparency in vector graphics output, export your figure to an <http://www.mathworks.com/matlabcentral/fileexchange/740...

plus de 14 ans il y a | 0

Réponse apportée
Save a figure to PDF or EPS with non-standard fonts
The file exchange submission <http://www.mathworks.com/matlabcentral/fileexchange/23629 export_fig> now supports font correcting...

plus de 14 ans il y a | 0

Question


Save a figure to PDF or EPS with non-standard fonts
If I generate a figure using some fancy fonts, for example like this: plot(rand(3)); set(gca, 'FontName', 'Georgia'); ...

plus de 14 ans il y a | 5 réponses | 6

5

réponses

Réponse apportée
Print specific figure in GUI
The <http://www.mathworks.com/matlabcentral/fileexchange/23629 export_fig> package contains a function called isolate_axes. You ...

plus de 14 ans il y a | 2

Réponse apportée
Export figure to Microsoft Outlook
This code will copy a figure to the clipboard as an image: imclipboard('copy', export_fig()); Both <http://www.mathworks.com...

plus de 14 ans il y a | 4

| A accepté

Réponse apportée
Transparent background for figures
You can edit the eps file generated by print, and remove the line which creates the background rectangle, thus making the backgr...

plus de 14 ans il y a | 6

| A accepté

Réponse apportée
What is your favorite way to export figure for use in LaTeX?
I create the graph or image in a MATLAB figure on screen exactly as I want it to appear in the paper. Then I save the figure as ...

plus de 14 ans il y a | 0

Réponse apportée
Multiple Figures to PDF's
<http://www.mathworks.com/matlabcentral/fileexchange/23629 Export_fig> has an -append option which you can use to save multiple ...

plus de 14 ans il y a | 7

Réponse apportée
matlab cannot save my figure
Instead of saveas, use: hgsave(1, ['C:\users\lefou\desktop\back/' jd '/' Outputname '.fig'], '-v7.3'); From the documentatio...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
Saving an image with no gui
Use print instead of saveas.

plus de 14 ans il y a | 0

Réponse apportée
startup.m problem
Since you call startup_mtex from your startup file it adds mtex to the MATLAB path on startup. You therefore don't need to add i...

plus de 14 ans il y a | 0

Réponse apportée
Line 129 in saveas function is slow!
If the question were instead "How can I make saveas faster?", I'd say - Change line 129 to: if ~isempty(format) && ~isem...

plus de 14 ans il y a | 1

Réponse apportée
How to save a MATLAB graphic in a right size .pdf?
<http://www.mathworks.com/matlabcentral/fileexchange/23629 Export_fig> saves the figure at the dimensions it appears at on scree...

plus de 14 ans il y a | 3

Réponse apportée
Printing Axes
With <http://www.mathworks.com/matlabcentral/fileexchange/23629-exportfig export_fig> you can specify a list of handles of the a...

plus de 14 ans il y a | 2

| A accepté

Charger plus