Community Profile

photo

Aaron Pacheco


Active since 2015

Followers: 0   Following: 0

Statistics

Feeds

View by

Question


Coin Flip simulation errors
Here's my function code H=nest1; T=nest1; function [H,T]=nest1(n,k) while n <= k n=n+1; ...

8 years ago | 1 answer | 0

1

answer

Question


Coin Flip plotting every flip
I want to be able to plot the number of heads versus the number of flips using a while loop. I'm at the point where the while lo...

8 years ago | 1 answer | 0

1

answer

Question


Error solving transcendental function
E-e*sin(E)-M=0 I'm attempting to solve this equation for E and plot E vs. M (varying from 0 to 2pi) while e=[0:0.25:1] H...

8 years ago | 1 answer | 0

1

answer

Question


Splitting a large vectors into a matrix
I have a vector with 1000 elements that I would like to split into a 20x50 matrix. Here's my code so far. z= sym(1:1000); ...

8 years ago | 1 answer | 0

1

answer

Question


I need to multiply all numbers from 1 to 500 together and all odd numbers from 1 to 1000.
I tried prod(1:500) and prod(1:2:999) and I was given Inf. Is there any way to have this give me an rational number? I also need...

8 years ago | 1 answer | 0

1

answer

Question


Attempted to access v(0); index must be a positive integer or logical.
clear all, close all, clc; wetf=@(t,v) -32.2+(((4/15)*(v(t))^2)/(150/32.2)); timerange=[0:30]; initialv=0; [t1,v1]...

8 years ago | 1 answer | 0

1

answer