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 957227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:40:07+00:00 2026-05-16T00:40:07+00:00

Using Matlab, how to generate a net of 3^10 points that are evenly located

  • 0

Using Matlab, how to generate a net of 3^10 points that are evenly located (or distributed) on the 8-dimensional unit sphere?

  • 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-16T00:40:08+00:00Added an answer on May 16, 2026 at 12:40 am

    from wikipedia n-sphere

    To generate uniformly distributed
    random points on the (n − 1)-sphere
    (i.e., the surface of the n-ball),
    Marsaglia (1972) gives the following
    algorithm.

    Generate an n-dimensional vector of
    normal deviates (it suffices to use
    N(0, 1), although in fact the choice
    of the variance is arbitrary),
    \mathbf{x}=(x_1,x_2,\ldots,x_n).

    Now calculate the “radius” of this
    point,
    r=\sqrt{x_1^2+x_2^2+\cdots+x_n^2}.

    The vector \frac{1}{r} \mathbf{x} is
    uniformly distributed over the surface
    of the unit n-ball.

    A matlab code fragment that accomplishes this is:

    numdims = 8;
    numpts = 3^10;
    x = randn([numdims numpts]);
    lx = repmat(sqrt(sum(x.^2,1)), [numdims 1]);
    x = x./lx;
    %x(:,j) is the jth point on the circle)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to generate some code using MATLAB Embedded Coder that runs an fft2
I am using the publishing functionality of MATLAB to generate a quick report of
I have some data generated in MATLAB that I want to process using Perl.
For my project I need to generate a sine wave using matlab which has
I have some differential equations that I need to solve using MATLAB's ODE solvers.
How can I generate a set of image projections using MATLAB ? I have
How would you generate a random matrix that is not singular in MATLAB.? I
I'm using MATLAB and am calling a function that returns properties of the screen.
Using MATLAB, I have this code: value = input('>> Enter a value: '); and
I'm using Matlab to solve a differential equation. I want to force ode45 to

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.