Question

In: Electrical Engineering

Write a C or Matlab code for E11(1, 6), consider the point G = (2, 7)....

Write a C or Matlab code for E11(1, 6), consider the point G = (2, 7). Compute the multiples of G from 2G through 13G

Solutions

Expert Solution

% function abc = cowin_coefficients_cowins_method(E, A)

%

% Compute Cowin's coefficients a, b, and c as defined in his 1985 paper.

% This method uses a quasi-direct solution procedure proposed by himself.

%

% E is a 6x6 symmetric matrix representing an orthogonal stiffness tensor

% in sqrt2 notation. The coefficients of E should correspond to

% the principal axis system spanned by the eigenvectors of the fabric tensor.

% A is a 3x1 vector containing the eigenvalues of the fabric tensor.

%

% Return: abc is a 9x1 vector containing coefficients [a; b; c].

% This file is part of MMTensor. % %

% %

% Redistribution and use in source and binary forms, with or without %

% modification, are permitted provided that the following conditions are %

% met: %

% * Redistributions of source code must retain the above copyright %

% notice, this list of conditions and the following disclaimer. %

% * Redistributions in binary form must reproduce the above copyright %

% notice, this list of conditions and the following disclaimer in %

% the documentation and/or other materials provided with the %

% distribution. %

% * Neither the name of the Katholieke Universiteit Leuven nor the %

% names of its contributors may be used to endorse or promote %

% products derived from this software without specific prior written %

% permission.

function abc = cowin_coefficients_cowins_method(E, A)

%% Initialize fabric tensor A

% Keep only the diagonal, the other coefficients should be zero.

if isequal(size(A),[3,3])

A = diag(A);

end

% Make sure A is a 3x1 vector

A = reshape(A, 3, 1);

% Precompute the square of A

A2 = A.^2;

%% Initialize stiffness tensor E

E_diag = diag(E(1:3,1:3));

E_off = [E(2,3); E(1,3); E(1,2)]; % Off-diagonal terms

E_shear = 0.5*diag(E(4:6,4:6)); % Division by 2 due to sqrt2 notation.

%% Initialize the coefficient matrices

Z = [ ones(3,1) 2*A 2*A2];

B = repmat(A2, 1, 3) .* [ ones(3,1) 2*A A2];

C = [ 1 A(2)+A(3) A2(2)+A2(3);

1 A(1)+A(3) A2(1)+A2(3);

1 A(1)+A(2) A2(1)+A2(2) ];

  

D = [ A(2)*A(3); A(1)*A(3); A(1)*A(2) ];

D = [ D C(:,2).*D D.*D ];

%% Solve the system according to Cowin's proposal

C_inv = inv(C);

F = B - Z*C_inv*D;

F_inv = inv(F);

c = C_inv * E_shear;

b = F_inv*E_diag - F_inv*Z*C_inv*[E_off+2*E_shear];

a = C_inv * (E_off - D*b);

%% Put everything together

abc = [a;b;c];

end


Related Solutions

Please write a MATLAB code that shows the intersection point of resistance circle and reactance arc...
Please write a MATLAB code that shows the intersection point of resistance circle and reactance arc on Smith Graph, according to the given load impedance value. Assuming that the characteristic impedance of the transmission line is taken as 50 ohms.
This is the Matlab practice so needs Matlab code 2. Numerical Integration Consider an industrial tank...
This is the Matlab practice so needs Matlab code 2. Numerical Integration Consider an industrial tank in the shape of an inverted cone. The radius of the tank at the top rim is 3 m, and the total height of the tank is 4 m. The volume of the tank in m3 is given by: V = (1/3) R2 H. The volume of liquid in the tank when filled to a height h measured from the bottom vertex is: V...
Write a c or matlab text code(to be copied ) for Huffman coder and Huffman decoder...
Write a c or matlab text code(to be copied ) for Huffman coder and Huffman decoder that asks the user to enter the string and output the Huffman code for every letter and a code for encoding that will have every letter and its Huffman code and output all the possibilities for the real string. you must show a screen of an input and the output for both the encoder and the decoder
Use Matlab to write the following 1. Write code to determine whether a year is a...
Use Matlab to write the following 1. Write code to determine whether a year is a leap year. Use the mod function. The rules for determining leap years in the Gregorian calendar are as follows: All years evenly divisible by 400 are leap years. Years evenly divisible by 100, but not by 400, are not leap years. Years divisible by 4, but not by 100, are leap years. All other years are not leap years. For example, the years 1800,...
write the code in MATLAB with comments and show the inputs and results of the code...
write the code in MATLAB with comments and show the inputs and results of the code for the question below. Write an .m file in MATLAB, that records audio (you can record your own voice for 20 seconds that was recorded using your phone), then take Fourier transform of the signal (probably FFT).
the language is matlab 1) Write a code that will print a list consisting of “triangle,”...
the language is matlab 1) Write a code that will print a list consisting of “triangle,” “circle,” and “square.” It prompts the user to choose one, and then prompts the user for the appropriate quantities (e.g., the radius of the circle) and then prints its area. If the user enters an invalid choice, the script simply prints an error message. For calculating the area, create separate functions for each choice. Name them as calcTriangle, calcCircle, calcSquare respectively, which are only...
A point charge of -6 C is located at x = 1 m, y = -2...
A point charge of -6 C is located at x = 1 m, y = -2 m. A second point charge of 12 C is located at x = 1 m, y = 3 m. (a) Find the magnitude and direction of the electric field at x = -1 m, y = 0. (in N/C and in degrees) b) Calculate the magnitude and direction of the force on an electron at x = -1 m, y = 0. (in N...
show the MATLAB Code with comments and Write an .m file in MATLAB, that records audio...
show the MATLAB Code with comments and Write an .m file in MATLAB, that records audio (you can record your own voice for 20 seconds), takes Fourier transform of the signal (probably FFT).
write a matlab code to simulate fiber optics communication system on matlab simulink
write a matlab code to simulate fiber optics communication system on matlab simulink
1.) Consider this exothermic reaction: A(g) + B(g) 2 C(g) + D(g) What can be said...
1.) Consider this exothermic reaction: A(g) + B(g) 2 C(g) + D(g) What can be said about the spontaneity of this reaction? A) It is never spontaneous B) Not enough info C) It is only spontaneous at high temperatures E) It is only spontaneous at low temperatures F) It is always spontaneous 2.) Consider this reaction: A(g) + B(g) C(g) What can be said about the entropy () of this reaction? A.) It is equal to zero B) It is...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT