Réponse apportée
How to determine the magnetic field in a round circuit using biot-savart law
The magnetic field *B(r)* is perpendicular to the the circle, hence it depends on the altitude z, but suppose that we want to ev...

environ 12 ans il y a | 1

Réponse apportée
How can I add the arrow to the graph like this picture ?
Nguyen, That is thermodynamic cycle, there might be a solution, however try this temporary example : X=[2 4 4 2 2]; Y=[2 ...

environ 12 ans il y a | 1

Réponse apportée
How to Plot the discrete Fourier transform on an image ?
%a I=I=im2double(imread('circuit.tif')); %b F=fftshift(fft2(I)); % surface(abs(F)) %c plot(abs(F)) ...

environ 12 ans il y a | 1

Réponse apportée
how to find fourier transformation in intensity values
engineer 01, If you have one dimensional signal, you can use *fft(signal,N)* with N being the number of points for evaluating...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
How to Make a function accept vector inputs
You did not specify how the output should be , 1x1 or Nx1 , you can try this way : function Ml = myseries(t) n=0; ctr=1;...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
how to use Arrays for plotting curves in for loop
kiran, that can be done efficiently if you store all the ys in one matrix : t=0:0.1:6; y=zeros(length(t),3); y(:,1)=sin...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
Find angle between dots
hi, Computing the angle require the scalar product between the points, so you need to know the coordinate of the white dots, he...

plus de 12 ans il y a | 0

Réponse apportée
Surface plot of PDE numeric solution
Danila, I tried to examine you solution, the first thing is that r0,r1,r2 and r3 are not provided , plus a variable mu is not d...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
ground motion velocity in matlab
if you have the acceleration vector , you can integrate it to get the velocity, here is a simple example : t=0:0.1:2; % tim...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
on the image window output shows repeatation of image
hi, The code you provided is working correctly, but you did not exploit the matrix operations effectively, here is simpler ve...

plus de 12 ans il y a | 0

Réponse apportée
issue in matrix multiplication
G is 4x12 and m is 1x4, then two possibilities : m*G G'*m' You do not get binary result because of the multiplication c...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Taylor series method for 2 coupled ODEs and I'm confused!!!
Jesse, i think you should add the index to the two solutions, try : h = 0.01; x1 = 2.37; x2 = -3.48; t = -1; for i=...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Designing a lowpass filter in matlab
there is a filter design functions , you can start with the simplest function as follows : % given you sampling frequen...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Why isn't array division commutative?
Andre, you mean that a1 and a2 are linearly dependent? then you divide a2 by a1 you obtain a matrix , the diagonal of that matr...

plus de 12 ans il y a | 0

Réponse apportée
compute the ideal impulse
try this function : function F = ideallp(wc,N); t = (N-1)/2; x = [0: (N-1)]; m = x - t + e...

plus de 12 ans il y a | 0

Réponse apportée
power spectral density PSD?
You can try this way : t=linspace(0,1,33);% 1 seconde Fs=inv(t(3)-t(2)); f=Fs/10; P=13; % number of signals X=zeros(33,P...

plus de 12 ans il y a | 2

| A accepté

Réponse apportée
can anyone demo me how to do a tamper localization?
hi, That is new field to me, let us try to apply what @Image Analyst described as an example : X=im2double(imread('circu...

plus de 12 ans il y a | 0

Réponse apportée
find values around a given row value
you can use minimum absolute value as the following : % data generation p1=2.5;p2=2.35; A=ones(600,2); A(:,1)=A(:,1)*p...

plus de 12 ans il y a | 0

Réponse apportée
Numerical integral calculation on GPU
hi, there are functions that are open source, letting the author to edit them, others are built in like fft as example. The int...

plus de 12 ans il y a | 0

Réponse apportée
Creating user defined variables and solving systems with a script
Use input: K=input(' Enter matrix :\n'); % You enter the K(i,j) as :[4 5 8 7;2 3 6 5] then K is the entered matrix

plus de 12 ans il y a | 0

Réponse apportée
please help>>>how to fix (Matrix dimensions must agree.) error in matlab?
hi Asma, the number of columns of WindowI must be the same as the number of lines in WindowH, take the two blocks with same d...

plus de 12 ans il y a | 0

Réponse apportée
Convert Image Sequence to Video
you can simply try : fileNames = dir(fullfile('C:\...\Cell Images','*.jpg')); N = length(fileNames); for k = 1:N ...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
FFT, Periodogram difference, Power Spectral Density Representation and Effect of Hilbert Trasnform to PSD
hans, If you are treating narrow band signals then FFT or pwelch as said by Andrew is sufficient, but for wideband signals, you...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Two-side spectrum in Matlab
You can start by many tutorials, each offers a different approach to the DFT problem, in terms of resolution and amplitude estim...

plus de 12 ans il y a | 1

Réponse apportée
Matrix transformstion need help
Matrix transformation depends on size, if you are working on two dimensional space, then vectors X,Y must be 2x1 : here is an e...

plus de 12 ans il y a | 0

Réponse apportée
how to add white noise to signal
hi, Azzi mentioned a good point about the seed and about the signals noise, for this its better to work with signal to noise ra...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Simple question, How to find one variable from a equation.
hi,are all the variables defined, because d1 d2 are missing , if you find d1 or d2 then v can be found by two ways : POL=[...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
How can I calculate the mean of a particular number of video frames?
hi, if it is grayscale Video then : [m,n,p]=size(X); MEAN=zeros(1,p); for x=1:p MEAN(x)=mean(X(:,:,x)); end ...

plus de 12 ans il y a | 0

Réponse apportée
Function for summing an infinite series using for-end loops
Chris, You can start by differentiating between names of input and output variables , then only S is your output : funct...

plus de 12 ans il y a | 0

Réponse apportée
How can I determine what matrix is needed to flip an image upside down?
Generally that type of matrices are for euclidean space where a vector or a set of vector can be rotated with a cos and sin rota...

plus de 12 ans il y a | 0

Charger plus