Risposto
Shrink a 1-D array (vector) by removing all the columns with a value of zero
Here is a good solution: NewSimpleArray = SimpleArray(SimpleArray ~= 0)

oltre 14 anni fa | 9

| accettato

Risposto
How to load Google Earth Toolbox?
You might need to <http://www.mathworks.com/help/techdoc/matlab_env/f8-28521.html update your toolbox path cache>. This is typi...

oltre 14 anni fa | 0

Risposto
How to save output arguments from functions called by timers
A simple option to communicate between your program and timer callback is to make the timer callback a nested function in your m...

oltre 14 anni fa | 0

| accettato

Risposto
radio button prompt
Radio buttons are typically used when there is a set of mutually exclusive options to choose from. For this use case, MATLAB pr...

oltre 14 anni fa | 0

| accettato

Risposto
fsolve
FSOLVE only accepts a one-input function. However, you can create an anonymous function and bind your second input to a particu...

oltre 14 anni fa | 0

Risposto
Modifying the dynamic Java classpath when Java objects are loaded
Steve Lord answered a similar question on the MATLAB Newsgroup. I think <http://www.mathworks.com/matlabcentral/newsreader/view...

oltre 14 anni fa | 0

Risposto
Problem with gaoptimset in unix
The GAOPTIMSET function is installed with Global Optimization Toolbox. Do you have that product installed? You can check with ...

oltre 14 anni fa | 0

| accettato

Risposto
Run Script file from Matlab
Try using MATLAB's FTP function. doc ftp

oltre 14 anni fa | 0

| accettato

Risposto
Problem accessing MATLAB functions
Do you have System Identification Toolbox installed? You can see a list of installed toolboxes by executing: ver In add...

oltre 14 anni fa | 2

| accettato

Risposto
Function referring to abstract class
Your problem description suggests to me that you might want to structure your classes according to the <http://en.wikipedia.org/...

oltre 14 anni fa | 2

| accettato

Risposto
Pi Day
The correct answer is <http://tauday.com Tau>.

oltre 14 anni fa | 2

| accettato

Risposto
Set text in GUI figure axis
A look through the <http://www.mathworks.com/help/techdoc/ref/text_props.html documentation for TEXT properties> shows the Paren...

oltre 14 anni fa | 1

| accettato

Risposto
logical indexing
Use LOGICAL to do the type conversion: a(logical(b))

oltre 14 anni fa | 2

| accettato

Risposto
manage a list of instances of a class
You might want to use a PERSISTENT variable within nodelist() to keep track of the nodes. For example: function varargout ...

oltre 14 anni fa | 0

| accettato

Risposto
Binary output formatting
Instead of displaying each piece of the string in the loop, you could append it onto a variable that is displayed once at the en...

oltre 14 anni fa | 0

| accettato

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

oltre 14 anni fa | 2

| accettato

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

oltre 14 anni fa | 0

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

oltre 14 anni fa | 1

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

oltre 14 anni fa | 0

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

oltre 14 anni fa | 1

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

oltre 14 anni fa | 1

| accettato

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

oltre 14 anni fa | 1

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

oltre 14 anni fa | 0

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

oltre 14 anni fa | 0

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

oltre 14 anni fa | 0

Risposto
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),...

oltre 14 anni fa | 1

| accettato

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

oltre 14 anni fa | 2

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

oltre 14 anni fa | 1

| accettato

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

oltre 14 anni fa | 1

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

oltre 14 anni fa | 1

Carica altro