Enviada


mpoly2mask - convert multiple polygons to a mask
Converts an object with multiple boundary contours to a logical mask

más de 9 años hace | 3 descargas |

Thumbnail

Respondida
Overlapping region of a single ROI is excluded by the mask
Hi Alessandro, When you say that you _"want to draw a closed ring shape with a single line"_, we might step-by-step reinterpr...

más de 9 años hace | 0

Respondida
Find strings that contain multiple substrings at the same time
Hi Sven, Here's how I would do it. It uses a call to *regexp* (you could also use *strsplit*) and one *cellfun*. The good thi...

más de 9 años hace | 0

Respondida
How can I replace a loop with arrayfun - problems with strrep
Hi Sven (congrats on the name), Here's a pretty direct way to do what you're trying to do. It uses regexp once and cellfun on...

más de 9 años hace | 0

| aceptada

Pregunta


Fit to just half a parabola
Hi there, I have some simple XY data, and I can fit a quadratic to it as follows: X = [25.4 30.48 35.56 40.64 45.72 5...

más de 9 años hace | 0 respuestas | 0

0

respuestas

Enviada


deploypcode(source_dir, target_dir, varargin)
DEPLOYPCODE recursively searches a directory for .m files, creating encrypted .p files with .m help

casi 10 años hace | 1 descarga |

Thumbnail

Respondida
how can i remove object bigger than x pixel
Hi Lukasz, Here's an example that removes all objects greater than 1000 pixels in area. You probably have your own *BW* image...

casi 10 años hace | 1

| aceptada

Pregunta


getframe difference in 2014b.... bug?
The following code run in 2014a and 2014b produces remarkably different results. I think it's a bug. figure('Position',[100...

casi 10 años hace | 1 respuesta | 1

1

respuesta

Enviada


octree - partitioning 3D points into spatial subvolumes
OcTree recursively splits a large set of points into smaller subvolumes. A QuadTree but in 3D.

alrededor de 10 años hace | 20 descargas |

Thumbnail

Enviada


splitFV - split a mesh
Splits a 2D or 3D mesh defined by faces and vertices into separately connected mesh pieces.

más de 10 años hace | 2 descargas |

Thumbnail

Respondida
Question regarding matrix index
Hi jana, Try this: X = [1 2 3 4 5; 3 inf 5 7 inf; 5 6 7 inf inf; 2 3 4 9 1] [val, rowNum] = ...

más de 10 años hace | 0

Respondida
Get new variable with elements from a double matrix & cell array given a specific condition
Hi Maria, This code should do what you're looking for: A = { '19970102' '00000127' 'MORRISON' '00148' 'BA' '199701...

más de 10 años hace | 0

| aceptada

Respondida
identifying number on dice
Hi Sameer, Here's what I would do. It's a little like IA's bwareaopen suggestion. It tries to make minimal assumptions other th...

más de 10 años hace | 0

| aceptada

Respondida
Please help create a transition matrix
Hi Ella, The code below should do what you're looking for. I displayed the result as an image but you can just look at the fi...

más de 10 años hace | 1

| aceptada

Respondida
Creating an array without mesgrid
You're very close: for i=1:3 for j=1:3 X(i,j)=j; Y(i,j)=i; end end No...

más de 10 años hace | 1

| aceptada

Respondida
Finding signal to noise ratio
Hi Tinkul, does this help you out? I assume that the values you gave are already in your desired units (although true SNR is bas...

más de 10 años hace | 1

| aceptada

Respondida
how to simplify connected blobs
Hi Sukuchha, please see <http://blogs.mathworks.com/steve/2014/03/27/comparing-the-geometries-of-bwboundaries-and-poly2mask/#com...

más de 10 años hace | 0

Enviada


interpmask - interpolate (tween) logical masks
interpmask interpolates (or tweens) masks to transition smoothly between shapes in masks

más de 10 años hace | 2 descargas |

Thumbnail

Respondida
how to simplify connected blobs
Hi Sukuchha, I think that you just need to do this: XY = [0 0; 1 0; 1 1; 0 1]; % unclosed XY points XY_closed = XY(...

más de 10 años hace | 0

| aceptada

Respondida
How to write a function that returns the element that is the center of a vector or matrix?
Hi Kimberly, try this: % Set up some input x = [1 2 3 4 5 8 1 1 2] % Grab the middle column(s) x...

más de 10 años hace | 1

Respondida
Output matrix for simple function
Hi Derek, MATLAB has some useful ways to do what you're trying to do. If you use the (.*) operator instead of (*), it will pe...

más de 10 años hace | 0

Respondida
How can I calculate the perimeters of Delaunay triangles?
Hi ZhG, Here is some code that shows a few different ways of getting the perimeter of triangles. It first just shows the leng...

más de 10 años hace | 1

Respondida
2D Plotting With Non Numeric X Axis
Hi Dan, Try this code, there's a *dateaxis* command perfect for what you want: xVals = datenum(0,1:12,1); % The first da...

más de 10 años hace | 0

Respondida
Problem of inserting values into array within a for loop
Hi Kornelia, This one has a straight forward answer. perimeterLength = regionprops(blob, 'Perimeter'); will always re...

más de 10 años hace | 0

| aceptada

Respondida
How can I share image data between callbacks?
Hi Saurabh, This one has a simple solution. Note the call in your first function: handles.pushbutton1 = imread(uigetfile...

más de 10 años hace | 0

Respondida
Performing stats on subsections of a matrix
Hi Swisslog, Try this: a = [1 1 1 2 2 4; 3 5 4 7 2 5]; % Pack your matrix contents into a cell array [unqA,~,grps]...

más de 10 años hace | 0

| aceptada

Respondida
Why is my surf animation so slow?
Hi Phil, There are a few things you can do to speed this up. Firstly, the *pause* command will force your loop to sit idle...

más de 10 años hace | 0

| aceptada

Respondida
How do I change Grid Size in R2013a?
Hi Edgar, You can set the *XTick* locations of an axis (or the current one via *gca*) directly: tickValues = min(x):0.1:...

más de 10 años hace | 1

| aceptada

Enviada


dbarray - pack and unpack database arrays to matlab arrays
dbarray lets you directly send/fetch array[] type database fields into native MATLAB variables

más de 10 años hace | 1 descarga |

Thumbnail

Respondida
Contributors metainfo: reputation and more
*Recent news:* ... and *BAM!* Walter hits *25,000*! Congratulations are in order again. It's impressive to see, but depressin...

más de 10 años hace | 4

Cargar más