Answered
how to create a region of interest in simulink
If you have the Computer Vision System Toolbox then most of the functionality described by ImageAnalyst is available in Simulink...

12 years ago | 0

| accepted

Answered
sub2ind.m -- trying to use with a 2D matrix
data(IDY,:) To reorder all rows or for columns data(:,IDY)

12 years ago | 0

Answered
how can I find the minimum distance from convex boundary
<http://www.mathworks.com/matlabcentral/fileexchange/24484-geom3d> No reason to reinvent the wheel, compare the distance betw...

12 years ago | 0

Answered
Create 3D Volume of interest (VOI)
A thought: You could use |imfreehand| on the first slice. |imfreehand| does not have a _'Position'_ option that you can set....

12 years ago | 0

| accepted

Answered
I have the matrix a=[5 5 10 10 2 4 5],I want the result to be d=[5 1 2 7;10 3 4 0;2 5 0 0;4 6 0 0],
a=[5 5 10 10 2 4 5], clear d; [u,~,iy] = unique(a,'stable'); for ii = numel(u):-1:1 lhs = [u(ii) find(iy==ii).']; ...

12 years ago | 0

Answered
how to makeEdit Text as bassword Edit Text ?
<http://www.mathworks.com/matlabcentral/fileexchange/24861-41-complete-gui-examples Matt's UIs> See GUI_37.

12 years ago | 0

Answered
Morphological function with flat structuring element on 3D images
X = false(11,11,11); X(6,6,6) = true; Xd = imdilate(X,strel('disk',3)) implay(Xd); With three-d ones block: ...

12 years ago | 0

Answered
Finding the Index number that corresponds to a specific value
*EDIT* If you want the dimensional indices of the maximum value in the matrix, use |max| and |ind2sub| x = rand(3,3,3); ...

12 years ago | 2

| accepted

Solved


Schrödinger dog
Everyone knows that dogs are less unpredictable than cats. But is that proven? Is that measurable at all? YES! NOW IT IS! ...

12 years ago

Answered
Spatial Referencing: fitgeotrans not defined
|fitgeotrans| was released in R2013b.

12 years ago | 0

| accepted

Answered
Passing a string to a function
Just pass in x^2 [x,z]=ode45(@(x,z) F(x,z,a,x^2),[x0,xf],[z10,z20]); It's throwing an error because inside of F you're t...

12 years ago | 0

Answered
Are admin privileges required for changing Matlab settings?
Yes. UAC privileges are required to make some changes such as editing any MATLAB shipped file including the shipped |pathdef.m|...

12 years ago | 1

Answered
The PUBLISH tab is missing in 2012a
The publish tab exists as a little white icon in R2012a. This is a prime reason why we implemented the toolstrip - to make thin...

12 years ago | 0

| accepted

Answered
Will upgrading Matlab or Excel fix this problem?
XLSREAD calls the Excel COM api to open the file. If the 2002 version of Excel does not support *.xlsx, which a quick search in...

12 years ago | 0

| accepted

Answered
How can I segment an object with a hole in it from an image (bagel problem)?
I would just |xor| with the |imfill(...,'hole')| image: I = imread('bagel.png'); BW = I>10; BagelHole = xor(BW,imfill...

12 years ago | 0

| accepted

Answered
what is the lowercase L in this expression?
A hint: clear i sqrt(-1)==i

12 years ago | 0

Solved


Number Persistence
A number's persistence is the number of steps required to reduce it to a single digit by multiplying all its digits to obtain a ...

12 years ago

Solved


Swap two numbers
Example Input: a = 10 b = 20 Output a = 20 b = 10

12 years ago

Answered
sometimes i lost >> ,what should i do?
Use: *ctrl+c* Or on a Mac *cmd+.*

12 years ago | 0

| accepted

Answered
How to open or read an image with float 32 format type?
imshow(I,[]) Use [] to force imshow to show the full range rather than the default range of [0 1] where everything greater ...

12 years ago | 0

Answered
XLabel lowered but a bit out of the eps printed file
The figure's _PaperPosition_ and _PaperUnits_ control this. Have you tried <http://www.mathworks.com/matlabcentral/fileexchan...

12 years ago | 0

| accepted

Answered
Evaluating a function defined by "sym" command
Use |subs|: syms a b x f = a*x^2+b*x; subs(f,{a,b,x},{1,2,magic(3)}) And for more info: doc subs

12 years ago | 0

| accepted

Answered
how to add a constraint condition to fsolve?
|fsolve| does not provide the ability to use constraints. You'll need |fmincon| for this.

12 years ago | 1

Answered
How can i sort a matrix with loops?
x = [1 2 5 4] For example, t switch the 5 and the 4 x([3 4]) = x([4 3]) %switch linear indices.

12 years ago | 0

Answered
How to transpose a row into a column?
A = A'; or A = A.';

12 years ago | 21

Answered
Is dynamic allocation of structures allowed?
Can you allocate on the fly: * Yes. Use dynamic fieldnames to create additional fields as necessary <http://www.mathworks...

12 years ago | 0

Answered
substitute each element of a vector into a matrix without using loop
So: vector1=[1:1:10]; x = vector1; matrix1=[4*x 5*x ; 4*x 2*x]; Or is x symbolic? %% clear x; syms x matrix1=[...

12 years ago | 0

Answered
Using all cores with parfor
And because you don't have the Parallel Computing Toolbox, |parfor| will run serially anyway. There is more overhead with |parf...

12 years ago | 0

| accepted

Answered
Correlation values shown by 'nntraintool -> regression plots' differs when calculated manually for 'dividerand' function
|dividerand| uses _random_ indices. From the <http://www.mathworks.com/help/releases/R2013b/nnet/ref/dividerand.html doc> ...

12 years ago | 0

| accepted

Answered
help In NAN problem
Anything + NaN yields NaN. Use |nansum()| to sum ignoring nans. doc nansum

12 years ago | 0

Load more