Answered
how can i run iterations?
...... while abs(new(1:3)- ep)>0.01 for i = 1 : n x(i) = (ep(1) - sat(i,1)); y(i) = (ep(2) - sat(i,2)); z(i) = (ep...

5 years ago | 0

Answered
Function writing for variable matrix
" write for this function such that when I input A, B or C at that position" Please note: In the function defination, only A is...

5 years ago | 0

| accepted

Answered
noise is added to the central region of each image
Considering im is a gray level image, and the central part of the image considered as mid section of the image as per its rows a...

5 years ago | 0

Answered
How to iterate through an array to check for adjacent elements that are equal to one another using loops.
"How to iterate through an array to check for adjacent elements that are equal to one another using loops" Here a is an 1D arra...

5 years ago | 1

Answered
How does imnoise work with poisson option?
No sir, the noise is not added yet, just you generated noise based on x data x = 2 + 2*cos(linspace(-pi,pi,100)); subplot(121)...

5 years ago | 1

Answered
segmentation using k-means clustering
Part 1 "I 'm just tried to code the segmentation part.but i am not sure is it correct or not. In segmentation work, answer wo...

5 years ago | 0

Answered
Convolution of two rectangular signals
conv(sig1,sig2) More about conv

5 years ago | 0

Answered
how to read two specific data from a folder?
If both images are in current working directory, please mention the image names only(with extension like png,jpg) im1=imread('I...

5 years ago | 0

Answered
Fit a curve along points through starting and end point
You can fit the curve in number od ways, see which tyep perfectly fit as per your expectation x_data=randi(10,[1,10])'; y_data...

5 years ago | 0

Answered
How to create a threshold on a plot?
Example: data_2d=rand(1,20); %Example threshold_val=0.5; binary_array=data_2d>threshold_val % This create a binary array b...

5 years ago | 1

Answered
Fourier Series for a Periodic Function
display('Problem 1_Example_17.1') ao=1/4; N = 100000; Wo = pi; t = -1:.001:11; f = zeros(1,length(t)); n =linspace(1,2,le...

5 years ago | 1

| accepted

Answered
Code take forever to run and output
Sir, I have tested the code with low iteration numbers, say 10 and it is working perfectly. Yes if you consider the iteration nu...

5 years ago | 0

| accepted

Answered
How to use 'drawnow' to create an animated surface plot from audio measurements taken in a matrix of 10 x 10 microphone positions
for i=1:100 data=rand(10,10); % Choose your incoming audio data here fig=surf(data); grid on; pause(0.1); % Animation s...

5 years ago | 0

Answered
Incorrect plot domain when using linspace
plot(x,y); if plot(y);

5 years ago | 0

| accepted

Answered
3d plot with different length of x and y
As per the you data sizes, following is also allowed contour3(x,y,z'); Note: I presumed that x and y are continously increasin...

5 years ago | 0

| accepted

Answered
Plotting a specific part of the array
idy1=y1(y1~=y2) idy2=y2(y2~=y1) Results: idy1 = 6 7 8 9 8 7 7 6 idy2 = 4 3 ...

5 years ago | 0

| accepted

Answered
Find distance between foregrounds of two binary images
Steps: 1.As you already know the indices of all three lines from the 2nd image. If not following is the way [r2 c2]=find(imag...

5 years ago | 0

Answered
Removing Reverse Rows in a Permutation Matrix in Matlab
P=perms([1 2 3]); result=P(unique(P(:,2)),:) result = 3 2 1 3 1 2 2 3 1

5 years ago | 0

Answered
How to detect the crack and calculate its length ?
[S T]=graythresh(grayImage); bwImage=imbinarize(grayImage,T); SE = strel('diamond',1) bwImage=imerode(bwImage,SE); bwImage=b...

5 years ago | 0

Answered
Colors and Symbols for Loop Iteration
#Example: you can set as per your requirements. color_sym={'rx','go','b-','m--'}; for i=1:4 plot(rand(1,10),rand(1,10),c...

5 years ago | 0

Answered
spot diameter in imported image
Here are the all pixels, which are greater than 13%*max image_data=rgb2gray(imread('image_test5.jpeg')); max_pix=max(image_dat...

5 years ago | 0

Answered
Using GUI to Edit Image
I am providing here the alternate option, now a days I rarely do GUI (Guide option). MATLAB have great appdesigner features, yo...

5 years ago | 1

Answered
Cell array summation when arrays are different sizes
"I am trying to some cell arrays containing matrices of different sizes stored at designated index points to arrays. See the bel...

5 years ago | 0

Answered
Save loop values in a matrix
If the resultant long and Lat are just numeric number use array to save the data Example iter=1; Long=[]; Lat=[]; while co...

5 years ago | 0

| accepted

Answered
Creating Matrix based on grouping of elements in cell array
A=de2bi(cell2mat({[1 3],[2],[4 5 6]}),6)

5 years ago | 0

Answered
quiver3 not plotting the end point
I dont find any issue, please dont mixed up with the quiver and plot3, see your example quiver3(0,2,4,2,5,7); hold on; quive...

5 years ago | 1

| accepted

Answered
how can we read matrix step by step in kalman filter
See you have mat variable xt = rand(3,50); if you wish to read thia xt variable matrix column by column then 1 Column=xt(:,1);...

5 years ago | 0

| accepted

Answered
segmentation medical image irm
Lets say "seg_image" is the segmented image. Once segmentation, all regions have different pixels value, please check the pixel ...

5 years ago | 0

Answered
matrix component algebra with digraph
[row,col]=size(A); %Expecting C is 1 D vector and having col number of rows minimum M=zeros(row,col); for i=1:row for j=1:co...

5 years ago | 1

Load more