Answered
argin for a class method ?
NARGIN does not currently (as of R2012a) work on class methods. However, you might be able to get the information you want by i...

mer än 12 år ago | 2

| accepted

Answered
Problem with plotyy and grid
It looks like zooming in a PLOTYY axes is known to be problematic and lead to tick marks disappearing. If this functionality is...

mer än 12 år ago | 0

Answered
alternatives to putting multiple placeholders
Since all of your data has the same format, you can let FPRINTF repeat the format specifier over all of your data. Here is an e...

mer än 12 år ago | 1

Answered
Simulink Multiplot graph
If you are using the Simulink Scope, then you can add titles to your axes plots by right-clicking one and selecting _Axes Proper...

mer än 12 år ago | 0

Answered
Searching for group of letters in a structure or character string
I would suggest you write a single-input function that takes a struct and returns whether that struct contains "tcp". Once you ...

mer än 12 år ago | 1

Answered
faster way of using fprintf
You might try using REPMAT to specify one format for the numeric data that you repeat for the number of numbers you have. For e...

mer än 12 år ago | 1

| accepted

Answered
how to save a graph in jpg or any other image format
From your figure, select File->Save as and choose a file type in the dialog. If you need to save your figure programmatically, ...

mer än 12 år ago | 1

Answered
Plot in a new figure
With COPYOBJ, you should be able to specify the highest level object to copy, and then that object along with its children will ...

mer än 12 år ago | 0

Answered
Help to rename files in order of date and time created
If "last modified" date is a good enough proxy for "created" date, then you can use DIR to find the dates for each file. You co...

mer än 12 år ago | 0

Answered
matlab interfacing
Some toolboxes have support for communicating with external devices via USB. See <http://www.mathworks.com/products/instrument/h...

mer än 12 år ago | 0

Answered
While/for loop to write a set of values only when they are in a certain range.
I would suggest a combination of ALL with logical indexing and masking: dataToWrite = XY(all((XY >= 400) & (XY <= 500), 2),...

mer än 12 år ago | 1

| accepted

Answered
3D plot making smooth
It might be helpful to see a code example of what you have tried. Have you tried using SURF to create a surface plot from your ...

mer än 12 år ago | 2

Answered
Fit figure size to textbox
You could compute your desired figure Position from the annotation and then set it, but you'll have to manage the Units consiste...

mer än 12 år ago | 1

| accepted

Answered
Convertion between empty matrix and Null
It is informative to inspect the dimensions of []: >> size([]) ans = 0 0 In equality checks, the ...

mer än 12 år ago | 1

Answered
overloaded subsref and display vs. command line
When you call "disp(c.name)", you are explicitly requesting an output argument from c.name and as a result NARGOUT returns 1 in ...

mer än 12 år ago | 1

Answered
Work with Array
Logical indexing can be a good way to remove or manipulate elements in an array. In your case, let's say you have an array of i...

mer än 12 år ago | 0

| accepted

Answered
How to use function "scatter3(y)" to show the image of a 3D matrix?
SCATTER3 takes its data as vectors and interprets them as the locations to place circles. In the help example for SCATTER3, the...

mer än 12 år ago | 0

| accepted

Answered
External graphics in GUI
Line annotations can be added directly to a figure. For example, this code adds a couple of lines to divide a figure into 4 squ...

mer än 12 år ago | 0

| accepted

Answered
How to plot wind rose according to u and v components
In addition to searching MATLAB documentation, also look at the File Exchange for user-contributed utilities. The <http://www.m...

mer än 12 år ago | 0