Create a file called “testtan.dat” comprised of two lines with three real numbers on each line (some negative, some positive, in the -1 to 3 range). The file can be created from the Editor, or saved from a matrix
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:3| Question number:22.3
All Answers
total answers (1)
>> mat = rand(2,3)*4-1
mat =
1.8242 0.1077 -0.6115
-0.8727 -0.8153 2.2938
>> save testtan.dat mat -ascii
>> load testtan.dat
>> tan(testtan)
ans =
-3.8617 0.1081 -0.7011
-1.1918 -1.0617 -1.1332
need an explanation for this answer? contact us directly to get an explanation for this answer