Samuel Walker
Followers: 0 Following: 0
Feeds
질문
Need help writing a simple pseudo code for the following script
dt = 0.1; omega1 = 10; domega_dt = 1/1000; R = 0.11; S = pi*R^2; rho = 1.225; m = 0.43; t=0:dt:2; u=zeros(length(t)); v...
3년 초과 전 | 답변 수: 0 | 0
0
답변질문
I can't figure out why n=length(sigma) has gone wrong
function [V1,V2]=q3_test1(K,CD0,S,sigma,W,T0) n = length(sigma); V1=zeros(1,n); V2=zeros(1,n); for i = 1:n T = T0*sigma...
3년 초과 전 | 답변 수: 1 | 0
1
답변질문
find the integer multiple of 3 whose square is closest to but lower than or equal to a number entered by the user. Replace lines 5-11, use a while loop but I'm not meant to use 'if' or 'floor'
clear value=input('Enter a number '); for i = 1:value if rem(i,3) == 0 && i*i <= value j=i; ...
3년 초과 전 | 답변 수: 0 | 0
0
답변질문
Finding the sum of the first n primes and to use a while function
clear % This scripts attempts to find the sum of the first n primes n=input('Enter a value for n'); i = 1; prime_count...
3년 초과 전 | 답변 수: 3 | 0