Answered
Global matrix assemblage
Step back and write out how to assemble to element stiffness matrices (transformed if necessary) into a big stiffness matrix. T...

15 years ago | 0

Answered
euclidean distances (fMRI)
%sample 2d data seed = [11 30]; others = round(rand(10,2)*50); %Engine dists = sqrt(sum(bsxfun(@minus,seed,others).^2,...

15 years ago | 0

| accepted

Answered
??? Subscripted assignment dimension mismatch.
dbstop if error %enter this at the command line Then run your program. It'll stop at the error, and look at the size of ...

15 years ago | 0

Answered
Force to display decimal places?
Sure, use |sprintf|. doc sprintf

15 years ago | 0

| accepted

Answered
splitting a video into frames using image function after using mmreader to read video file...
n=size('cell.avi') will say that n = [1 8] since 'cell.avi' is an eight letter long string (row vector of characters). Here...

15 years ago | 0

Answered
about 3d reconstruction
<http://www.mathworks.com/matlabcentral/fileexchange/?term=stereo+images FEX:stereo+images> Looks like this _doit4me_ might get...

15 years ago | 0

Answered
need help with if, else use
There are numerous questions equaivalent to yours. Start Here: <http://www.mathworks.com/matlabcentral/answers/?term=if+elseif+...

15 years ago | 0

Answered
append string to each element in string cell array
x_label = { '8' '16' '24' '32' '40'} x_labelGHz = cellfun(@(c)[c 'GHz'],x_label,'uni',false) One way

15 years ago | 2

Answered
Entropy Caluclation on a Masked Region: Basic Question
If you: open entropy you'll see that it deletes the zero values. This will lower the sum, however, as there are fewer value...

15 years ago | 1

| accepted

Answered
Regarding tutorials on Image processing toolbox
demo 'toolbox' 'image processing'

15 years ago | 0

Answered
Lighting only certain surfaces
Manually set the _facelighting_ property of each object: Z = membrane; H(1) = surf(Z); [x,y,z] = sphere(40); hold on; H...

15 years ago | 3

| accepted

Answered
changing variables in syms
subs(c,'J',0) since _J_ or _I_ has to be zero in the substitution and you want _I_ retained.

15 years ago | 0

| accepted

Answered
graphing colors
or: plot(x,y,'g'); and doc linespec for a full list of predefined colors.

15 years ago | 0

Answered
Matrix-vector boolean comparison
Sure: R = sum(bsxfun(@gt,M,V),2) Also note, just preallocating R would save you a lot of time for large _m_. R = zeros(...

15 years ago | 0

| accepted

Question


How to Fix Title Bars of Editor/Command Window/Workspace etc?
A time ago my editor/command window/workspace etc. quit showing their titles and are now just a thin bar. picture==numel(word...

15 years ago | 2 answers | 0

2

answers

Answered
matlab equivalent of "+="
for-loops automatically increment and any reassignment inside the loop will be reset at the next increment: for ii = 1:10 ...

15 years ago | 1

| accepted

Answered
How to overlap Contour on the selected Slice in 3D graphic?
Perhaps you're looking for |contourslice|? doc contourslice

15 years ago | 0

| accepted

Answered
How to make subplots in GUI that retains the plot?
Are you looking for: hold on ? *Edit per comment* figure; for ii = 1:4 subplot(2,2,ii); peaks; end

15 years ago | 0

Answered
A very strange cell array size-relaetd issue
dbstop if error at the command line; then run it with a data set that fails and analyze the sizes of the variables at the ass...

15 years ago | 0

| accepted

Answered
matrix vector substraction
M = bsxfun(@minus,z,y') assuming you want each row of y transpose (or column of y as it is) subtracted from each row of z. O...

15 years ago | 0

| accepted

Answered
Programming a GUI in multiple files
I would recommend keeping all of the callbacks in one file. However, you can easily have each callback call another mfile with ...

15 years ago | 0

Answered
HOW DEFINE THE CENTER ORIGIN OF THE MATRIX IMAGE)
center = floor(size(Your_Image)); %or ceil/round/fix when image is even you must decide the fractional operation

15 years ago | 0

| accepted

Answered
fill3 polygon
Will the polygon be convex? If so look at |convhull| or |convhulln| to determine the points. If not you'll need to come up wit...

15 years ago | 0

Answered
how to compute edge roughness for a binary region
Yes. You just have to define "smooth" and "rough" edges in terms that a computer can understand. I would recommend starting by...

15 years ago | 0

Answered
loops to define a matrix
bsxfun(@(x,y)(x+y)./(y.^2),(1:4).',1:3) _"Look Ma, No loops!"_ ~ Walter Roberson

15 years ago | 0

Answered
Mammogram - Detecting Skin Line need help
1) It may start from right to left, but it traverses all of the way across. Thus the furthest left point turns everything to t...

15 years ago | 0

Answered
Is it possible to add a textbox outside the axes of a plot figure window?
Change your figure units to pixels and then it'll be consistent. H = figure; set(H,'units','pix','size',...) %etc.

15 years ago | 0

Answered
M file problem - spacing
Highlight and click _"Smart indent"_?

15 years ago | 0

| accepted

Answered
How to manage a list of variables with parameters?
I would use a |struct| Students = struct('Grades',{'A';'B'},'Absences',[4;11]) etc. doc struct for more info

15 years ago | 1

Answered
inpolygon with alphashape
If you look at the polygon as you have it defined: imshow(poly2mask(500*x,500*y,526,526)) it appears you need to sort yo...

15 years ago | 0

Load more