Answered
Splitting a matrix in subsets??
M1 = M( M(:,3) == 25,:) M2 = M( M(:,3) == 36,:) would seem to do the job in that case though that assumes that column 3 ...

12 years ago | 0

Answered
Why Matlab crashes when opening dialog window?
I have been having a similar problem with file browse dialogs in 2014a

12 years ago | 0

Answered
deactivate ButtonDownFcn ? stupid question
Can you not just turn your push button into a toggle and have it set ButtonDownFcn to [] if it is currently set to whatever you ...

12 years ago | 2

Answered
Overloading User Written Function
I think generally for this you would use a varargin type of input to your function. You can then test the length of varargin ...

12 years ago | 1

| accepted

Answered
how to change name of a file and save it in to a folder?
movefile( 'source', 'destination' ) should do that for you with some dir type access and file string manipulation on the fo...

12 years ago | 1

Answered
find equal element rows in a matrix
unique( sort( a, 2 ), 'rows' ) assuming a is your input array

12 years ago | 1

Answered
how can i remove the blue color?
colormapeditor will allow you to change just small parts of the colourmap so you can put a black or white background as jus...

12 years ago | 0

Answered
get Color/names of a subplot
You can replace 'xdata' and 'ydata' in that example with any lineseries property (assuming all children of your axes lineseries ...

12 years ago | 0

Answered
How to call member function of class in another m file in matlab?
You should be able to do this just the same in an m-file as on the command line. Simply as myObj = myClassName( args ); ...

12 years ago | 0

Answered
Sealed method inheritance in Heterogeneous arrays
If I understand correctly, 'Parent' is your class that derives directly from Matlab.mixin.Heterogeneous. That means that irre...

12 years ago | 2

Answered
How can ı set initial value about for statement ???
You can use a pre-defined array with a for loop. e.g. myArray = 22:100 for i = myArray ... end You can't change th...

12 years ago | 0

Answered
Is there an efficient method to remove leading underscores from a cell array of strings?
[b, c] = strtok( a, '_' ) b = strcat( b, c ) looks like it works.

12 years ago | 2

| accepted

Answered
How to run a loop that counts the number of intersections with non-background values along a row?
sum( myImage > 1, 2 ) should give you the sum for every row without needing a loop. If you really don't want every row the...

12 years ago | 0

Answered
How can I use a string to call a matrix with the same name?
Simplest option I can think of is to replace your ton of arrays in the workspace with a ton of arrays attached to a struct. T...

12 years ago | 1

Answered
How to get the new matrix after rotation
get( h, 'XData' ) get( h, 'YData' ) should give the rotated data values

12 years ago | 0

Answered
accessing a set of axes from different callback functions in a gui
If your axes are an integrated part of your GUI then you can just get them via handles and their tag under each push button, ens...

12 years ago | 1

| accepted

Answered
Best practice to pass large number of parameters to many functions?
Nowadays I generally use classes with a regular setup of a class (or many collaborating, but one front end at least) to run the ...

12 years ago | 2

Answered
How to package MCR with compiled program?
You need the installer, rather than the .exe. I think this is located in the 'for_redistribution' folder instead.

12 years ago | 1

Answered
How do I move the legend on my plot?
legend(...,'Location', 'location') allows you to either specify the 'location' as one of a huge number of pre-defined posit...

12 years ago | 0

Answered
Open second figure from GUI
I often use a combination of a class derived from handle (meaning it gets passed by reference) and listeners to achieve communic...

12 years ago | 0

Answered
How to obtain the Fourier transform of a filtered signal?
fft gives a complex result. That is what you are seeing in that figure - real vs imaginary on the x and y axes. You can view t...

12 years ago | 0

Answered
Lookup values in a 6-D matrix using indices from columns of another matrix.
sz = size( v_tbl ); lookup = v_tbl( sub2ind( sz, quant_sysplus(1,:,:), quant_sysplus(2,:,:), quant_sysplus(3,:,:), qua...

12 years ago | 0

| accepted

Solved


Add two numbers
Given a and b, return the sum a+b in c.

12 years ago

Solved


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

12 years ago

Solved


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

12 years ago

Question


Is it possible to create a function handle to a class property set method?
Probably a stupid question and I've searched the web and Matlab help for an hour with different search terms without luck so eit...

13 years ago | 1 answer | 2

1

answer