Feeds
提问
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; ...
10 years 前 | 1 个回答 | 0
1
个回答提问
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...
10 years 前 | 1 个回答 | 0
1
个回答提问
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...
10 years 前 | 1 个回答 | 0
1
个回答提问
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); ...
10 years 前 | 1 个回答 | 0
1
个回答提问
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...
10 years 前 | 1 个回答 | 0
1
个回答提问
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]...
10 years 前 | 1 个回答 | 0