Statistiques
6 Questions
0 Réponses
RANG
126 844
of 300 338
RÉPUTATION
0
CONTRIBUTIONS
6 Questions
0 Réponses
ACCEPTATION DE VOS RÉPONSES
16.67%
VOTES REÇUS
0
RANG
of 20 922
RÉPUTATION
N/A
CLASSEMENT MOYEN
0.00
CONTRIBUTIONS
0 Fichier
TÉLÉCHARGEMENTS
0
ALL TIME TÉLÉCHARGEMENTS
0
RANG
of 168 149
CONTRIBUTIONS
0 Problèmes
0 Solutions
SCORE
0
NOMBRE DE BADGES
0
CONTRIBUTIONS
0 Publications
CONTRIBUTIONS
0 Public Chaîne
CLASSEMENT MOYEN
CONTRIBUTIONS
0 Point fort
NOMBRE MOYEN DE LIKES
Feeds
Question
Can someone help me convert this if-else statement to a switch statement? Its a homework problem that requires us to answer whether it would be quicker to write it as a switch or as an if-else statement. Im most confused by the for loop at the top.
for i = 1:2000 for j = 1:6 if j == 1 result = 20; elseif j == 2 result = 30; elseif j == 3 result ...
presque 7 ans il y a | 1 réponse | 0
0
réponseQuestion
Can someone help me write this into a series?
S=2*r^3 + 4*r^5 + 6*r^7+ 8*r^9 + ... + (2n)*r^(2n+1)
presque 7 ans il y a | 3 réponses | 0
3
réponsesQuestion
how to have variables from one file automatically read into another file
I have variables in file1.m that I want to be automatically transferred to an equation in file2.m. Ive tried using the load tool...
presque 7 ans il y a | 1 réponse | 0
1
réponseQuestion
How to write this summation series?
S=2*r^3 + 4*r^5 + 6*r^7+ 8*r^9 + ... + (2n)*r^(2n+1). Display the sum in the main script with 3 decimal places.
presque 7 ans il y a | 1 réponse | 0
1
réponseQuestion
does anyone know how to rewrite this statement to a switch/case statement? thanks
n=input('Please enter a positive or negative integer: '); if n < -2 || n > 5 disp(n/2) else if n <= 3 ...
presque 7 ans il y a | 1 réponse | 0
0
réponseQuestion
does anyone know how to rewrite this into switch/case statements
n=input('Please enter a positive or negative integer: '); if n < -2 || n > 5 disp(n/2) else if n <= 3 ...
presque 7 ans il y a | 1 réponse | 0
