Réponse apportée
combination
I think from your question you want all permutations of the first column and the rest of the columns as a block. I.e., I think i...

plus de 14 ans il y a | 0

Question


Selecting an answer
Ok here's a brain-teaser type question. It's multiple choice. Enjoy :) options = {'A','B','C','D}; myAnswer = options{randi...

plus de 14 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
Index exceeds matrix dimensions
It's just a small typo, I think: fprintf('Percentage of times an 8 appeared %.1f ',count_eight(roll*100)); should be: fpr...

plus de 14 ans il y a | 0

Réponse apportée
Function similar to bwareaopen
The following will remove any areas greater than 8000 pixels: M3 = M2 & ~bwareaopen(M2,8000); Another option would be to u...

plus de 14 ans il y a | 3

| A accepté

Réponse apportée
how to select desired row
A = [1 3 0.9 0.02 94 2 4 01 0.05 93 3 1 2 0.03 94 1 3 5...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
How to draw line vertical to Y-axis?
Hi Mehdi, try this after plotting: xlims = get(gca,'XLim'); hold on plot(xlims, [4 4], '-r') plot(xlims, [7 7], '-r') ...

plus de 14 ans il y a | 1

Réponse apportée
insert zero column in a m×n matrix ?
For a given matrix A: A = rand(5,5); Using square braces to concatenate: A_zeros = [zeros(size(A,1),1) A]; Using the ca...

plus de 14 ans il y a | 7

| A accepté

Réponse apportée
Counting Plots on a Figure
If you have two circle origins with radius: Pt1 = [20 30]; Pt2 = [15 20]; rad1 = 7; rad2 = 12; You can determine if th...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Create matrix...please help me..
% So you have 2 matrices that are the same size. A = rand(4,5) B = rand(4,5)+50 % Stack them on top of each other C = ...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
How to create a random binary matrix with equal number of ones in each column?
Try: % Define your matrix size and randomly pick the number of ones matSz = [20, 40]; numOnes = randi(matSz(1)); %...

plus de 14 ans il y a | 0

Réponse apportée
strcmp help
Like Fangjun said, ismember(),intersect() or setdiff() may be useful. % Make a cell array of 10 short strings firstSe...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Aesthetic Plotting with Graphics
Not really, but you could instead use image() multiple times: xyData = randi(100, 30,2); markerIm = imread('rice.png'); ...

plus de 14 ans il y a | 1

Réponse apportée
determining angles
I have no experience with UTM coordinates and whether you're dealing with geometry on a curved surface, but if as you state, it'...

plus de 14 ans il y a | 0

Réponse apportée
Image Analysis: measuring cusping and roughness
Here's how I would approach it: % Read the image and convert to BW mask of peaks I_orig = imread('cusp_micro.jpg'); I = r...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
call functions with same name
Keep in mind that there is a more recommended way to accomplish this than using str2func(): Method A: At every location you cal...

plus de 14 ans il y a | 0

Réponse apportée
generate sequence
Here's the only way I think you can do your particular choice set - don't bother storing the choices in memory, just print them ...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
generate sequence
Ack... I had a feeling you were talking about high-dimensionality. Daniel is 100% correct - 51^51 is huge. Even if you *only*...

plus de 14 ans il y a | 1

Réponse apportée
RGB Values
Your best bet would be to create a lookup from a source such as: http://en.wikipedia.org/wiki/List_of_colors. Here's my take...

plus de 14 ans il y a | 2

Réponse apportée
remove non-circle objects from image
% Get the image as a b&w indexed (non-rgb) image I = imread('project.jpg'); BW = rgb2ind(I, 2); % Calculate its conne...

plus de 14 ans il y a | 2

Réponse apportée
Is there a "once" function?
The answer was in the form of a "persistent" variable.

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
generate sequence
% The setup choices = {'A','B','C','D'}; minPos = [1 1 2 3]; maxPos = [4 3 4 4]; % Generate all possible combinatio...

plus de 14 ans il y a | 1

A soumis


Growbubbles - maximum radius packing
Growbubbles takes centroid points and returns the maximum radius circles or spheres without overlap

plus de 14 ans il y a | 1 téléchargement |

4.6 / 5
Thumbnail

A soumis


DICOMDir - OO dicom directory
DICOMDir parses and browses a given DICOMDIR dicom dictionary fie

plus de 14 ans il y a | 1 téléchargement |

5.0 / 5
Thumbnail

Question


Is there a "once" function?
Hi all, I have an array of objects that should each have a property _serverDir_ set. Setting this property requires a little ...

plus de 14 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
Boxplot groups by mask set
Ah! Here's my solution. Repeat the data for as many groups as you have, and then NaN out the data not belonging to each group: ...

presque 15 ans il y a | 0

| A accepté

Question


Boxplot groups by mask set
I have a vector of data, and a set of masks defining my (possibly overlapping) groups: data = rand(100,1) grpMasks = [(1...

presque 15 ans il y a | 1 réponse | 0

1

réponse