Beantwortet
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...

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

Beantwortet
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...

mehr als 12 Jahre vor | 0

Beantwortet
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....

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
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).']; ...

mehr als 12 Jahre vor | 0

Beantwortet
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.

mehr als 12 Jahre vor | 0

Beantwortet
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: ...

mehr als 12 Jahre vor | 0

Beantwortet
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); ...

mehr als 12 Jahre vor | 2

| akzeptiert

Gelöst


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! ...

mehr als 12 Jahre vor

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

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 12 Jahre vor | 0

Beantwortet
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|...

mehr als 12 Jahre vor | 1

Beantwortet
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...

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

Gelöst


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 ...

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

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

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
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 ...

mehr als 12 Jahre vor | 0

Beantwortet
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...

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 1

Beantwortet
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.

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 21

Beantwortet
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...

mehr als 12 Jahre vor | 0

Beantwortet
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=[...

mehr als 12 Jahre vor | 0

Beantwortet
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...

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
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> ...

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

Mehr laden