Community Profile

photo

John


Active since 2012

Followers: 0   Following: 0

Message

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Question


Newton's method - how to make the computational performance faster?
I have used a while loop in the algorithm. Once the absolute error is less than the specified tolerance (tol), the while loop st...

11 years ago | 1 answer | 0

1

answer

Question


How to make an efficient if-statement-expression that when identifying a 1x3 vector consisting only of either 6's,7's,8's or 9's gives the same statement?
I could you run following if statement vec=[9 9 9]; if vec(1:3)==9 | vec(1:3)==8 | vec(1:3)==7 | vec(1:3)==6 disp('Ident...

11 years ago | 2 answers | 0

2

answers

Question


How to display an expression when the user enters a negative number as a first input in a while loop that stops until the user enters a negative number?
The expression could be 'No average'. I have tried to add an if-statement but I did not succeed. % Prompts the user to ent...

11 years ago | 3 answers | 0

3

answers

Question


Error: Not enough input argument (line 6)
Why do I get this error message when running following script? function outtype = findargtype (inputarg) % findargtype d...

11 years ago | 1 answer | 0

1

answer