0% found this document useful (0 votes)
30 views2 pages

How Would My Code Attached Be Written in Pseudocode

Uploaded by

EZEJI GEORGE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views2 pages

How Would My Code Attached Be Written in Pseudocode

Uploaded by

EZEJI GEORGE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

How would my code attached be written in pseudocode? im working on a bisection method.

MY
code is attached in file
  0 Comments
Sign in to comment.

Sign in to answer this question.

Accepted Answer

Walter Roberson  on 10 Feb 2018



Vote
0
 Link
There is no standard for what is required or permitted in pseudocode, so all MATLAB code is also
pseudocode.
  2 Comments
Show 1 older comment

Walter Roberson  on 10 Feb 2018


Change everything of the form
A = B;
to
assign B to A
Change every < to "less than", every <= to "less than or equal to", and so on.
Change every & to "and"
Change everything of the form
while CONDITION
to
loop as long as CONDITION is true
Change every "end" matching "if" to "done if", every "end" matching "while" to "done loop"
Change every entry of the form
function [out1, out2, ...] = NAME(in1, in2, ...)
to
create a procedure named NAME with input variables in1, in2, ... returning output
variables out1, out2, ...
Not one of these changes are "standard" in any way, and are no more "pseudocode" than your
existing code is: they are just syntax changes to get around the requirement that no MATLAB syntax
can be used.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy