Frage


repeating values in the loop
Hi to all, Can anyone please remove the error in the attached file . I want to make a loop in which theta_new = theta_initial...

mehr als 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Adding the elements to next element
Hi to all, my question is as follows initial_A = 0 Let A = [1 2 3 4 5 6] I want to add initial_A to A(1) the the sum will...

mehr als 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


only one element satisfies the condition
Hi to all, In the attached program only one element satisfies the condition. I want when an element satisfies the condition it...

mehr als 9 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


recalling the values as a row matrix
Hi to all, the program attached satisfy the conditions. now I want that the values which are obtained for theta can be seen all ...

mehr als 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Values being repeated for nmc times
Hi all, The initial values are calculated fine. Firstly, in the loop for first value of magnetic field, calculate zeeman energ...

mehr als 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Loop correction of program. Zeeman Energy
Attach please find the code for correction. All the details of errors are defined in the code for easy understanding. Graph resu...

mehr als 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


generating n random matrices
Hi to all , I want to generate matrices with the following code. nmc = 1000 matrices(1:nmc) = rand(3,3,nmc) I want...

mehr als 9 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


fixing the values in matrix when it come between 0 and 1
Hi all,I want to fix the values in matrix which comes between 0 and 1 and the other values carry on till the time when all the v...

mehr als 9 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


restricting the number between limits
clc clear all a = 10 b = rand(1) nmc = 100 for i = 1:nmc c = a - b if c < a a = c else a...

mehr als 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Random no matrix for 1 & -1
I want to generate a random matrix for which if element is < 0.5 it is equal to -1 and if >=0.5 its equal to 1 . kindly correct...

mehr als 9 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


making smooth curve of M-B
Kindly update that why it doesnt give a smooth curve starting from zero to net_magnetization......Regards......... Code file an...

mehr als 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to run a program for three different values
Hi to all the Users, My question is that I made a program and calculated the value with some temperature T=20 got the graph a...

mehr als 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


reducing an angle from 30 degree to 20 degree and increasing angle form 280 degree to 20
consider that there are two vectors A and B , A is at angle of 30 degree to x axis and B is at an angle of 280 degree to x axis....

mehr als 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


each value calculation for Mag Field
Hi all, Kindly check this code. for each value of magnetic field there is value of angle alpha. I want to calculate zeeman energ...

mehr als 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Making the loop continuous
Hi all Matlab users,........ hope you all are fine. Check my m file and attached picture. the result of the code should be like ...

mehr als 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


1 and 0 matrix
Hi All,.. I want to generate a n by n matrix with 1 and 0 . this matrix should have 10 percent zeros.... in some we cant get ...

mehr als 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


sum of random matrix = to zero
Dear All, I want to generate a=6 X 6 random matrix but the sum(sum(a)) = zero. Help in this regard will be highly appreciate...

fast 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


sum of rand matrix equal to zero
Dear All, I want to generate matrix A ,i.e. n by n random matrix but the sum(sum(A)) = zero. Help in this regard will be hig...

fast 10 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


-1 and 1 matrix
Hello All, I want to create a n X n matrix with 1row 1, 2nd row -1, 3rd row 1 , 4th row -1 and so on..... can anyone please...

fast 10 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


sum of all anges is zero
Hi all , Hope all is fine, I want to generate a n X n matrix of angle but the condition is that sum of all the angles is equa...

fast 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


matrix operation by element of other matrix
Hi All, Hope all going fine...... I need your help please....... THANKS IN ADVANCE FOR TAKING OUT TIME.............. Consider...

fast 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


subtraction ele by ele
hi all, consider any two matrix A and B of 3X3 . i want to subtract every element of A from each element of B one by one. ki...

fast 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


rand matrix for FM
Hi all,I want to generate a random matrix so that the sum of all the elements is zero. I mean the random numbers are so selected...

fast 10 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


Hi All, My question to all is that .......... I have to add the elements with in the matrix.........
2 1 2 1 1 1 1 1 1 i want to add a(1,2)and a(2,1) and then multiply it with a(1,1) and so on for ...

fast 10 Jahre vor | 2 Antworten | 0

2

Antworten