Answered
Error of array value in loop( for for while)
clc; clear all; close all; n=load('ppg.mat'); ppg=n.data(:,2); t=(0:(length(ppg)-1)); f_s=1000; N=length(ppg); T=[0:N-...

8 years ago | 1

| accepted

Answered
how do i segment the attached image based on color?
% code input_image=imread('banana.png'); pattern=repmat(all(~input_image,3),[1 1 3]); %convert to white pixels input_im...

8 years ago | 0

Answered
How can I find the largest Euclidean distance to the given location on an image?
% clc; clear all; close all; im=imread('01_dr.jpg'); %Give the image file name with proper format input_image=im2bw(rgb2g...

8 years ago | 1

| accepted

Answered
What is correct to calculate Rate or shannon capacity?
The output is not same, where you got the same results if you vary the n_user <</matlabcentral/answers/uploaded_files/118044/...

8 years ago | 0

Answered
Where is the problem? I couldnt find it.
In line, 32 t and w have different length, for multiplication both vector length should be same, the same case for 'a' too. For ...

8 years ago | 0

Answered
compare values and eliminate
% You can change the value of m, here I am considering 4 a=randi(2,4); b=randi(2,4); [rows colm]=size(a); for i=1:colm-1 ...

8 years ago | 0

Answered
how to save matlab figure in format of .fig
% try this one figure %disp fugure here, plot/imshow/surf etc savefig('figureFile.fig'); % 'figureFile' save file name, you...

8 years ago | 1

Answered
How to differentiate two images?
%Image A and Image B %convert to gray Image K=imsub(A,B); If K=0 both are same image else different image...

8 years ago | 0

Answered
Comparing multiple images to a single image
% code % Save all images name in a sequence manner before doing the operation % names for example im1,im2,im3..o...

8 years ago | 2

Answered
data not showing up
% Are you looking for this data <</matlabcentral/answers/uploaded_files/117369/666.jpg>>

8 years ago | 0

Answered
how to use single quotes in eval
Alternatives to the eval Function <https://in.mathworks.com/help/matlab/matlab_prog/string-evaluation.html Here>

8 years ago | 0

Answered
restart a for loop when a condition is met
if true % code for j = 1 : member; myfunction(); for k =1:j; if d > 1.5 j=1; % if you ...

8 years ago | 0

Answered
I'm a newbie. I have a data as shown below. How to do write MATLAB code for FFT of this kind of an arbitrary signal? Thanks.
% Are you looking for this one amplitude=[ 0.707 0.694 0.703 0.699 0.694 0.686 0.686 0.706 0.713 0.719 0.704 0.69 0.697...

8 years ago | 1

| accepted

Answered
to Display multiple image frames without using montage
% You should try first, still unable to solve, then ask questions % You can display as matrix elements, note on image size...

8 years ago | 0

| accepted

Answered
How can I change the background to white with the leaf images being intact
% code, I have achieved this much using thresholding k=imread('leaf2.jpg'); k2=rgb2gray(k); k1=im2bw(k2, graythresh(k...

8 years ago | 0

Answered
Need help getting the points to move separately.
% Do this one, insert x, y, z, within for loop % Modification for i=1:20 x=r.*sin(theta).*cos(phi); y=...

8 years ago | 1

| accepted

Answered
IFFT function length question
% Change here h(m)=ifft(W(m)); Its working now fs=10000; n=1024; f=0:fs/n:(n-1)*fs/n; %The desired frequency response can...

8 years ago | 0

| accepted

Answered
How to create a 3D-plot?
v1=[1,1,1]; v2=[2,2,2]; v3=[1,2,3]; v4=[3,2,4]; v5=[4,4,4]; v6=[0.5,0.5,0.5]; v=[v5;v4;v3;v2;v1]; figure(1); scat...

8 years ago | 1

| accepted

Answered
Please help! blending of two images!Error: Matrix dimensions must agree
Add following statement Convert the image b to image a size b1=imresize(b,[rows colm]); % Here rows and colm of size of i...

8 years ago | 0

| accepted

Answered
How to Seperate Red Blood cells.
%Input Holes closed Image % Source: Gonzalez Book DIP using Matlab (Chapter 10) % for customized function foloow the above m...

8 years ago | 1

Answered
Can anyone combined these operations for a gray scale image?
%I tried as per your statement flow-here it is, but did not find any sense of defocus. %Result is binary image. lx=imread('...

8 years ago | 0

| accepted

Answered
what is mistake in my code? i want to simulation brownian motion.
%Code T=5; N=10000; Delta=T/N; M=5; W=zeros(M,N); Wtemp=0; Winc=sqrt(Delta)*randn(M,N); for i=1:M*N W(i)=Wtemp + W...

8 years ago | 0

Answered
How to plot line graph?
% Repeat for all pixels % i for rows coordinate, j column coordinate and t tempature at that location { plot3(i,j,t)...

8 years ago | 0

| accepted

Answered
How to save SURF feature value?
Because in your code following random column vector generation is there, every time it generates different column vector, theref...

8 years ago | 0

| accepted

Answered
How to make the 3D plot more smooth?
As the zig-zag lines are based on your code, For the second part of the question, you can save the display 3D plot in a high-res...

8 years ago | 0

Answered
How to increase the length of the legend line?
I don't think it is customizable directly, go to the following links to user-defined function- https://in.mathworks.com/matlabc...

8 years ago | 2

Answered
Can someone help me code "Add the first row to every row other than the first row" for this setup?
k=input('Enter Array in []'); [rows colm]=size(k); for i=2:rows for j=1:colm k(i,j)=k(i,j)+k(1,j); ...

8 years ago | 0

| accepted

Answered
bmp image related problem
I don't see any change in your lines- <</matlabcentral/answers/uploaded_files/113964/aa.jpg>> Second Your original Images(...

8 years ago | 0

Answered
How to compute accuracy of text page segmentation
For comparison of the segmented image with ground truth image, the dimension of both images should be same (Logical Comparision)...

8 years ago | 0

Answered
How to calculate entropy for 1D?
% Not for logical data % Entropy calculation is only for gray or other formats en=entropy(I);

8 years ago | 0

Load more