Question


How to identify a user?
I have a body of code that is being used & abused by some of my users. I would like to be able to find out who has been using th...

environ 13 ans il y a | 2 réponses | 1

2

réponses

Réponse apportée
How do I find the index of a value in an array that lies between two values in another array?
for i = 1:numel(a)-1 c = b > a(i) & b < a(i+1); c = b(c); if isempty(c) continue else % do something, sin...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
test for equality not working 8.0.0.783 (R2012b)
Actually, for the test of equality, you should check for exact equality, and you should control the tolerance you are willing to...

environ 13 ans il y a | 1

Réponse apportée
how to generate a uniform distribution with an constraint
Rearrange the function into the form: c2 = g(c1,constant), Randomly generate c1, and simply calculate c2, based on the co...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Help me to draw graphic for vector xyz :)
t = 0:0.01:10 x = 5*t.^2; y = -2*t; z = 2; plot3(x,y,z) Make sure you get x, y and z correct ;)

environ 13 ans il y a | 0

Réponse apportée
[Computer Vision] Size of colored Object detected with my algorithm
have a look at regionprops.

environ 13 ans il y a | 0

Réponse apportée
Entropy of subsections of an image
Try E = entropyfilt(im,ones(3,3)); ime = E < threshold;

environ 13 ans il y a | 0

| A accepté

Réponse apportée
What is this code doing exactly?
looks like its opening some pairs of files and overlaying some parts of the second image on the first, and saving the result.

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Generating a pdf file using Matlab
Put your script into cells. In each cell add a line to print to screen/output a plot. (disp, plot, etc.) - No need for fopen etc...

environ 13 ans il y a | 0

Réponse apportée
Mean value of data with irregular intervals
Why not just take a weighted mean? This method ignores y(1) - you could change it to ignore y(end), or add info and inclue it...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
How to change seconds since 1st January 1985 to YYYY-MM-DD-HR-M-S format?
seconds_since_1985 = 981364894; % days_since_1985 = seconds_since_1985 / 86400; datestr(days_since_1985 + datenum('1/1/198...

environ 13 ans il y a | 0

Réponse apportée
How to Increase the Refresh Rate of a Continuously Updating Plot
Try adding a "drawnow" statement after your plotting command.

environ 13 ans il y a | 0

Réponse apportée
Plotting in semi-realtime
pause(delay_time) That's likely what you're looking for.

environ 13 ans il y a | 0

Réponse apportée
ln not recognised as a command
You can fix it by putting: ln = @(x)(log(x)); at the start of your code... or replace ln with "log"

environ 13 ans il y a | 0

| A accepté

Réponse apportée
summing up array element
for i = 1:numel(p) c(i) = sum(p(1:i)); end Or so_far = 0; for i = 1:numel(p) so_far = so_far + p(i); c(i)...

environ 13 ans il y a | 0

Réponse apportée
Error using: Out of memory
Hello, "Out of memory" errors typically occur because your code is trying to store a single large array, and it will not fit ...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
How to slipt an image into equal & non-overlapping 2*2 matrixes in matlab?
For a 128 by 128... for i = 1:2:127 for j = 1:2:127 split_2x2(:,:,(i+1)/2,(j+1)/2) = image(i+[0 1],j+[0 1]); end ...

environ 13 ans il y a | 0

Réponse apportée
Errors trying to save data to an excel file
{'Mean','Max','Min','Std','Median';average;maximum;minimum;stde;med}; tries to make a table like the following: Mean, Ma...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Building matrix using vectors?Easy question.
Depending what you have: 1) matrix = [row_vector1;row_vector2; ... row_vectorn]; 2) matrix = [col_vector1, col_vector2, .....

environ 13 ans il y a | 0

| A accepté

Réponse apportée
How to use Bitxor for Double Numbers
typecast(bitxor(typecast(0.3243,'uint64'),typecast(0.12325,'uint64')),'double')

environ 13 ans il y a | 0

| A accepté

Réponse apportée
The Watershed Transform::separate objects::please help
Should BW be bw?

environ 13 ans il y a | 0

| A accepté

Réponse apportée
How to plot more figures
after plotting the first time issue any one of these three cmmands: figure hold on hold all Your loop also should be ...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
How do I ensure that the fields within handles stay available throughout GUI Callbacks?
Well, not to be too obvious, but "handles.geo_utitable1" looks like a typo...

environ 13 ans il y a | 0

Réponse apportée
how to rearrange the code in simple way
input = reshape(q(1:10,1:419)',1,[]); output = zeros(10,419);

environ 13 ans il y a | 0

Réponse apportée
Draw a line between two points
This is the raw maths... point1 = [x1 y1]; point2 = [x2 y2]; point3 = [x3 y3]; m = (y2 - y1) / (x2 - x1); c = y2 -...

environ 13 ans il y a | 0

Réponse apportée
Newbie: The variable (k) of the for loop inside a while
At the start/end of each for loop, the loop variable is reset to the next value. for i = 1:5 disp(i) i = i + 1; dis...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
How to create dummy variable?
Use the mean of the two "surrounding" points A(75,4) = A(74,4) + A(76,4); Fit a curve to the known points, and then evalu...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
How to identify and characterize flaky particles in microscope image
doc regionprops - This will tell you how to handle the simple cases (spatially separated flakes) For the harder ones, with in...

environ 13 ans il y a | 1

Réponse apportée
how to load rest of data
load(....,'percentiles') stored_percentiles{j} = percentiles;

environ 13 ans il y a | 0

Réponse apportée
How can I import bin file?
You've opened the file for write access. fid = fopen('vpt.bin','r'); You either need to be sure that "vpt.bin" is in mat...

environ 13 ans il y a | 0

| A accepté

Charger plus