Answered
The number of elements in x and y must match.
answer_of_forward_different=conv(s,forward_different); %.............................^ :)

6 years ago | 0

Answered
imbinarize function do not work im2bw also does not work
I = rgb2gray(imread('a.png')); BW = im2bw(I, 0.4);

6 years ago | 0

Answered
finding roots in a quadratic formula
function [z,x1,x2]=quad(a,b,c) z=sqrt(b^2 -4*a*c); w=2*a; x1=(-b+z)/w; x2=(-b-z)/w; end Call the quad function in Main ...

6 years ago | 0

Answered
how to plot in curve
Hard way: x=[1 2 3 4 5 6 10]; x=-x; y=[2 3 5 6 7 8 7]; data=[x,y]; plot(-length(data)/2:1:(length(data)/2)-1,[x,y]); se...

6 years ago | 0

| accepted

Answered
how to solve "Error using alpha. Too many output arguments."
#Done with some minor changed, also mu to m2 (There is no mu variable) % Given a=3; b=13; c=0; rPA=b/2; rPB=c/2; theta2=1...

6 years ago | 0

Answered
rearrange the default display of logarithmic x-axis to a specific one
ylim([1 5]) Or if want to all modify the all values of y parameters also (to fit within 1 to 5), then please do add some cons...

6 years ago | 0

Answered
Error: Insufficient number of outputs from right hand side of equal sign to satisfy assignment
maxV creates a single output argument with four elements, you can't consider it's elements numbers as output arguments. See the...

6 years ago | 1

| accepted

Solved


Assign matrix elements to separate variables
Given an input array, return each element of the array as a separate variable. If the number of output arguments (k) is less tha...

6 years ago

Answered
Help: how to count the number of holes on the images and its sizes
The input image seems a bit challenging, yet you can try the following basic methods and check the results. One way: Convert ...

6 years ago | 1

Answered
How can Looping (open text files, processing and save as Excel file) for multi times ?
text_files=dir('C:\complete path....\folder_name\*.txt'); outDirectory='C:\complete path....\folder_name\'; for i=1:length(tex...

6 years ago | 0

Answered
How can I create a Custom varible name as "P/Po" with any value?
As per my limited knowledge, you cant do that because P/Po represents P divide by Po. Is there any necessity, or choose other va...

6 years ago | 1

Answered
The two arrays are not the same length, how to measure their similarity.
Compare array elements that are members of other array use ismember idx_data= ismember(data1, data2', 'rows'); Looking for mor...

6 years ago | 0

| accepted

Answered
How can imfill a objects when they are in the edges of main image?
Its because of white area touches the border. Apply imclearborder on binary image, then only apply imfill Similar Answer

6 years ago | 0

Answered
How to keep metadata with the parameters?
text file (writetable) or %code (Automatically save all dispaly data in text file, do clear and save again) diary on %Displ...

6 years ago | 0

| accepted

Answered
convert a grayscale image into bit pattern
Steps: Convert image RGB to gray (rgb2gray) Read individual decimal pixel values and convert to binary (Same as gray binary s...

6 years ago | 0

Answered
how to access neighboring pixels that lie on a square.
Here Documentation more detail

6 years ago | 0

Answered
How can i get matrix element for a complex values?
Just as other number, mat=[1 2 2+3i;4 5 7;6 10 2]

6 years ago | 0

Answered
Which mask can I use to count particles in an image?
No need any special mask, use regionprops function Steps: Convert to binary image with adjustable threshold value Counts the ...

6 years ago | 1

Answered
How to inject anomalous points in time series periodic data
Multiply the last segment of data with simmilar [0.9 0.5 0.4 0]..as you can choose those values and length. Also consider approp...

6 years ago | 0

| accepted

Answered
How to convert expression to function?
function [c2,c3]=test() w=input('Please enter a vector B=[B1 B2 B3]: '); c2 = [0 B(2) -B(3)]; c3 = [0 -B(2) B(3)]; c2 = B2/...

6 years ago | 0

Answered
partial size variation of the image
I=imread('image11.jpeg'); [r c]=size(I); data1=I(1:round(r/2),:,:); data2=imresize(data1,1.3); % Here I have consider 1.3 tim...

6 years ago | 2

| accepted

Answered
Low-pass filter
hsize=?? % define h=fspecial('average',hsize); filter_wmarked=imfilter(wmarked,h);

6 years ago | 1

| accepted

Answered
How to get the limits of the highest frequency bin in a histogram?
[counts,binLocations]=hist(data); %find the bins of max(counts) Then previous value & next value are limits

6 years ago | 2

| accepted

Answered
bitshift Double inputs error
A=randi(10,[4 4]); s=18; W = bitshift(A,s-15,'int64') Result: W = 40 56 32 72 32 16 80 72 ...

6 years ago | 0

| accepted

Answered
Loop iteration with condition met
Tol=1.5;ma=10; t=[1 2]; B=[]; for a=1:ma x=rand(); result=sum(x*t); while result>Tol || result<0.5 ...

6 years ago | 0

| accepted

Answered
How to read all images from two folders and show them and also count the number of images
path_directory1='folder1_name_here'; count1=length(dir([path_directory1 '/*.image_extention_format'])); path_directory2='fol...

6 years ago | 2

Answered
Performing FFT on Spacial Data
fft More detail here

6 years ago | 0

Answered
filling open gaps in binary image object
#Approximate se=strel('diamond',3); BW2=~imdilate(BW1,se); % 2nd Binary image BW3=bwareafilt(BW2,1); BW4=imerode(BW3,se); D...

6 years ago | 0

Answered
Kalman Computational Procedure Discrete time
Its very easy for 1D cases, as your variables are 2D, How you decide, which is provious data, Say example P0 = 10 15 ...

6 years ago | 0

| accepted

Load more