Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7533643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:47:04+00:00 2026-05-30T05:47:04+00:00

theta1 = theta(:,1); //This is a column vector of data extracted from an 18×30

  • 0

theta1 = theta(:,1); //This is a column vector of data extracted from an 18x30 matrix theta1 is 18×1.

Then from here I need to go through each of the individual 18 elements one at a time with the following calculations:

nx =((cos(theta1(1))^2)/(1.5^2) + ((sin(theta1(1))^2)/(1.7^2)))^(-1/2);

Here I have selected the first element using “theta1(1)” but ideally I would like to somehow use a for loop so that this calculation can be done for all 18 values of
“theta1” that I have and then produce another 18×1 matrix of “nx”. I have tried using a for loop but I can’t get it to work correctly.

Then after this I want to use each of the 18 elements of “nx” in another calculation to get another variable:

d = (2*pi*(nx-1.5)*0.000018)/0.000000555;

So, I am looking for some sort of general for loop or any other suitable method that would allow me to do this type of calculation where I use each element in an array and plug it into a formula and produce another array with the answer of the calcualation.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T05:47:05+00:00Added an answer on May 30, 2026 at 5:47 am

    Try using

    nx =((cos(theta1(:)).^2)/(1.5^2) + ((sin(theta1(:)).^2)/(1.7^2))).^(-1/2);
    d = (2*pi*(nx(:)-1.5)*0.000018)/0.000000555;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here are two statements from my Mathematica program. Print[ExpandAll[Chop[Integrate[Resi*Cos[7*1*\[Theta]]*Sin[(1*Pi*x)/L], {\[Theta], 0,2*Pi},{x,0, L}], 10^-6]]]; This
So I defined.. #define RADIAN(x) x*3.14159265f/180.0f and then used it like this: RADIAN(theta-90) My
How would you find the signed angle theta from vector a to b? And
Started learning algorithms. I understand how to find theta-notation from a 'regular recurrence' like
I'm trying to annotate a polar plot with data tips labelled with 'R:...,Theta:...' where
I need to pass some parameters between adorner and adorned control. How this can
Imagine this: def method(self, alpha, beta, gamma, delta, epsilon, zeta, eta, theta, iota, kappa):
for a school project I need to find theta and phi for a spherical
I'm looking at this example about sound generation on iOS because I need to
I know that this loop is O(n^2) but what is Big-Omega and Big-Theta? How

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.