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

6년 초과 전 | 0

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

6년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
How to Combine 25 images to get a single image matrix??
montage

6년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

| 수락됨

문제를 풀었습니다


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년 초과 전

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
how to access neighboring pixels that lie on a square.
Here Documentation more detail

6년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 2

| 수락됨

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

6년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 2

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 2

답변 있음
Performing FFT on Spacial Data
fft More detail here

6년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

더 보기