Answered
HOW can i restart ML?
Hit the little 'x' in the upper right corner or the red button if you're on a Mac. You can also run: quit or ex...

13 years ago | 0

| accepted

Answered
Does anyone know of a generalized intersection test?
There are lots of 2d/3d versions of this on the FEX: <http://www.mathworks.com/matlabcentral/fileexchange/index?page=2&term=i...

13 years ago | 0

Answered
How to exit a GUI program?
Well to insure that there aren't errors, put in conditionals before doing something that would error. For example: if you hav...

13 years ago | 2

Answered
dominant color for an RGB image
colors = 'RGB'; I = imread('peppers.png'); [~,idx] = max(sum(sum(I,1),2),[],3); dominant = colors(idx)

13 years ago | 2

Answered
Error using inlineeval, Error in inline/subsref, Newton method HELP!
Don't use |inline|. Use anonymous functions: <http://www.mathworks.com/help/releases/R2012b/matlab/matlab_prog/anonymous-fun...

13 years ago | 0

Answered
Masking out non-roi area
The simplest way is just to index or multiply by the mask of the ROI: I = imread('cameraman.tif'); R = roipoly(I); ...

13 years ago | 1

| accepted

Answered
How to return the height of a bounding box
Use |regionprops|, with the _'BoundingBox'_ option. The height is the the "width" of the first dimension (rows). doc regio...

13 years ago | 0

| accepted

Answered
How can i increase the speed of matlab 2012 for simulink?
First, bump your Java Heap Space up a little it. Home Tab -> Preferences -> General -> Java Heap Space. Then restart ML

13 years ago | 0

Answered
How can I create this sort of list or 1xn matrix?
First, don't define variables like this. Instead create a vector: nv = 10:5:500; Now you can index into it nv(1) ...

13 years ago | 1

Answered
how to 3D grid plot with fine spacing
Your_stuff axis tight %tighten the axes to the data.

13 years ago | 0

Answered
help me do while function
You are yusing |&&| operators indicating that x has to be less than 59 and greater than 78. This isn't possible! You probabl...

13 years ago | 0

| accepted

Answered
Matlab Coder error in C++ code generation
Anonymous functions are not supported for codegen. You will have to work around this by using a function handle to a regular fu...

13 years ago | 0

| accepted

Answered
I suddenly cannot save m-files anymore. What can I do about that?
We have a few reports of this happening (including from me!) so please contact us so we can learn more about it. One user res...

13 years ago | 0

Answered
Undefined function or variable "idxBest" in kmeans
which -all kmeans It looks like you have something shadowing the Statistics Toolbox's |kmeans()|

13 years ago | 0

Answered
How do I close a specific figure
hFig = figure; surf(peaks); To close that figure: close(hFig)

13 years ago | 0

Answered
i want to alter dpi
In |print|? Specify the _rnumber_ print(gcf,'-r300')

13 years ago | 0

| accepted

Answered
Convert cell array to string
x = rand(1,10)>0.5; num2str(x) If _x_ was a cell array of strings you could always call |char()| x = cellstr(num2st...

13 years ago | 2

Answered
Given a vector, how to pair them by nearest?
doc knnsearch If you have the Statistics Toolbox this sounds like your _magic_ command. Of course, if you just need a |m...

13 years ago | 0

| accepted

Answered
How to I create a dynamic popup-menu?
<http://www.mathworks.com/matlabcentral/fileexchange/24861-41-complete-gui-examples> See *[22:24,28]*

13 years ago | 1

| accepted

Answered
How to save the axes with xtick, ytick, legend and title in GUI?
What do you mean by "save the axes"? If you save the figure, all of the above information will be saved (see, |doc hgsave| and ...

13 years ago | 0

Answered
Find biggest number of variables and also it´s ID-number
First: <http://www.mathworks.com/matlabcentral/answers/57445 FAQ> Second: doc max You'll see [maxValue, index] =...

13 years ago | 0

Answered
How do I extract a vector of results from a map?
use the |values()| methods of the _myMap_ object. myMap.values({4,7})

13 years ago | 0

| accepted

Answered
Assigning a colormap to bwlabel image representing imageprops
Here's how I'd do it. There is probably a more elegant way: %An image I = imread('rice.png'); X = I>140; %binary CC =...

13 years ago | 0

| accepted

Answered
Can I install MATLAB R2006a on a MacBook Pro with Intel Core 2 Duo processor
Alright, I'll put in the Sales word here: There have been _a lot_ of great developments since 2006. You may wish to contact ...

13 years ago | 0

Answered
extrapolation.: Negative values obtained
<http://mrkwr.wordpress.com/2006/11/08/mark-twain-on-the-perils-of-extrapolation/> And the usual warning...

13 years ago | 0

Answered
Finding maximum y value corresponding to same x values.
xy = [ 1 5 1 7 1 9 2 8 2 22 2 11 5 5 5 10 5 20]; [uv,~,idx] = unique(xy(:,1)); %what do they correspond to? xm...

13 years ago | 0

Answered
plot, Invalid first data argument
dbstop if error Then run the above *.m file. It will stop with the debugger and you'll be able to investigate what is goin...

13 years ago | 0

Answered
sharpe ratio in Financial time series toolbox
Just run: edit sharpe Scroll down and you can see _exactly_ what it's doing. Looks like likes 75:79 are the engine.

13 years ago | 0

Answered
Why is wavread not working on MATLAB?!?!
which -all wavread Sounds like you either have a shadowed |wavread| or you have edited the original file.

13 years ago | 0

Answered
Get bin label associated with 2D histogram of x,y data
Yea, you'll be able to do this using |histc()| and |accumarray()|: x = ceil(rand(1000,1)*10); %x y = ceil(rand(1000,1)*...

13 years ago | 1

Load more