Community Profile

photo

Offroad Jeep


FAST

Last seen: 1년 초과 전 2015년부터 활동

통계

  • Thankful Level 4

배지 보기

Content Feed

보기 기준

질문


storing the value of a loop
Hi, I have values b=2,4,5,8,9,11,19 these values come after running a loop and appear one by one now i want to get all th...

1년 초과 전 | 답변 수: 0 | 0

0

답변

질문


how to delete decimal places
clc clear all format long a = 1 b = 90 r = a + (b-a)*rand() N=3 r = a + (b-a)*rand(N,N) Question 1. how to ignore t...

1년 초과 전 | 답변 수: 1 | 0

1

답변

질문


ushuffle the matrix elements
let a be any mXm matrix e.g. a = magic(3) 8 1 6 3 5 7 4 9 2 i want to shuffle the e...

1년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Range of x and y
Hi! I have the values of x and y... x ranges for 1.8 to -1.8 y ranges from 5 to -5 I want to set the value of x = 2 to -2...

1년 초과 전 | 답변 수: 1 | 0

1

답변

질문


How to find value on the graph
Hi To All, the following values plot a hysteresis graph. I want to check what is the value of Mag_Field for Magnetization = 0 on...

5년 초과 전 | 답변 수: 2 | 0

2

답변

질문


Change of sign in a matrix one by one
Hi to all the users. I have a matrix A = ones(5), I want to change the sign of elements one by one but under the condition with ...

7년 초과 전 | 답변 수: 1 | 0

1

답변

질문


how to reject of the next value less than the previous one
Hi to all the Matlab users, I have made a program in which I want to accept the value in a loop which is less than the previous ...

7년 초과 전 | 답변 수: 2 | 0

2

답변

질문


Generation of Random matrices in ascending order
Hi to all the matlab users. I want to generate 5 matrices of 3X3. the initial matrix is having all zeros. then the next 5 matric...

7년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Why the matrix is changing from 10X10 to 1X100
My question details in steps 1. generate 10X10 matrix, ones(10) 2. randomly select a site and change it to -1 3. repeat ...

7년 초과 전 | 답변 수: 2 | 0

2

답변

질문


Change 1 to -1 in a matrix
Hi to all the members, I have a 4 X 4 Matrix of one i.e ones(4). I want to change all the elements from 1 to -1 randomly in the ...

7년 초과 전 | 답변 수: 2 | 0

2

답변

질문


Putting 1 around the matrix
Hi I have a 3X3 matrix and want to put 1 around the matrix as it will become 4X4 matrix.....

7년 초과 전 | 답변 수: 2 | 0

2

답변

질문


Generating a new matrix
Let A be a matrix A = rand(4) For all values of A >=0.5, A = 1 else A = 0 now I want to generate a new matrix Alpha.......

7년 초과 전 | 답변 수: 2 | 0

2

답변

질문


RANDOM FLIPPING FROM 1 TO -1
Hi to all the users, I have tried a code in which numbers are changed from 1 to -1 turn by turn. But I need some condition. #...

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


Change from 1 to -1
Hi to all , I have a Matrix A = ones(5). How i can change the element value one by one to -1. example A = [1,1,1] A = [-1,...

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


how to assign angle
Hi to all I am fine and hoping for the same. I want to take cos(theta) of the angle but for a = 1 and b = 1 angle should be 0 an...

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


sum of all matrix elements equal to zero
Hi, kindly check the code. I want a matrix whose total sum of elements is zero....... regards clc clear all form...

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


How to check condition element by element till satisfied
if true clc clear all format compact a = ones(5) w_rand = rand() if w_rand > 0.5 a = -1 end I want to gener...

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


Flipping the numbers 1 to -1
Hi, to all the members. Consider a matrix 'a' now we take a random number, if random number is >= to 0.5 change the first eleme...

대략 8년 전 | 답변 수: 2 | 0

2

답변

질문


how to pick element by element
A = magic(3) kindly tell me how i can pick one by one element in same matrix A then do some mathematical operation if it sa...

대략 8년 전 | 답변 수: 1 | 0

1

답변

질문


Repetition of values number of times
Attach please find the code . it is repeatedly giving the value where i only want one time random dtheta and it should not repea...

대략 8년 전 | 답변 수: 1 | 0

1

답변

질문


why the loop is giving repeated array
Attach please find the code . it is repeatedly giving the value where i only want one time random dtheta and it should not repea...

대략 8년 전 | 답변 수: 1 | 0

1

답변

질문


Plot of Magnetization Vs Magnetic Field
Dear Matlab Users, Hi to All, I have tried to plot the magnetization Vs Magnetic field. when the magnetic field is reduced the ...

대략 8년 전 | 답변 수: 1 | 0

1

답변

질문


generation of random numbers
Hi to all the Users, I have B = linspace(2,0,10); we have B = 2.0000 1.7778 1.5556 1.3333 1.1111 0.8889 0.6...

대략 8년 전 | 답변 수: 1 | 0

1

답변

질문


plot of theta_new and cos theta
clc clear format compact nmc = 1000 theta_initial = 0 % b = ones(2) for i = 1:nmc a = round (rand(1)-0.3)...

대략 8년 전 | 답변 수: 1 | 0

1

답변

질문


How to save the value in matrix
hi , how i can save the result in matrix form as of the same size of initial matrix, i mean it only give 1 value i want to save ...

8년 초과 전 | 답변 수: 1 | 0

1

답변

질문


loop not working for negative value
Hi to all , Attached please find the file in which loop is not working for the negative value. when random number is added to ne...

8년 초과 전 | 답변 수: 1 | 0

1

답변

질문


ignoring the negative values....
Hi to all ........... a = rand(1,10)-0.5 cumsum(a) the command uses all the positive and negative values generated , I wa...

8년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Adding elements by elements
Hi to all, Attach please find the code for correction Initial values are given. Random values of dtheta are generated I wan...

8년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Adding the arrays number
Hi to all, I have generated random numbers a = 0 da = rand(1,10) now i want to add *|a+da|* so that the previous resu...

8년 초과 전 | 답변 수: 1 | 0

1

답변

질문


how to check each value of matrix
let a = [1,2,3;4,5,6;7,8,9] b = 1 c = b-a if an element of 'a' becomes 0 after c operation it should be fixed i.e. o...

8년 초과 전 | 답변 수: 2 | 0

2

답변

더 보기