Community Profile

photo

Johnny


Last seen: 3 years ago Active since 2019

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


Forming loop to simplify codes
Can you help me use loop to simplify the following code and produce the same graph? c=5 dista=log([12:-1:8 6 4:-1:1]+retint) ...

4 years ago | 1 answer | 0

1

answer

Question


A question about matrix
By following codes, I get a 50x50 matrics with randon 1 and 0. Now I want to specify how many 1 and how many 0 are in this 50x50...

4 years ago | 1 answer | 0

1

answer

Question


To make coding simplier and have the same plot
Is there any ways to make my coding simplier at the same time keep my plot result as same as my original one? retint05 = 5 ret...

4 years ago | 1 answer | 0

1

answer

Question


a question about plotting
Q. I have many S seperately with different on lines on the plot, lines with different k have different colours and shapes. I ch...

4 years ago | 1 answer | 0

1

answer

Question


a easier way to do vector
Is there any easier or more efficient way to calculate SF when there is different k? I = [1:100] k03 = 0.3 k1 = 1 k3 = 3 ...

4 years ago | 1 answer | 0

1

answer

Question


Need help to vectorize a for loop
Pls help... how to vectorise this for loop unimodal=[28 42 46 49 52 55 58 61 64 68 82] for n=1:11 ru(n)=(unimodal(n)-min(...

4 years ago | 1 answer | 0

1

answer

Question


vectorisation a for loop
c=5; retint=0; dist=log([10:-1:1]+retint); for i=1:length(dist) eta=exp(-c*abs(dist(i)-dist)); discrim(i)=1/sum...

4 years ago | 2 answers | 0

2

answers