Community Profile

photo

NoDrivel


University of Glasgow

Active since 2015

Followers: 0   Following: 0

Message

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Question


using For loop to represent positive intergers with the corresponding #. And modifying the script to write out a triangular pattern with a decreasing number of #'s on each successive line
% a script which reads in a positive integer % and writes out the corresponding number of “#” characters on one line ...

8 years ago | 1 answer | 0

1

answer

Question


using for loops write a script which reads&writes out the corresponding no. of '#' characters on one line. modify the script to write out a triangular pattern with a decreasing number of #'s on each successive line.
This is my failed attempt of the script: num=1; fprintf('This program reads any positive integer'); while num...

8 years ago | 0 answers | 0

0

answers

Question


I am getting Warning: Ignoring extra legend entries
% T represents Temperature in Kelvin,K % mu represnt Viscosity %downloading the ascii data file ...

8 years ago | 1 answer | 0

1

answer

Question


How do i make this script produce a tidy output screen? I have come up with the script but cannot tidy it up.
Output screen: Please enter a positive number : 1 Please enter a positive number : 2 Please enter a positive numb...

8 years ago | 0 answers | 0

0

answers

Question


I am managing to only come up with a product of the integer itself * 1, instead of a script that loops until the product is =>500. Help appreciated. See my attempt below;
x = [zeros(1, NumberOfAsterisksInEachDirection), linspace(0, width, NumberOfAsterisksInEachDirection), linspace(0, width, ...

8 years ago | 0 answers | 0

0

answers

Question


Where am i going wrong in this "for loop" script associated with the question below? See the script below the question:
Write a script which will print a table on the screen of the temperature in Celsius and the corresponding temperature in Fahren...

8 years ago | 1 answer | 0

1

answer

Question


How do I complete this script for below question? I have partially created the script: see it below the question.
Write a script that asks for a series of numbers and calculates the sum and the mean. When the user enters a value of 0, the sc...

8 years ago | 1 answer | 0

1

answer