photo

Samuel Walker


Last seen: plus de 3 ans il y a Actif depuis 2021

Followers: 0   Following: 0

Statistiques

  • Thankful Level 1

Afficher les badges

Feeds

Afficher par

Question


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...

plus de 3 ans il y a | 1 réponse | 0

0

réponse

Question


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...

plus de 3 ans il y a | 1 réponse | 0

1

réponse

Question


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; ...

plus de 3 ans il y a | 1 réponse | 0

0

réponse

Question


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...

plus de 3 ans il y a | 3 réponses | 0

3

réponses