Feeds
提问
Phase shift in domain from FFT for multiple signals
I have multiple signals that have the peak at different locations so I want to align them up accordingly and then add them toget...
8 years 前 | 0 个回答 | 0
0
个回答提问
Generate poisson random number with a mean and standard deviation
I want to generate poisson random number with a mean of 1 and standard deviation of 0.2 for 60 numbers. I could not find anywher...
8 years 前 | 1 个回答 | 0
1
个回答提问
Generate different radius size of particle from normal distribution and assign that radius to specific x-y coordinate
I want to generate random particle radius with normally distribution (Gaussian) for 50 particles with a mean of 1 and variance...
8 years 前 | 1 个回答 | 0
1
个回答提问
Extract number on variable name.
My variable name is Final_50000_run_1 Is there a way to extract the number 50000 and 1 out. Thanks.
8 years 前 | 2 个回答 | 0
2
个回答已回答
insert 0 in the each 3N location
B=zeros(1,3*N) for i=1:N B(1,3*i-2) = A(1,2*i-1); B(1,3*i-1) = A(1,2*i); end
insert 0 in the each 3N location
B=zeros(1,3*N) for i=1:N B(1,3*i-2) = A(1,2*i-1); B(1,3*i-1) = A(1,2*i); end
8 years 前 | 0
| 已接受
提问
saving data that calculates in the loop
Hi everyone I want to save the value 'ang' in my code as shown below. I want to look for particles that in the distance from ...
8 years 前 | 0 个回答 | 0
0
个回答提问
Calculating angles between two points in 3D that is measured from positive x-direction
<</matlabcentral/answers/uploaded_files/51342/image.png>> I have multiple points that I need to calculate the angle between t...
8 years 前 | 1 个回答 | 1
1
个回答提问
save the value in side the function file
I have 3 m-files let say: function [f]=fun(g) Myy=20*x^2; % Assume we know x matrix f=Myy; the 2nd file is ...
9 years 前 | 2 个回答 | 0
2
个回答提问
How to slice 3D object
I have a cubic box with dimension of 1 x 1 x 1 with 100 spheres inside this box. I know the coordinate of x,y,z and radius of e...
9 years 前 | 1 个回答 | 0
1
个回答提问
How to compute the multiplication between matrix and matrix in different file
I have data that saves with different names such as data_1, data_2, etc... data_1 will have a matrix A with dimension of 11...
9 years 前 | 1 个回答 | 0
1
个回答提问
Generate random circles in the square box with different diameters
I was able to generate random circles inside the square box of dimension L=1 with the same diameter without overlapping, where X...
9 years 前 | 2 个回答 | 1
2
个回答提问
Subtraction between the rows of matrix
I have a matrix A which is 880x100 and I want to do the subtraction between row to row. For example A= [ 1 1 1 1 ;2 2...
9 years 前 | 2 个回答 | 0
2
个回答提问
Delete the row of matrix
I want to delete multiple rows of matrix. For example, Matrix A contains X in the first column, and Y in the second colum...
10 years 前 | 1 个回答 | 0
1
个回答提问
Using polyfit to fit power function including the initial point x=0
I want to find the equation for data points that are given below x= [ 0 0.0005 0.001 0.005 0.01 0.05 0.1]; y=[0.43 0.47 ...
10 years 前 | 3 个回答 | 0
3
个回答提问
Data point in dimension
tic; % Generate the same random number for the same seed number. rand('seed',20001); % Number of data point N...
10 years 前 | 1 个回答 | 0
1
个回答提问
Using lsqcurvefit without knowning the function
This is what I understand from the matlab help x = lsqcurvefit(@myfun,x0,xdata,ydata) function F = myfun(x,xdata) F = ...
11 years 前 | 1 个回答 | 0
1
个回答提问
Lsqcurvefit for 2 parameters
I read over the lsqcurvefit for one parameter. x=lsqcurvefit(fun,xo,xdata,ydata) where xo= initial x, fun is the funct...
11 years 前 | 1 个回答 | 0
1
个回答提问
Calculate the error for many time steps in the same file ( Only work for one time step )
I want to calculate the error for my data at different time step (dt) in one file. If I tried one time step, dt, then it works....
11 years 前 | 1 个回答 | 0
1
个回答提问
How do I generate the random number inside the annulus
Hi everyone, I want to generate 50 particles inside the gap between two circles. The small circle has radius of 5 and the ou...
11 years 前 | 2 个回答 | 0
2
个回答提问
Rotate the all center positions in the certain angle
I have 4 data points with x and y coordinates and I want to rotate them at certain angle in counterclockwise or clockwise. As...
11 years 前 | 2 个回答 | 0
2
个回答提问
choose data points that nears each other and store in different matrix
I have a matrix A that has dimension n x 2. A(:,1) is x-values and A(:,2) is y values. Choose the the pairs that is ne...
11 years 前 | 1 个回答 | 0
1
个回答提问
Set a bin to count the data points for certain conditions
Hi there, I want to count the number of data values that are in this conditions if it satisfies both conditions then coun...
11 years 前 | 1 个回答 | 0
1
个回答提问
plot and calculate error bar
I want to calculate and plot error bar of this data X=40:1:225; Y =0;0; 0...... Y is the results from calculating. ...
11 years 前 | 1 个回答 | 0
1
个回答提问
Remove close value for matrix
I have a matrix A with has dimension n x3 I want to remove the data values that are so close to certain value or repeated....
11 years 前 | 2 个回答 | 0
2
个回答提问
Delete repeated row in matrix
I have a matrix A that has n x 3 dimension. Assume A = [1 1 1; 2 2 2 ; 3 3 3; 1 1 1; 4 4 4] as you see that the fir...
11 years 前 | 2 个回答 | 0
2
个回答提问
Calculate the angle between multiple points
I have a matrix A contain x values in the first column and y values in the second column. I want to calculate the angle between ...
11 years 前 | 2 个回答 | 1
2
个回答提问
Select the data point in this range
I have a data point (x,y) that generates inside a cell -50 to 50 in the x- direction and the same with y. Now I only want to ...
11 years 前 | 1 个回答 | 0
1
个回答提问
how to convert matrix A 1 x 200 into 100 x2
I have a matrix A=( x1 y1 x2 y2....) Now I want all the value of x in one column and y in one column. I had been tried ...
11 years 前 | 2 个回答 | 0