Answered
Calling timer function from within another function
doc timerfind

15 years ago | 0

Answered
avoding loops by vectorization
outer2 = bsxfun(@plus,(d_del(1,:).')*cos(t),x_i.'); produces the same result as your loop.

15 years ago | 1

Answered
Suduko solver
There are many sudoku files on the FEX, perhaps you could look there: <http://www.mathworks.com/matlabcentral/fileexchange/?t...

15 years ago | 0

| accepted

Answered
Weird result difference between cell mode and a straight run
There should be no difference. Any chance you're calling the same cell twice and it's changing itself?

15 years ago | 0

Answered
Symbolic imaginary number conversion
double(real(sym(3+4i))) Extract the real component only.

15 years ago | 0

| accepted

Answered
show an image as categorised
Perhaps you could convert it to be identical to a label image and then use |label2rgb| to show it?

15 years ago | 0

Answered
inducing correlation with contraints
Add a scalar to your mean. It's impossible to fix a variance and a mean on a normal distribution and then constrain it to not i...

15 years ago | 0

Answered
Function returning multiple vectors
[a b c] = func_name() %define a b c a = {'lorem','ipsum'} b = [1 10] c = {'Dolor','amet'} end Call it from...

15 years ago | 2

Answered
Smooth out a surf plot
Yes that's not difficult at all! Use |interp2| to interpolate your surface to a finer grid. doc interp2 *Addendum* X = ...

15 years ago | 3

| accepted

Answered
Desktop layout
Ewww undockage. I keep the current directory/workspace tabbed together, the command window is always showing and the editor i...

15 years ago | 1

Answered
A script to create a single matrix from matrix in different matlab files
<http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F FAQ>

15 years ago | 0

Answered
finding region
CC = bwconncomp(~I,4); CC.PixelIdxList will contain the linear indices. To get the sub indices either use |regionprops| ...

15 years ago | 1

Answered
can anyone find the bug in my 3 line code.
clear for n = -20:20 % Compute Fourier series coefficients c(n + 21) = quad(@(x)(exp(sin(x).^6).*exp(-1i*x*n)),0,pi,1e-4...

15 years ago | 0

| accepted

Answered
displaying two images in a single figure
huh? like a doc subplot %? Or do you want the images to be meshed together? *Addendum* I = double(imread('cameraman.ti...

15 years ago | 0

| accepted

Answered
How big is the polynomial that sym2poly can hold?
|2.8823e+17|

15 years ago | 1

Question


Using SLICE on a 3D Image Volume
Hi Guys, I have what should be a simple problem but what I'm sad to say I can't figure out. I have a 3-dimensional image volum...

15 years ago | 2 answers | 0

2

answers

Answered
Math Question_ Combination
That's a fun little challenge before lunch break: [xx yy zz] = ndgrid(1:10); vals = unique(sort([xx(:),yy(:),zz(:)],2),'ro...

15 years ago | 1

Answered
Please help me fix this "Error: Function definitions are not permitted in this context. "
That is how you _define_ the function, not how you call it: function y = truthtable(x) %save this as truthtable.m y =...

15 years ago | 1

| accepted

Answered
Need help with 3-D plotting
If you have the symbolic math toolbox, you may want to look at |ezsurf|

15 years ago | 1

| accepted

Answered
Exporting array
save('FileName.mat','yourmatrix')

15 years ago | 0

Answered
Unique function cell array conflict
It's a cell array but not a cell array of strings. unique({magic(2),magic(2),rand(2)}) Fail, your error message. un...

15 years ago | 1

| accepted

Answered
How to compute space-time gradients in video processing
doc gradient

15 years ago | 0

Answered
standard deviation and mean
help plot ?

15 years ago | 0

Answered
Reverse matrix position
doc flipud xflipped = flipud(x)

15 years ago | 0

Answered
visdiff, Can you include a tolerance?
isclose = @(x,y)isequal(size(x),size(y))&&all(abs(x(:)-y(:))<10^-10) isclose(84.97246558175599,84.972465581758897) *Edit Per...

15 years ago | 1

| accepted

Answered
Creating Structure Names Dynamically
Don't do it! <http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F FAQ4.6>

15 years ago | 2

Answered
Connect bwlabeled components
Using |bwconncomp| on a three dimensional image will group them in 3d. You'll have to call it on each individual slice to see h...

15 years ago | 2

| accepted

Answered
plotting two maps with different colormaps using subplot
This has pretty good reviews: <http://www.mathworks.com/matlabcentral/fileexchange/7943-freezecolors-unfreezecolors FEX:freez...

15 years ago | 0

| accepted

Answered
Solving two linear equations with two variables
xy = [2 3; 5 2]\[12;3]

15 years ago | 0

| accepted

Load more