photo

weikang zhao


Last seen: environ un an il y a Actif depuis 2020

Followers: 0   Following: 0

Statistiques

  • 3 Month Streak
  • Knowledgeable Level 2
  • First Answer

Afficher les badges

Feeds

Afficher par

Réponse apportée
Number generator for 0.00006 to 30 range
It looks like you don't want these random numbers to follow a uniform distribution, you want their logarithms to follow a unifor...

environ 2 ans il y a | 1

Réponse apportée
Unclear array operation in matlab
Hello, this is matlab's unique indexing mechanism. For a 5*3 matrix, you can use 1-15 to index all elements. Matlab uses column...

environ 2 ans il y a | 1

Réponse apportée
Efficiently find a value in a matrix
From the perspective of computational complexity, your code can no longer be optimized. You can seek help from GPU acceleration ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Why is my function returning these error messages?
You may have missed all the multiplication signs, such as: t = p*((1-cosd(alpha))/3 + cosd(alpha)) + q*(((1-cosd(alpha))/3 - si...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Finding matching points between two 2d point sets, but different sizes
I provide a feasible solution. Assuming that the length of xy1&`xy2` are m and n, first generate a set of size m*n, including t...

plus de 3 ans il y a | 0

Réponse apportée
Finding matching points between two 2d point sets, but different sizes
if you dont need a very precise result, clear load('xy1.mat'); load('xy2.mat'); fixdistance=[-0.27,2.3]; newxy1=xy1+fixdis...

plus de 3 ans il y a | 0

Réponse apportée
How to sort a column of data based on another?
`[B,I] = sort(___) also returns a collection of index vectors for any of the previous syntaxes. I is the same size as A and desc...

presque 4 ans il y a | 0

Réponse apportée
How to write _ in a plot legend?
change the Interpreter like other answers Tex has its own escape for _ : legend('a\_b');

presque 4 ans il y a | 0

Réponse apportée
loop with uniform distribution
for loop is unnecessary; Wrong way to index matrix u; t1 is unnecessary cause t1 have the same probability distributions with ...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
How can we find the width in an image at any three positions.
If you only have one figure to process, use edge() to detect the edge of the figure, then manually find the edge and use linear ...

presque 4 ans il y a | 0

Réponse apportée
N*N matrix plot
use image() function

presque 4 ans il y a | 0

Réponse apportée
create a program that estimates pi by simulation
This seems to be your homework and not a technical problem. Normally, I don’t do homework for others, but this question is simpl...

presque 4 ans il y a | 0

Réponse apportée
Generate a matrix the shifts variables one column
some error: The matrix given in the picture is a (N+1)*(N+1) matrix. The (2,0) element of the matrix is not given, I assume it i...

presque 4 ans il y a | 0

Réponse apportée
Split vector by value ranges?
Use anonymous functions, it allows you to implement quite complex functions in one line. MATLAB supports dot indexing into funct...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
How can I plot a circle use given point?
If you have coordinates of three points, the radius and center of the circle can be obtained by solving a positive definite equ...

presque 4 ans il y a | 0

Réponse apportée
How to change the X axis scale in a wavlet?
You can freely control the position and content of the axis display by setting 'XTick' & 'XTickLabel' of the Axes object. for e...

presque 4 ans il y a | 0

Réponse apportée
Average of selected elements in Matlab
easy, use "conv" x=conv(a(:,2),[1/3,1/3,1/3]); the first element and the second element of 'x' are useless. have fun

presque 4 ans il y a | 1

| A accepté

Réponse apportée
how do i read multiple audio file from different files name ?
You need a loop body, the loop body continuously generates the path of the audio file. Run the following script and you will un...

presque 4 ans il y a | 1

Réponse apportée
Loading binary data into custom array
The “fopen” function may be more flexible. It allows you to access the data in the binary file in any way, of course, including ...

presque 4 ans il y a | 0

Réponse apportée
finite Integral in matlab
use the numerical integration function "integral" integral(@(x) sqrt(10/(3*9.81)) ./ sqrt(-2*cos(x) - sin(x) + 2*cos(pi/6)-sin(...

presque 4 ans il y a | 0

Réponse apportée
how to make such type of plot in matlab? we have 4 models and each model have different depth and different velocities v1, v2.
I tried to restore part of the picture by visually inspecting the values. As a demonstration, two lines (model A & model LE) are...

presque 4 ans il y a | 0

| A accepté