Hi(adsbygoogle = window.adsbygoogle || []).push({});

I just started a course in learning how to use matlab and i'm asked to begin by writing some scripts.

This is the problem: A set of independent voltage measurements taken by four observers are recorded. Create a script that prompts the user to input the values of the readings and calculates the average voltage and its range of error.

Here is my script:

m1 = input ('Enter first value of voltage ');

m2 = input ('Enter second value of voltage ');

m3 = input ('Enter third value of voltage ');

m4 = input ('Enter fourth value of voltage ');

sum = m1 + m2 + m3 + m4;

average = sum/4

I know it's incomplete and maybe even incorrect, but i have no idea what to do.

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Create script matlab

Loading...

Similar Threads for Create script matlab | Date |
---|---|

MATLAB How to create distinct circles in Matlab? | May 11, 2017 |

Create track map using Lateral acceleration & speed in Matlab | Mar 11, 2016 |

How to create a matrix with variables? | Jan 28, 2016 |

Need help creating a recursive script in matlab that can do this: | Jul 30, 2010 |

**Physics Forums - The Fusion of Science and Community**