Réponse apportée
how to determine the size of the object using image processing
Start with point 1, see how far you can get, succeed and process with point 2, and so on, or ask a more specific question.

plus de 13 ans il y a | 0

Réponse apportée
Copy element of matrix to another matrix
If you want to copy for each c the first two elemens of b to f, use inside the for loop f(c, 1:2) = b(c, 1:2); Or you ca...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
How to send an ASCII code via matlab : fwrite or fprintf ?
Just make sure to get the marks right: fprintf(com1, '%s', 'A30005')

plus de 13 ans il y a | 0

Réponse apportée
how to find the differnce between all the neighbouring elements in an array???
If you want to add all the differences of the center pixel within it's 8-neighborhood, you can construct a filter and apply it t...

plus de 13 ans il y a | 0

Réponse apportée
manually specify occourrences in bar graph
values = [1 2 3 4]; entropy = [1.8 1.9 2.1 2.2]; bandwidth = [18 2 10 11]; hold on plot(values, entropy, 'r') ...

plus de 13 ans il y a | 0

Réponse apportée
How to simplify this function?
Hi Shilp, please try to ask a more detailed, more Matlab specific question, may be then I could provide some help.

plus de 13 ans il y a | 0

Réponse apportée
How do I plot multiple function forms on the same graph using vectors?
To plot the function you can use the following code. Note that a * between vectors denotes matrix multiplication; use .* for poi...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
How to simplify this function?
Note that x times y is coded x*y in Matlab. I would go straigthforward function U = myfunction(x1, x2) G = 1.0; % rep...

plus de 13 ans il y a | 0

Réponse apportée
A problem with While command...
Exactly, you have to put all values that change in the body of the while loop. And all values that do not change can be moved o...

plus de 13 ans il y a | 0

Réponse apportée
How to read a non uniform text file in Matlab
Hi Giorgios, this file should do the job: fid = fopen('file2.txt'); s = fgets(fid); % get line with a 'b' i = 1; ...

plus de 13 ans il y a | 1

Réponse apportée
How to read a non uniform text file in Matlab
If you have to do it _just for this file_ you can make your life easy by not reading the file at all: b = 0:5:235;

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
A problem with While command...
Based on Jan's comments you may want to change your code as sketched below: a=zeros(length(r),1); anew=1./(((4.*((sind(f...

plus de 13 ans il y a | 0

Réponse apportée
How can I move a plot to the left?
pos = get(gca, 'Position'); xoffset = -0.1; pos(1) = pos(1) + xoffset; set(gca, 'Position', pos)

plus de 13 ans il y a | 3

| A accepté

Réponse apportée
colour image segmentation using k means
I = imread('./../../Downloads/planes.png'); I = im2double(I(1:320, 1:478, :)); HSV = rgb2hsv(I); H = HSV(:,:,1); H = ...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
how to obtain the values
Iorg = imread('./../../Downloads/r1r2.png'); I = rgb2gray(Iorg(58:242, 60:198, :)); m = mean(I, 2); [notused R1] = ma...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
Add text and matrix in a figure
x = rand(1, 6); % sample data plot(x) legend('my curve')

plus de 13 ans il y a | 0

Réponse apportée
Bar plot with bars in different colors
data = [.142 3 1;.156 5 1;.191 2 0;.251 4 0]; %First column is the sorted value %Second column is the index for the YTic...

plus de 13 ans il y a | 4

| A accepté

Réponse apportée
how can I convert a matrix to an array
B = A'; B = B(:)';

plus de 13 ans il y a | 10

| A accepté

Réponse apportée
how can i get output
str2num(sprintf('%02d', x))

plus de 13 ans il y a | 0

Réponse apportée
i am doing a project on DNA microarray image processing....
plot(mean(I, 1)) % rows plot(mean(I, 2)) % columns

plus de 13 ans il y a | 0

Réponse apportée
sum of function handles
Do you want to evaluate f2 20 times and store the summed result in f1? Than you can use this: f1 = 0; for i=1:20 ...

plus de 13 ans il y a | 0

Réponse apportée
how to plot gray-level value versus image height
Iorg = imread('./../../Downloads/r1r2.png'); I = rgb2gray(Iorg(58:242, 60:198, :)); s = sum(I'); [notused R1] = max(s...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
How to generate matrix filled with function values
You have to use element-wise multiplication L.*T: distr = (1./(L.^5))./(e.^(1./(L.*T))-1);

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
how to divide an image into 4*4 blocks and find the mean of each block ?
imshow(blkproc(rgb2gray(I), round([size(I,1) size(I, 2)]/4), ... @(x) mean2(x)*ones(size(x)) ))

plus de 13 ans il y a | 0

Réponse apportée
Read a complex text file and then rearrange it
fid = fopen('data.txt'); s = fgets(fid); % get first line num1 = sscanf(s, '%d') % convert to number s = fgets(fid)...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
How does fspecial average filter deal with overlap causes by edges of an image?
The filter is always centered on the pixel to be processed. At the boundary, missing values are by default replaced by zero. ...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Display checkmark string in figure
try a different text text(x, y, 'ok') and make sure that x and y are within the bounds of your figure

plus de 13 ans il y a | 0

Réponse apportée
Find X value corresponding to Y value in a equation and find doesn't help as the y vector doesn't contain the exact value.
Sample function x = 0:0.1:1; y = x.^2; Find approximative solution for y = 0.5 a = abs(y - 0.5); ind = find(a...

plus de 13 ans il y a | 1

Réponse apportée
Plotting a 3-D parametric curve (x,y,z) using different functions for x, y and z for different t values.
I rewrote Matt's example to make the idea more explicit; the first part in each line of the funy function selects the range and ...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
update a matrix as a queue
That's easy: just put the first 900 values of your matrix after the new values: M = [newvalues; M(1:900)];

plus de 13 ans il y a | 1

| A accepté

Charger plus