Respondida
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.

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 0

Respondida
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') ...

más de 13 años hace | 0

Respondida
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.

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 1

| aceptada

Respondida
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...

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 0

Respondida
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; ...

más de 13 años hace | 1

Respondida
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;

más de 13 años hace | 1

| aceptada

Respondida
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...

más de 13 años hace | 0

Respondida
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)

más de 13 años hace | 3

| aceptada

Respondida
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 = ...

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 1

| aceptada

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

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 4

| aceptada

Respondida
how can I convert a matrix to an array
B = A'; B = B(:)';

más de 13 años hace | 10

| aceptada

Respondida
how can i get output
str2num(sprintf('%02d', x))

más de 13 años hace | 0

Respondida
i am doing a project on DNA microarray image processing....
plot(mean(I, 1)) % rows plot(mean(I, 2)) % columns

más de 13 años hace | 0

Respondida
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 ...

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 1

| aceptada

Respondida
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);

más de 13 años hace | 0

| aceptada

Respondida
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)) ))

más de 13 años hace | 0

Respondida
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)...

más de 13 años hace | 1

| aceptada

Respondida
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. ...

más de 13 años hace | 0

| aceptada

Respondida
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

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 1

Respondida
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 ...

más de 13 años hace | 0

| aceptada

Respondida
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)];

más de 13 años hace | 1

| aceptada

Cargar más