issue with sequaring sec of matrix

조회 수: 1 (최근 30일)
Abdulaziz
Abdulaziz 2013년 11월 18일
답변: Walter Roberson 2013년 11월 18일
Dear all
Please I need help with an issue of secuaring every sec(Phi)which i need in a part of my code
Phi=0:(2*pi)/360:(340*pi)/180;
ff=sec(Phi).^2
the resulted matrix has all its elements zeros that multiplied in e+33
your help is higly appreciated
  댓글 수: 2
Walter Roberson
Walter Roberson 2013년 11월 18일
Your code would probably be clearer if you used linspace() instead of an increment.
Are you trying to work in degrees or radians? What is your maximum value in radians ?
Abdulaziz
Abdulaziz 2013년 11월 18일
I want to work in radians and the angle Phi varies from zero to 340
I am trying to find the x values where x=17.5/cos^2(phi) .All the values of x I got are zeros which is wrong but the first element of x was right (17.5)
Thank you for your concern

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2013년 11월 18일
At the command prompt give the command
format long g
and then have another look at the values in ff.

카테고리

Help CenterFile Exchange에서 Spline Postprocessing에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by