Réponse apportée
Imprecise Basic operations
See: http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F Welcome to the world of floa...

plus de 13 ans il y a | 2

| A accepté

Réponse apportée
Specify columns inside a for loop
You are only checking of the data within any given column is between 1 and 8, which isn't what you describe to be wanting. Ju...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Writing variable as filename using csvwrite
Try writing: csvwrite(filename,A); %without quotes

plus de 13 ans il y a | 0

Réponse apportée
dilation of specific objects
First, I would label regions in your image: bwl = bwlabel(img,8); Area of regions: a = regionprops(img,'area');...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Counting number of zeros in column or row, without looping
Given A: idx = A~=0; c = sum(idx,1); r = sum(idx,2);

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
Getting data values from a plot
User interpolation x = [1 2 4 5]; y = [1 3 4 9]; xi = x(1):.01:x(end); %values between x yi = interp1(x,y,x...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Manipulation of different size of matrices with strings and numbers
Look up the documentation for CELL, it might suit your needs. doc cell In regular matrices, you cannot mix data ty...

plus de 13 ans il y a | 2

Réponse apportée
montage function
The montage function allows you to input your own path to images that you want to use. doc montage Example, if the pictures...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
I want a button to be pressed in MATLAB GUI when Enter key is pressed. How to do it?
I do something similar to this. Use keypress functions, and check to see if the current character being pressed is the enter key...

plus de 13 ans il y a | 1

Réponse apportée
Sorting Cell stucture with different data types
How about this one: [d ix] = sort(C{12}); newC = cellfun(@(x)x(ix),C,'un',0);

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Last Axes Display Image
You have a scope issue. Try doing this instead (note the "end"s) function Axes N.fh=figure('unit','pix',... 'Position',[40...

plus de 13 ans il y a | 2

Réponse apportée
Challenge - Change my avatar colors
My "spy" command gives me a picture of a dog: spy To change the background and outline color in one shot: whitebg To c...

plus de 13 ans il y a | 0

| A accepté