MATLAB Answers

Subscribe to this View
1 - 50 of 347

### 2

answers

#### I have a variable 'n'. I want n to take a value 1 or 2 randomly. how do i code it?

Asked by Aanandita Katre

### Aanandita Katre (view profile)

about 9 hours ago
Latest activity Commented on by Star Strider

### Star Strider (view profile)

about 8 hours ago

### 1

answer

#### Looking for something like a matrix version of randsample... [vectorization!]

Asked by Dan Gianotti

### Dan Gianotti (view profile)

on 25 Nov 2015 at 17:27
Latest activity Commented on by Dan Gianotti

### Dan Gianotti (view profile)

on 26 Nov 2015 at 3:34

answer

Asked by SS

### SS (view profile)

on 20 Nov 2015 at 21:44
Latest activity Answered by Walter Roberson

### Walter Roberson (view profile)

on 20 Nov 2015 at 22:07

### 1

answer

#### How can I generate a random number that is negative or positive and between two other values?

Asked by Lena Berard

### Lena Berard (view profile)

on 20 Nov 2015 at 19:18
Latest activity Answered by Walter Roberson

### Walter Roberson (view profile)

on 20 Nov 2015 at 19:36

### 1

answer

#### How to generate vector with different prob. distributions for each element?

Asked by Michal Roubalik

### Michal Roubalik (view profile)

on 18 Nov 2015 at 10:08
Latest activity Edited by the cyclist

### the cyclist (view profile)

on 18 Nov 2015 at 14:40
Products

### 3

answers

#### Random weighted numbers without repeating

Asked by Wesley Baranowski

### Wesley Baranowski (view profile)

on 18 Nov 2015 at 1:45
Latest activity Answered by the cyclist

### the cyclist (view profile)

on 18 Nov 2015 at 2:53

answer

Asked by Ben

### Ben (view profile)

on 14 Nov 2015 at 22:59
Latest activity Commented on by Ben

### Ben (view profile)

on 15 Nov 2015 at 19:30
Accepted Answer by Stephen Cobeldick

answers

Asked by dragoon

### dragoon (view profile)

on 12 Nov 2015 at 21:47
Latest activity Commented on by dragoon

### dragoon (view profile)

on 12 Nov 2015 at 22:57

### 1

answer

#### How to make a random vector in Matlab as a ones and zeros but under control?

Asked by Hamid Reza Barzegar

### Hamid Reza Barzegar (view profile)

on 11 Nov 2015 at 14:01
Latest activity Commented on by Hamid Reza Barzegar

### Hamid Reza Barzegar (view profile)

on 11 Nov 2015 at 14:17
Accepted Answer by Thorsten

### 0

answers

#### generate Exponential distributed random variable from the square of rayleigh distributed random variable

Asked by soumen mondal

### soumen mondal (view profile)

on 8 Nov 2015 at 13:59

### 1

answer

#### Exponential Distribution for random number

Asked by Aftab Ahmed Khan

### Aftab Ahmed Khan (view profile)

on 7 Nov 2015 at 13:41
Latest activity Commented on by Star Strider

### Star Strider (view profile)

on 7 Nov 2015 at 18:34
Accepted Answer by Star Strider

answers

Asked by Robert

### Robert (view profile)

on 4 Nov 2015 at 20:43
Products

### 1

answer

#### Generating random numbers with mean and std dev specified

Asked by Lorraine Williams

### Lorraine Williams (view profile)

on 24 Oct 2015
Latest activity Commented on by Star Strider

on 24 Oct 2015

### 3

answers

#### How to take a random sample of each column?

Asked by Alessandro

### Alessandro (view profile)

on 13 Oct 2015
Latest activity Answered by Image Analyst

on 15 Oct 2015

### 0

answers

#### Generate Random Number to Simulate

Asked by Hanson Zhou

### Hanson Zhou (view profile)

on 12 Oct 2015
Latest activity Commented on by Walter Roberson

on 13 Oct 2015

### 2

answers

#### matrix of zeros and ones within number of zeros in each rows in-between a limit

Asked by BISWANATH MAHANTY

### BISWANATH MAHANTY (view profile)

on 9 Oct 2015
Latest activity Commented on by Image Analyst

### Image Analyst (view profile)

on 10 Oct 2015
Accepted Answer by Thorsten

### 1

answer

#### Performance of random number generator

Asked by Sebastián Acevedo Mejia

### Sebastián Acevedo Mejia (view profile)

on 4 Oct 2015
Latest activity Commented on by Sebastián Acevedo Mejia

on 7 Oct 2015

### 2

answers

#### Rolling 5 dice probability

Asked by Nicholas Greiwe

### Nicholas Greiwe (view profile)

on 1 Oct 2015
Latest activity Edited by John D'Errico

on 1 Oct 2015

### 2

answers

#### Is there a way for MatLab to compute random numbers for a range of numbers?

Asked by George Carlisle

### George Carlisle (view profile)

on 1 Oct 2015
Latest activity Edited by George Carlisle

on 1 Oct 2015

### 1

answer

#### how to assign randomly generated numbers to a matrix say 10 by 2?

Asked by IRANI ACHARJAMAYUM

### IRANI ACHARJAMAYUM (view profile)

on 29 Sep 2015
Latest activity Commented on by IRANI ACHARJAMAYUM

### IRANI ACHARJAMAYUM (view profile)

on 29 Sep 2015
Accepted Answer by Walter Roberson

### 1

answer

#### Generate 100 random numbers from 0 to 1 and freeze it

Asked by sally_wu

### sally_wu (view profile)

on 27 Sep 2015
Latest activity Answered by Walter Roberson

on 27 Sep 2015
Products

answer

Asked by Lucy

### Lucy (view profile)

on 21 Sep 2015
Latest activity Commented on by Lucy

### Lucy (view profile)

on 21 Sep 2015
Accepted Answer by Image Analyst

### 1

answer

#### counting number of inputs

Asked by stephen aboasu

### stephen aboasu (view profile)

on 19 Sep 2015
Latest activity Edited by James Tursa

on 19 Sep 2015

answers

Asked by Marvin

### Marvin (view profile)

on 22 Mar 2012
Latest activity Commented on by Kabeer Akande

### Kabeer Akande (view profile)

on 17 Sep 2015
Accepted Answer by Wayne King

### 1

answer

#### rand but even numbers

Asked by stephen aboasu

### stephen aboasu (view profile)

on 12 Sep 2015
Latest activity Answered by Star Strider

on 12 Sep 2015

### 2

answers

#### Rand with product less than value

Asked by Stelyios Vasilopoulos

### Stelyios Vasilopoulos (view profile)

on 6 Sep 2015
Latest activity Answered by Walter Roberson

### Walter Roberson (view profile)

on 6 Sep 2015
Accepted Answer by Star Strider

### 1

answer

#### This is a problem related to create random number with matlab...

Asked by huang gangfeng

### huang gangfeng (view profile)

on 3 Sep 2015
Latest activity Answered by Walter Roberson

on 4 Sep 2015

### 1

answer

#### How can I generate sequence of uniformly distributed random numbers in MATLAB without using RAND function?

Asked by PRATHYUSHA DEVI KOSALA

### PRATHYUSHA DEVI KOSALA (view profile)

on 11 Aug 2015
Latest activity Commented on by Brendan Hamm

on 11 Aug 2015

### 1

answer

#### Using normpdf() and a for Loop to Generate Multiple Gaussian Random Variable Arrays

Asked by James Hayek

### James Hayek (view profile)

on 9 Aug 2015
Latest activity Answered by Bjorn Gustavsson

on 10 Aug 2015
Products

### 1

answer

#### How to generate non repeating random numbers

Asked by Deepa AS

### Deepa AS (view profile)

on 9 Aug 2015
Latest activity Commented on by Deepa AS

### Deepa AS (view profile)

on 9 Aug 2015
Accepted Answer by Azzi Abdelmalek

### 1

answer

#### Random number gerator problem

Asked by Sanwal Yousaf

### Sanwal Yousaf (view profile)

on 5 Aug 2015
Latest activity Edited by James Tursa

### James Tursa (view profile)

on 5 Aug 2015
Accepted Answer by James Tursa

Products

answer

Asked by Paba

### Paba (view profile)

on 28 Jul 2015
Latest activity Edited by John D'Errico

on 29 Jul 2015

answers

Asked by nawaf

### nawaf (view profile)

on 3 Sep 2014
Latest activity Answered by Christian

on 28 Jul 2015

### 1

answer

#### Generate sample with a mixed exponential distribution

Asked by Joy Tian

### Joy Tian (view profile)

on 26 Jul 2015
Latest activity Answered by Star Strider

on 26 Jul 2015

answers

Asked by Jorge

### Jorge (view profile)

on 11 Jul 2015
Latest activity Commented on by Jorge

### Jorge (view profile)

on 14 Jul 2015
Accepted Answer by Alfonso Nieto-Castanon

answer

Asked by msh

### msh (view profile)

on 12 Jul 2015
Latest activity Commented on by Walter Roberson

on 12 Jul 2015

answer

Asked by Anna

### Anna (view profile)

on 29 Jun 2015
Latest activity Answered by Edric Ellis

### Edric Ellis (view profile)

on 30 Jun 2015
Accepted Answer by Edric Ellis

### 2

answers

#### Randperm generating the same sequence of permutation

Asked by Saikath Bhattacharya

### Saikath Bhattacharya (view profile)

on 17 Jun 2015
Latest activity Commented on by Saikath Bhattacharya

on 17 Jun 2015

answers

Asked by Anna

on 16 Jun 2015

answers

Asked by hamed

### hamed (view profile)

on 11 Jun 2015
Latest activity Commented on by hamed

on 14 Jun 2015

answers

Asked by a

### a (view profile)

on 12 Jun 2013
Latest activity Commented on by Green N

### Green N (view profile)

on 11 Jun 2015
Accepted Answer by Azzi Abdelmalek

### 3

answers

#### How to generate random number from cumulative distribution function (CDF) in Matlab

Asked by Mohammad Hesam

### Mohammad Hesam (view profile)

on 5 Jun 2015
Latest activity Commented on by Mohammad Hesam

### Mohammad Hesam (view profile)

on 5 Jun 2015
Accepted Answer by Image Analyst

### 0

answers

#### How to create random series of numbers following binomial distribution?

Asked by Lee Seohyun

on 5 Jun 2015

### 0

answers

#### How to make program keep asking input..

Asked by serkan yassikaya

on 4 Jun 2015

### 2

answers

#### How to create a random number as i asked below.

Asked by serkan yassikaya

### serkan yassikaya (view profile)

on 3 Jun 2015
Latest activity Commented on by serkan yassikaya

on 3 Jun 2015

### 2

answers

#### I need 25 different numbers between 1 and 34 which will select 25 different cases in a switch. Any help would be greatly appreciated.

Asked by Dakota P

### Dakota P (view profile)

on 26 May 2015
Latest activity Edited by Thorsten

on 26 May 2015

### 1

answer

#### how to generate random two concentric spheres synthetic data?

Asked by mohammad ghr

### mohammad ghr (view profile)

on 11 May 2015
Latest activity Commented on by mohammad ghr

### mohammad ghr (view profile)

on 11 May 2015
Accepted Answer by Walter Roberson

### 4

answers

#### how to make a function that generate uniformely distributed random matrix

Asked by Muhammad Usman Saleem

### Muhammad Usman Saleem (view profile)

on 7 May 2015
Latest activity Commented on by Purushottama Rao

### Purushottama Rao (view profile)

on 8 May 2015
Accepted Answer by Thorsten

Products

answer

Asked by Karthik

### Karthik (view profile)

on 8 May 2015
Latest activity Commented on by Karthik

### Karthik (view profile)

on 8 May 2015
Accepted Answer by Walter Roberson

Products

answers

Asked by tusu

on 6 May 2015
1 - 50 of 347