![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/10838708_1522137636022_DEF.jpg)
Delshad Ayoubi
自 2017 起处于活动状态
Followers: 0 Following: 0
Feeds
提问
How can I make my code faster?
clear, clc, close all %-------------------------------------------------------------% N = 10^3; M = 400; radie = 5...
7 years 前 | 1 个回答 | 0
1
个回答提问
How do I use hist3 with my code?
In this code, I'm plotting a lot of particles and I want to represent them visually in a hist3 plot. I don't know how to make it...
7 years 前 | 0 个回答 | 0
0
个回答提问
Double for loop in a random walk. How do I loop over all particles simultaneously instead of looping the amount of steps for each separate particle one at a time?
I currently have a script that utilizes a double for loop in order to create a random walk in 2D. It however is looping over all...
7 years 前 | 2 个回答 | 0
2
个回答提问
How do I make a 2D randomwalk?
I have so far only been able to make a 1D randomwalk but I have to make it into 2D. Below is my code for 1D. How do I change it ...
7 years 前 | 1 个回答 | 0
1
个回答提问
I want to loop a value into a vector, how do I do this?
I am trying to loop through my script in order to get several values of one variable (D_N), and then putting all these values in...
7 years 前 | 2 个回答 | 0
2
个回答提问
How to put all the values of a for loop in a vector?
I want D_N to get another value in each loop and then put that value in a vector, T amount of times. Basically, I want to be abl...
7 years 前 | 0 个回答 | 0
0
个回答提问
Plot the same function several times in one go (Random walk)?
clear clc ================== N = 10; % number of steps. M = 10; x_t(1) = 0; for n = 1:N a = ...
7 years 前 | 1 个回答 | 0
1
个回答提问
How do I draw the graph of the same function several times?
clear clc x_t(1) = 0; N = 10^2; for t = 1:N xlabel('t'), ylabel('x_t'), title('Random Walk') ...
7 years 前 | 1 个回答 | 0
1
个回答提问
Write a function fml(x) where given vector x returns first, middle and last. If the number of elements in the vector are even, middle should take the mean value of the innermost elements.
function [first, middle, last] = fml(x) %FML Returns the first, middle, and last element of x first = x(1); last = x(le...
7 years 前 | 1 个回答 | 0