Answered
I'm really stuck here....
doc syms doc diff doc ezplot doc text

13 years ago | 0

| accepted

Answered
How do I load in an image from a uint16 tiff file? (R2012b)
Are you positive it is the same Tiff container and that it was not somehow corrupted? I would recommend contacting us with th...

13 years ago | 0

Answered
How to create a Mesh for an irregular shape
So it sounds like you want a triangulation. There are tools for that, but the more information you can give us the better. I...

13 years ago | 0

Answered
Buttondownfcn callback on live video data (preview)
I am guessing that |preview| is nullifying your _ButtonDownFcn_ (just an educated guess though). Thus you would need to reinsta...

13 years ago | 0

Answered
How to calculate a gradient of a mesh created from a matrix?
doc gradient doc imgradient %IPT required doc imgradientxy %IPT required

13 years ago | 0

| accepted

Answered
Undefined function 'initDistPar' for input arguments of type 'double'.
Run: dbstop if error Then when the debugger stops: which -all initDistPar The output of this will enlighten you....

13 years ago | 0

Answered
speed up intersect, setdiff functions
Look at |ismember| and |ismembc| (two output form). You will have to implement the and/or/xor logic yourself, but these sho...

13 years ago | 0

Answered
How can I generate a matrix with the same vector in all the lines?
A = repmat(1:3,n,1) And to learn more: doc repmat

13 years ago | 2

| accepted

Answered
Speed optimization of ACCUMARRAY via MEX
How fast do you want it? val = rand(3000,1); idx = ceil(rand(3000,3)*10); t = 0; for ii = 1:100; tic; V = accu...

13 years ago | 1

Answered
how to adjust the size of the cross
You could set the line's _'MarkerSize'_ to be smaller. h = plot(..) set(h,'MarkerSize',10);

13 years ago | 0

| accepted

Answered
swap letters 2 by 2 in a string.
str = 'a':'g'; eo = mod(numel(str),2); %even odd str(1:end-eo) = flipud(reshape(str(1:end-eo),2,[])) %swap

13 years ago | 0

Answered
Creating a 3-d histgoram
And what do you propose a 3d histogram to look like? You could use <http://www.mathworks.com/matlabcentral/fileexchange/23897...

13 years ago | 0

Answered
Where can I find the best tutorials/texts on how to export a solution of a PDE equation created in PDE toolbox to the command window to fit equations which include the PDE solution to real data?
I fyou coudl give us an example that would probably be best. BUt some friends for your journey: doc sprintf doc disp dos...

13 years ago | 0

Answered
Reading from GUI edit boxes using a self made function
Hi Luka, I see two possibilities for the behavior you are seeing: # Are you running the *.m file or just opening the figur...

13 years ago | 0

Answered
change the element-by-element organization into a plane organization
So if this is a simple example of your struct: S = struct('field1',num2cell(1:10),'field2',num2cell(repmat(pi,1,10))) Th...

13 years ago | 0

Answered
setting environment paths in matlab
On Windows: [~,result] = system('path'); addpath(result(6:end))

13 years ago | 0

Answered
Legends display incorrect markers
Apparently the children order being returned is not what you expect. I would recommend explicitly saving the handles rather tha...

13 years ago | 0

Answered
Spaces for readability in code
# My eyes don't like having to parse an entire monitor. Though I do like spaces *and* commas in concatenations: func...

13 years ago | 0

Answered
Title causes error when trying to plot graph
That means you have a variable named _title_ which title whos title To resolve it clear or rename that variable: ...

13 years ago | 3

| accepted

Answered
How to ignore constraint that cannot be satisfied with fmincon?
You could always put a |try/catch| around it but I would recommend spending a little time trying to figure out what is causing i...

13 years ago | 0

Answered
In a binary image, can I selectively remove one of the blobs interactively?
You're in luck (!) - I wrote it here: <http://www.mathworks.com/matlabcentral/answers/42558#answer_52367 BlobRemover>

13 years ago | 0

Answered
How can I save a huge matrix to a mat file?
Of course it can! You just have to save it in _-v7.3_ format. save A.mat A -v7.3 doc save %for more info

13 years ago | 4

| accepted

Answered
Why do I get this result??
<http://blogs.mathworks.com/loren/2012/05/14/why-is-answer-to-3-a-7-unexpected/ Loren's Blog>

13 years ago | 0

Answered
How do I create a set of 20 random binary numbers (only 0 and 1) but such that 0 or 1 does not repeat 4 times in a row?
How about: x = [0 0 0 0 0 1 0 1 0 0 1 1 1 1 0 1 1 1 1 0]; %to test it x = strrep(x,[0 0 0 0],[0 0 1 0]); x = strrep(x,[1 ...

13 years ago | 0

Answered
How to plot the points of intersection between a sliced plane (MRI data) and a line?
Might want to try <http://www.mathworks.com/matlabcentral/fileexchange/764-sliceomatic FEX:slice-o-matic>

13 years ago | 0

| accepted

Answered
Hi,How can i solve a formula
doc solve

13 years ago | 0

Answered
plot bar graph in the same graph
Plot the two bar graphs together at the same time: bar([1 2],[1 2;pi exp(1)])

13 years ago | 0

Answered
Missing legend entries on plotyy
Explicitly tell |legend()| which lines to draw: legend([L1 L2 L3 L4],'y1','y2','y3','y4')

13 years ago | 0

| accepted

Answered
How to find similar rows in two matrices?
You could try |ismember| with the _'rows'_ option. But this will require them to be *equal* not similar. Alternatively, you co...

13 years ago | 1

Load more