Community Profile

photo

Samuel Walker


Last seen: circa 3 anni fa Attivo dal 2021

Statistiche

  • Thankful Level 1

Visualizza badge

Content Feed

Visto da

Domanda


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

circa 3 anni fa | 0 risposte | 0

0

risposte

Domanda


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

circa 3 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 3 anni fa | 0 risposte | 0

0

risposte

Domanda


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

circa 3 anni fa | 3 risposte | 0

3

risposte