Function Examples - Example 1 Example 2 Example 3 Function...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Example 1 Example 2 Example 3 Function Examples T. Mercker Aerospace Engineering and Engineering Mechanics The University of Texas at Austin ASE 201: Introduction to Computer Programming April 6 / 10, 2009 T. Mercker Function Examples Example 1 Example 2 Example 3 Outline Example 1 Example 2 Example 3 T. Mercker Function Examples Example 1 Example 2 Example 3 Example 1 I Create a function that collects n numeric variables read-in from a user from a string array that contains the variable names I This function will be able to read-in values by only specifying the names of the variables you want I Input: string array of variable names I Output: array of read-in I Need to use isspace() function which looks at all of the values in a character string and returns a 1 if the character is a white space and a 0 if character is anything else I For example, A = isspace(Hi All) A = 0 0 1 0 0 0 T. Mercker Function Examples Example 1 Example 2 Example 3 I Code: function [x] = collect_numeric_input(in)...
View Full Document

Page1 / 11

Function Examples - Example 1 Example 2 Example 3 Function...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online