Answered

Hump-day puzzler.

In response to Andrew's extra challenge for a solution in which |BLANK| returns |true|, here's an absolutely insane one: func...

Hump-day puzzler.

In response to Andrew's extra challenge for a solution in which |BLANK| returns |true|, here's an absolutely insane one: func...

circa 9 anni ago | 3

Answered

Hump-day puzzler.

Here's a pretty goofy answer: true) fprintf('I Love '); end; if (false

Hump-day puzzler.

Here's a pretty goofy answer: true) fprintf('I Love '); end; if (false

circa 9 anni ago | 6

Answered

What programming challenges would you pose to new users?

Designing simple GUIs can introduce newer users to a number of important concepts. For example... *Challenge:* Create a stopwa...

What programming challenges would you pose to new users?

Designing simple GUIs can introduce newer users to a number of important concepts. For example... *Challenge:* Create a stopwa...

circa 9 anni ago | 2

Answered

How to make a list of user's reputation ? :)

Here's yet another variation that uses Walter's idea of going through the pages of questions, fetching the question links, then ...

How to make a list of user's reputation ? :)

Here's yet another variation that uses Walter's idea of going through the pages of questions, fetching the question links, then ...

circa 9 anni ago | 3

Answered

How to compare two different cell arrays ?

The <http://www.mathworks.com/help/techdoc/ref/setdiff.html SETDIFF> function does what you want. It will give you the values in...

How to compare two different cell arrays ?

The <http://www.mathworks.com/help/techdoc/ref/setdiff.html SETDIFF> function does what you want. It will give you the values in...

circa 9 anni ago | 7

| accepted

Answered

How do I write a good answer for MATLAB Answers?

I'm generally in favor of pointing out when a key edit (i.e. correction) has been made to an answer for the following reasons: ...

How do I write a good answer for MATLAB Answers?

I'm generally in favor of pointing out when a key edit (i.e. correction) has been made to an answer for the following reasons: ...

circa 9 anni ago | 5

Answered

Using find in a 3d matrix in MATLAB.

When finding values in multidimensional (i.e. greater than 2-D) arrays using the function <http://www.mathworks.com/help/techdoc...

Using find in a 3d matrix in MATLAB.

When finding values in multidimensional (i.e. greater than 2-D) arrays using the function <http://www.mathworks.com/help/techdoc...

circa 9 anni ago | 21

| accepted

Answered

Declaring 'many' variables from work space into function workspace

Yet another option is to design your function to accept a <http://www.mathworks.com/help/techdoc/ref/varargin.html variable leng...

Declaring 'many' variables from work space into function workspace

Yet another option is to design your function to accept a <http://www.mathworks.com/help/techdoc/ref/varargin.html variable leng...

circa 9 anni ago | 0

Answered

MATLAB xlswrite function

The reason? Because <http://www.mathworks.com/help/techdoc/ref/xlswrite.html#bsnsz_b-13 the documentation> says so! ;) Excerpt:...

MATLAB xlswrite function

The reason? Because <http://www.mathworks.com/help/techdoc/ref/xlswrite.html#bsnsz_b-13 the documentation> says so! ;) Excerpt:...

circa 9 anni ago | 1

Answered

Outputting to string

You can do this using the function <http://www.mathworks.com/help/techdoc/ref/eval.html EVAL>: for i = 1:3 eval(['var_' i...

Outputting to string

You can do this using the function <http://www.mathworks.com/help/techdoc/ref/eval.html EVAL>: for i = 1:3 eval(['var_' i...

circa 9 anni ago | 2

| accepted

Answered

How to solve symbolic system of equations?

Easy, use the <http://www.mathworks.com/help/toolbox/symbolic/solve.html SOLVE> function: >> S = solve(Eqs) S = a:...

How to solve symbolic system of equations?

Easy, use the <http://www.mathworks.com/help/toolbox/symbolic/solve.html SOLVE> function: >> S = solve(Eqs) S = a:...

circa 9 anni ago | 0

| accepted

Answered

Need help writing a datacursormode Text Update Function to display high, low, close, date, & volume data as a Datatip on a plot made with the highlow function of the Financial Toolbox.

Since you want your data cursor to display data that is not on the plot, you will have to put that data in a place that the Text...

Need help writing a datacursormode Text Update Function to display high, low, close, date, & volume data as a Datatip on a plot made with the highlow function of the Financial Toolbox.

Since you want your data cursor to display data that is not on the plot, you will have to put that data in a place that the Text...

circa 9 anni ago | 1

| accepted

Answered

Compute opponent colour of RGB values

If you are talking about a <http://en.wikipedia.org/wiki/Opponent_process color opponent process>, I figured out a simple functi...

Compute opponent colour of RGB values

If you are talking about a <http://en.wikipedia.org/wiki/Opponent_process color opponent process>, I figured out a simple functi...

circa 9 anni ago | 1

Answered

How do I skip items in a legend?

To exclude items from a legend, you can specify the objects that you want to include as the first input argument to the “legend”...

How do I skip items in a legend?

To exclude items from a legend, you can specify the objects that you want to include as the first input argument to the “legend”...

circa 9 anni ago | 69

| accepted

Answered

Grayscaled Images to RGB

If |img| is your grayscale image, stored as a 2-D |uint8| array, you can create a red version by making |img| be the red color p...

Grayscaled Images to RGB

If |img| is your grayscale image, stored as a 2-D |uint8| array, you can create a red version by making |img| be the red color p...

circa 9 anni ago | 3

Answered

Output of delaunay function

As per <http://www.mathworks.com/help/techdoc/ref/delaunay.html the function documentation>, the matrix |tri| returned from DELA...

Output of delaunay function

As per <http://www.mathworks.com/help/techdoc/ref/delaunay.html the function documentation>, the matrix |tri| returned from DELA...

circa 9 anni ago | 2

| accepted

Answered

Working with a three dimensional matrix

If you're asking how you would index |k| in your loop to get a 2-D submatrix, you would do the following: l = k(:,:,i);

Working with a three dimensional matrix

If you're asking how you would index |k| in your loop to get a 2-D submatrix, you would do the following: l = k(:,:,i);

circa 9 anni ago | 1

Answered

clearing an instance of a structure variable

You can remove an element from a structure array the same way you can remove an element from any other type of array: a(1) = ...

clearing an instance of a structure variable

You can remove an element from a structure array the same way you can remove an element from any other type of array: a(1) = ...

circa 9 anni ago | 2

| accepted

Answered

How to generate symbolic variables dynamically at run-time?

You can generate your system of equations from a matrix of zeroes and ones using just the <http://www.mathworks.com/help/toolbox...

How to generate symbolic variables dynamically at run-time?

You can generate your system of equations from a matrix of zeroes and ones using just the <http://www.mathworks.com/help/toolbox...

circa 9 anni ago | 2

| accepted

Answered

Problem saving/loading structure with function handles

In the documentation for <http://www.mathworks.com/help/techdoc/matlab_prog/f2-38133.html#brfp2ff-1 Saving and Loading Function ...

Problem saving/loading structure with function handles

In the documentation for <http://www.mathworks.com/help/techdoc/matlab_prog/f2-38133.html#brfp2ff-1 Saving and Loading Function ...

circa 9 anni ago | 2

| accepted

Answered

How can I find what parameters are in an inline function.

You can use the ARGNAMES function (which is a method for inline objects) to get the arguments of the inline function as a cell a...

How can I find what parameters are in an inline function.

You can use the ARGNAMES function (which is a method for inline objects) to get the arguments of the inline function as a cell a...

circa 9 anni ago | 2

| accepted

Answered

Creating intersection lines in a semilogx graph

Addressing the first 3 points, it sounds like you want to create a datatip with crosshairs on one point of your curve. You can p...

Creating intersection lines in a semilogx graph

Addressing the first 3 points, it sounds like you want to create a datatip with crosshairs on one point of your curve. You can p...

circa 9 anni ago | 1

Answered

Is it possible to display a crosshair everytime a point is marked with the data cursor tool in MATLAB R2010b?

You can achieve this by modifying the |'UpdateFcn'| property of the <http://www.mathworks.com/help/techdoc/ref/datacursormode.ht...

Is it possible to display a crosshair everytime a point is marked with the data cursor tool in MATLAB R2010b?

You can achieve this by modifying the |'UpdateFcn'| property of the <http://www.mathworks.com/help/techdoc/ref/datacursormode.ht...

circa 9 anni ago | 3

Answered

Why am I getting an error message "undefined function" when using the LAGMATRIX function in MATLAB 7.10 (R2010a)?

Have you tried including that file using the <http://www.mathworks.com/help/toolbox/compiler/mcc.html MCC> archive option |-a|? ...

Why am I getting an error message "undefined function" when using the LAGMATRIX function in MATLAB 7.10 (R2010a)?

Have you tried including that file using the <http://www.mathworks.com/help/toolbox/compiler/mcc.html MCC> archive option |-a|? ...

circa 9 anni ago | 2

Answered

3D plot from imported Excel data

Your variable |Z| is still a column vector, since |size(test,2)| is 3 and thus the column index |3:size(test,2)| is still just 3...

3D plot from imported Excel data

Your variable |Z| is still a column vector, since |size(test,2)| is 3 and thus the column index |3:size(test,2)| is still just 3...

circa 9 anni ago | 4

Answered

Error creating a function handle using str2func in a function

The solution I found was to make a call to <http://www.mathworks.com/help/techdoc/ref/rehash.html REHASH> after you create each ...

Error creating a function handle using str2func in a function

The solution I found was to make a call to <http://www.mathworks.com/help/techdoc/ref/rehash.html REHASH> after you create each ...

circa 9 anni ago | 3

Answered

How can I remove all the paths for Toolboxes in MATLAB?

It sounds like you want to have MATLAB use _your_ functions instead of functions with the same name in other toolboxes. The easi...

How can I remove all the paths for Toolboxes in MATLAB?

It sounds like you want to have MATLAB use _your_ functions instead of functions with the same name in other toolboxes. The easi...

circa 9 anni ago | 6

Answered

Creating a matrix of blank spaces.

If you are only making a 1-D matrix (i.e. a row or column vector) then the function <http://www.mathworks.com/help/techdoc/ref/b...

Creating a matrix of blank spaces.

If you are only making a 1-D matrix (i.e. a row or column vector) then the function <http://www.mathworks.com/help/techdoc/ref/b...

circa 9 anni ago | 7

Answered

What does a "~" mean in the following code

This is the <http://www.mathworks.com/help/techdoc/ref/not.html logical NOT operator>, so |~isempty(E)| will evaluate to true wh...

What does a "~" mean in the following code

This is the <http://www.mathworks.com/help/techdoc/ref/not.html logical NOT operator>, so |~isempty(E)| will evaluate to true wh...

circa 9 anni ago | 6

| accepted

Submitted

ftoc (v1.2)

Creates a table of contents of functions contained in an m-file

circa 11 anni ago | 1 download |