Answered
What are the differences (if any) between Matlab system objects and class objects?
<http://www.mathworks.com/help/vision/gs/create-system-objects.html> There are a few things that come with system objects. M...

13 years ago | 0

Answered
how to generate random integer number in a fixed range in MATLAB, like between 1 to 10
doc randi and simple example: randi([1 10],40)

13 years ago | 7

| accepted

Answered
How to make a button visible in GUIDE?
set(hObject, 'visible','off'); Will only work if you are int he callback from that pushbutton. Otherwise _hObject_ will be...

13 years ago | 2

Answered
How to get the volume of a 3D concave shape?
I would recommend voxelizing it and then just summing the resulting three dimensional volumetric image. There are a few utiliti...

13 years ago | 0

| accepted

Answered
Which tool are you using to create the documentation of your MATLAB codes?
Also, an (impossible to remember) function: <http://www.mathworks.com/help/releases/R2012b/matlab/ref/builddocsearchdb.html b...

13 years ago | 0

Answered
Replacing characters in a string
One way: regexprep(strcell,'ly\>','') Match _ly_ at the end of the word \>. Replace it with nothing.

13 years ago | 2

| accepted

Answered
Algorithm behind regionprops for fitting ellipse?
edit regionprops And search for where it computes the ellipses. In R2012b, line 626:706.

13 years ago | 0

Answered
Create exe file from GUI
Start here: >>deploytool And then follow the steps. This doc may help as well: <http://www.mathworks.com/help/releases/...

13 years ago | 1

Answered
Help with Leave One Out Cross Validation
I would start with |crossval|. doc crossval It looks like |crossval| even has a builtin in option for _'leaveout'_ which...

13 years ago | 0

Answered
How can I "install" a function of file exchange in Matlab?
You just have to make sure that the function is saved in a folder that is on the MATLAB path. You can add folders to the path u...

13 years ago | 8

Answered
Supported MATLAB Functions for HDL Coder
<http://www.mathworks.com/help/releases/R2012b/hdlcoder/matlab-algorithm-design.html>

13 years ago | 2

| accepted

Answered
How can i create a contour map with a large set of data, using only the "maximum" points
It sounds to me like you want the convex hull of the points. You can find the points on the convex hull using <http://www.mathw...

13 years ago | 0

| accepted

Answered
Professional looking Matlab FAQ
That's what I have here: <http://www.mathworks.com/matlabcentral/answers/26359> I just need to find good answers to replac...

13 years ago | 1

| accepted

Answered
about Find difference set.
doc setxor Use the _'rows'_ flag.

13 years ago | 0

| accepted

Answered
For fminsearch: ??? Attempted to access params(3); index out of bounds because numel(params)=2.
|rand(1,2,2)| will create a 1x2x2 array. Perhaps you meant |rand(1,3)|?

13 years ago | 0

Answered
About running time in matrix.
The problem is that you are resizing the matrix each time the |if| criteria is met. This requires a memory copy and is very slo...

13 years ago | 0

| accepted

Answered
Can a GUI timer be made to regularly update during long calculations?
Hi Tim, You could use a |timer| on the main thread and then use <http://www.mathworks.com/help/releases/R2012b/distcomp/batch...

13 years ago | 0

| accepted

Answered
Simulating a Markov chain
If you also have the emissions matrix, you can use <http://www.mathworks.com/help/releases/R2012b/stats/hmmgenerate.html |hmmgen...

13 years ago | 0

Answered
GUIDE Static Text - Right Align Cuts Off Text
Just add a space to the end of the string: uicontrol('Style','Text','HorizontalAlignment','right',... 'String','3.142...

13 years ago | 0

Answered
how can i check if n2 is a sub number of n1? (HW qst.)
Here is a hint: a = 131245; b = 12; op = @(x)hidden_for_you_to_figure_out(x); pa = op(a); pb = op(b); isASub = false; ...

13 years ago | 0

| accepted

Answered
mfilename is not working for me
Might be able to get it from the command history: com.mathworks.mlservices.MLCommandHistoryServices.getSessionHistory

13 years ago | 0

Answered
how can i compute the length of an integer?
*Edit* nnz(num2str(int) - '-')

13 years ago | 1

Answered
How to use subtitution in solving equation ??
doc solve

13 years ago | 0

Answered
Generating an answer slowly, letter by letter (e.g. 0.25 second per letter)
doc timer doc pause One or both of these will likely help you.

13 years ago | 0

| accepted

Answered
How can i hold the current image or axis with it zoom level and apply other functions like imfill without resetting the axis to it default state?
Use the _zoom_ object's _ActionPostCallback_ to store some information about the zoom state,i.e. the axes' _'XLim'/'YLim'_. Then...

13 years ago | 0

| accepted

Answered
Vectorization help, separating an array into multiple arrays
Could you provide some small examples of the input variables - my guess is that vectorizing, although possible, will likely be s...

13 years ago | 0

| accepted

Answered
Multiple functions using indexation numbers
<http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F FAQ>

13 years ago | 2

| accepted

Answered
Saving image with the plots
How about: doc print doc saveas or: <http://www.mathworks.com/matlabcentral/fileexchange/23629 FEX:exportfig>

13 years ago | 0

Answered
how can i setxor a string with out getting a sorted result ?
In R2012a and later you can use the _'stable'_ option: setxor('hello','world','stable') And for more info doc setxo...

13 years ago | 0

| accepted

Answered
how can i get a matrix from an array like this:
M = a(sortrows(bsxfun(@(x,y)mod(x+y,numel(a))+1,1:numel(a),(1:numel(a))')))

13 years ago | 0

Load more