Answered
Histogram Shape Function Question
How are you displaying the result? It's possible you're viewing it over only a specific range (e.g. 0-1) and the values range f...

14 years ago | 1

| accepted

Answered
convert .p to .m
You can't convert it. You could ask the author for the *.m source file. That is the only way you can get the original *.m ...

14 years ago | 0

| accepted

Answered
I am preparing a gui for an application which performs steganography. I am done with the code. I am facing problem to code OK button.
Put the code that you want to be executed when pushing 'ok' in the ok button's callback function.

14 years ago | 0

Answered
Renaming str variables based on conditions
<http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F FAQ>

14 years ago | 0

Answered
Need help in pixel count!
Do you want the upper corner at 200,300 or the lefter corner at 200,300. Looking at the image I can't tell. Either way, you ...

14 years ago | 0

Answered
set(gcf,'Position') not working?
Sounds like the axes' property _DataAspectRatio_ is superseding the set of your position.

14 years ago | 0

Answered
3D matrx
Padding the volume is certainly one way to do it. Another way would be to make a transformation matrix that includes the variou...

14 years ago | 0

Answered
save pig image
Pigs are known to be stubborn occasionally, fortunately you're not trying to save a mule image. Does this work? imwrit...

14 years ago | 0

Answered
how do I trigger the _OutputFcn output assignments and figure delete when I use a button to close a GUIDE GUI
You could |uiresume()| in the figure's |deletefcn| or |closerequestfcn|.

14 years ago | 0

Answered
Efficient SORT function with random tie-breaking rule
For some reason this question came back to me when I was doing something completely unrelated the computer the other day. Will ...

14 years ago | 1

Answered
Issues with fminsearch
*Edit* So you have a vector, 1:101. You do a calculation of this with a function, g, and add some noise to the result. What...

14 years ago | 0

Answered
Value Interpolation.
A = your_matrix; B = reshape(repmat(A(1:8:end),7,1),1,[]); %extract values we care about/copy 'em/reshape to vector

14 years ago | 0

| accepted

Answered
using explcit parameters in fsolve gives error, how to solve this?
Whatever |planerenergy| is at line two, it doesn't have _g_ defined.

14 years ago | 1

Answered
Automatically Play Video Using Implay Function
I haven't been able to find a way to do it. It's easy to program it to stop or pause but not to play or resume... I'm sure wit...

14 years ago | 0

Answered
creating mxn matrix from mxnxp matrix [without jumbling elements]
A = repmat(magic(5),[1 1 6]); %easy to verify A = reshape(permute(A,[2 1 3]),size(A,1),[])'; %permute, pull columnwise to 2d,...

14 years ago | 1

| accepted

Answered
How to adjust the spaces between bars in bar3() function?
Change the width, like in the example in: doc bar3 Or you could use this utility to place bars in specific places: <h...

14 years ago | 0

Solved


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

14 years ago

Answered
Can I use a button to stop a GUI and the function and the script that started it?
Sure. Have the GUI, on exit by pushing a quit button (or the red 'x'), return a flag that when returned, is checked for in th...

14 years ago | 0

Answered
Minimum value in 2d matrix but with restriction
x2 = x; x2(~x) = inf; [val idx] = min(x2)

14 years ago | 1

Answered
drawing bounding box
<http://www.mathworks.com/matlabcentral/fileexchange/26296-draw-bounding-box>

14 years ago | 0

Answered
Menu Gui - how to have the menu box always displayed
I'm not clear on this: You have a menu, you have it generate a figure, but then it closes and you want it to stay open? ...

14 years ago | 0

Answered
bug in sortrows?
_xx_ looks sorted to me.

14 years ago | 0

Answered
how to add legends?
doc subplot doc legend

14 years ago | 0

Answered
3D surface (sine wave)
I'm not really clear on what you want: This: surf(bsxfun(@(x,y)sin(x)+sin(y),-pi:0.1:pi,(-pi:0.1:pi)')) or this: ...

14 years ago | 0

Answered
If I run separate instances of Simulink, will set_param affect all instances?
I can't say with any certainty, but I wouldn't expect it to. I _highly_ recommend that you check it! Open two ML sessions, r...

14 years ago | 0

Answered
Modifying second axes properties in plotyy
[ax h1 h2] = plotyy(1:10,'r',10:-1:1,'b') ax(2) works for me... Please post a full example that demonstrates the behavior...

14 years ago | 0

Answered
Matrix dimensions must agree.
_Error using - Matrix dimensions must agree._ That is an error with '-' (minus). Going to the only minus: Compare sizes:...

14 years ago | 0

Answered
Running .exe on MATLAB
doc system ?

14 years ago | 0

Answered
generat fig from m file
Unless you are talking about the 'exported' *.m file, the *.fig file and regular *.m file are not related and the figure cannot ...

14 years ago | 0

Answered
??? Reference to non-existent field 'matlab'.
dbstop if error Then generate the error and see where it's being called.

14 years ago | 0

Load more