![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/13719173_1538361608926_DEF.jpg)
Pablo Garcia
Followers: 0 Following: 0
Statistics
6 Questions
0 Answers
RANK
269 418
of 293 489
REPUTATION
0
CONTRIBUTIONS
6 Questions
0 Answers
ANSWER ACCEPTANCE
16.67%
VOTES RECEIVED
0
RANK
of 20 033
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 148 733
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF 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 ...
nästan 6 år ago | 0 answers | 0
0
answersQuestion
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)
nästan 6 år ago | 3 answers | 0
3
answersQuestion
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...
nästan 6 år ago | 1 answer | 0
1
answerQuestion
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.
nästan 6 år ago | 1 answer | 0
1
answerQuestion
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 ...
nästan 6 år ago | 0 answers | 0
0
answersQuestion
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 ...
nästan 6 år ago | 1 answer | 0