Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

So, I tried to place the data in a M-file title fprintfdemo. I don't know how to use this information to calculate theta as a

So, I tried to place the data in a M-file title fprintfdemo. I don't know how to use this information to calculate theta as a function of Z in a range of 0-180 degrees. Please show all MATLAB steps. Just to clarify what I did is in the first picture, but the question I am trying to solve is the second picture.image text in transcribedimage text in transcribed

function fprintfdemo x = [2.306 2.506 2.706 2.906 3.106 3.306 3.506 3.706 3.906 4.106 4.306 4.506 4.706 4.906) ; syms theta y = cos(theta); y = [-0.28790411 -0.20835944 -0.01087653 0.13355604 0.20852146 0.33856223 0.22623419 0.06181941 0.00567675 0.00573251 0.00155089 -0.00125758 0.00076836 -0.00213463] ; z = [x;y] ; fprintf(' x y '); fprintf('%50 %10.3f ',z); acos(z) 2. Read the following data into a Matlab program to calculate the angle values of 0 in range of O- 180 as a function of Z, and write the values of Z and into to an output file. Z(nm) cos 0 2.30600000 -0.28790411 2.50600000 -0.20835944 2.70600000 -0.01087653 2.90600000 0.13355604 3.10600000 0.20852146 3.30600000 0.33856223 3.50600000 0.22623419 3.70600000 0.06181941 3.90600000 0.00567675 4.10600000 0.00573251 4.30600000 0.00155089 4.50600000 -0.00125758 4.70600000 0.00076836 4.90600000 -0.00213463 (Requirement: paste the calculation results and the source code. Hint: the matlab command to calculate inverse cosine is acos)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 23rd International Conference Dexa 2012 Vienna Austria September 2012 Proceedings Part 1 Lncs 7446

Authors: Stephen W. Liddle ,Klaus-Dieter Schewe ,A Min Tjoa ,Xiaofang Zhou

2012th Edition

3642325998, 978-3642325991

More Books

Students also viewed these Databases questions

Question

4. Explain why strategic planning is important to all managers.

Answered: 1 week ago

Question

Why We Listen?

Answered: 1 week ago