Kylenino Espinas
Followers: 0 Following: 0
Feeds
提问
Trying to find empirical cdf
%Sn = X1 + X2 ... + Xn %Xi's are independent random variables %uniform on the interval [-a,a] a = 1; n1 = 4; n2 = ...
2 years 前 | 1 个回答 | 0
1
个回答提问
Trying to graph a cumulative distributive function with erf function, lost.
%Sn = X1 + X2 ... + Xn %Xi's are independent random variables %uniform on the interval [-a,a] a1 = 1; a2 = 5; a3 = 1...
2 years 前 | 1 个回答 | 0
1
个回答提问
Adding PMF of a binomial to a rng coin flip graph
P = 23/36; n = 10; %amount of flips done 1 million times arr = zeros(1,100); %array to store heads in n flips j = 1; while j...
2 years 前 | 1 个回答 | 0
1
个回答提问
Simulating 10 biased coin flips 100 times
n = 10; %amount of flips done 1 million times arr = zeros(n); %array to store heads in n flips toss = (U < 0.6388888888888); %...
2 years 前 | 1 个回答 | 0
1
个回答提问
Trying to make a piecewise function that isn't for graphing or using the piecewise function itself
function y = project2Tester(x) y = zeros(size(x)); x1 == (x <= -1); y(x1) = log(abs(x)); x2 == (-1 < x & x < 0...
4 years 前 | 1 个回答 | 0
1
个回答提问
How would I remove certain values of an array and put it into another array?
function [microbeInd, noLifeInd] = semTest(semData) microbeInd = islocalmax(semData); noLifeInd(microbeInd) = []; end Af...
4 years 前 | 1 个回答 | 0
1
个回答提问
How do I create an array with the greatest values from two arrays?
function [semData] = semProcessing(raw1, raw2) if length(raw1) = length(raw2) lg = length(raw1); semData = zeros(1,lg);...
4 years 前 | 1 个回答 | 0
1
个回答提问
How do I make this function work for any matrix size?
%How do I change this function so that it works for matrices of any size? function [B] = Matrices(matrice) B = matrice; B...
4 years 前 | 1 个回答 | 0
1
个回答提问
How would I use loops to set certain values in a martix to 0?
I want to make a function that turns every value but the values in a diagonal shape for a matrice. function [X] = threeMatrice...
4 years 前 | 1 个回答 | 0
1
个回答提问
Why does my code only come out with one result?
function [siftedData, siftedMean, siftedStd, siftedNorm] = project2(rawData, categories, selectedCategory) rawData(ca...
4 years 前 | 1 个回答 | 0
1
个回答提问
If I have an array with values and then another array with each value's category, how would I remove values with certain categories?
%For example if Data = (1.2, 3.4, 6.7) Category = (1, 4, 1) %How would I remove 1.2 and 6.7 since they each have a cate...
4 years 前 | 1 个回答 | 0
1
个回答提问
How do I make the function return values only from the array?
function [selectedValues] = selectRandom( dataSet, numberSelected ) % selectRandom: Return numSel elements of input array data ...
4 years 前 | 1 个回答 | 1
1
个回答提问
My function isn't returning an array for an answer with an input array
function [bodyMassIndex] = CalculateBMI(massKg, heightCm) % Define a function CalculateBMI % Input: massKg: Mass in kg % ...
4 years 前 | 1 个回答 | 0
1
个回答提问
How do I use an indicator variable to select one of these 4 equations?
var1 = double; var2 = double; indicator = A = var1 * var2; %var 1 and var 2 are the sides Vcylinder = var1 * pi * ...
4 years 前 | 1 个回答 | 0