Réponse apportée
The number of elements in x and y must match.
answer_of_forward_different=conv(s,forward_different); %.............................^ :)

plus de 6 ans il y a | 0

Réponse apportée
imbinarize function do not work im2bw also does not work
I = rgb2gray(imread('a.png')); BW = im2bw(I, 0.4);

plus de 6 ans il y a | 0

Réponse apportée
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 ...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
How to Combine 25 images to get a single image matrix??
montage

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 1

| A accepté

A résolu


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

plus de 6 ans il y a

Réponse apportée
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 ...

plus de 6 ans il y a | 1

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 1

Réponse apportée
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...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
how to access neighboring pixels that lie on a square.
Here Documentation more detail

plus de 6 ans il y a | 0

Réponse apportée
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]

plus de 6 ans il y a | 0

Réponse apportée
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 ...

plus de 6 ans il y a | 1

Réponse apportée
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...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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/...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 2

| A accepté

Réponse apportée
Low-pass filter
hsize=?? % define h=fspecial('average',hsize); filter_wmarked=imfilter(wmarked,h);

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
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

plus de 6 ans il y a | 2

| A accepté

Réponse apportée
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 ...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 2

Réponse apportée
Performing FFT on Spacial Data
fft More detail here

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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 ...

plus de 6 ans il y a | 0

| A accepté

Charger plus