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

13 years ago | 0

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

13 years ago | 0

| accepted

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

13 years ago | 0

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

13 years ago | 0

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

13 years ago | 0

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

13 years ago | 0

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

13 years ago | 1

| accepted

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

13 years ago | 0

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

13 years ago | 0

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

13 years ago | 1

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

13 years ago | 1

| accepted

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

13 years ago | 0

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

13 years ago | 3

| accepted

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

13 years ago | 0

| accepted

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

13 years ago | 1

| accepted

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

13 years ago | 0

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

13 years ago | 4

| accepted

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

13 years ago | 10

| accepted

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

13 years ago | 0

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

13 years ago | 0

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

13 years ago | 0

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

13 years ago | 1

| accepted

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

13 years ago | 0

| accepted

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

13 years ago | 0

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

13 years ago | 1

| accepted

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

13 years ago | 0

| accepted

Answered
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

13 years ago | 0

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

13 years ago | 1

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

13 years ago | 0

| accepted

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

13 years ago | 1

| accepted

Load more