WRITE AN MATLAB CODE

Develop MATLAB and C code to generate the triangle in the figure below. Use a function
with nomenclature Asterix(n) which consumes a number of rows, n, establishing the height of the triangle.
Take the asterisk,* and the value of 1 as the exit symbol. For example, the purpose of the function.
Develop MATLAB and C code to generate the triangle in the figure below. Use a function with nomenclature Asterix(n) which consumes a number of rows, n, establishing the height of the triangle. Take the asterisk,* and the value of 1 as the exit symbol. For example, the purpose of the function.

2 Comments

This sounds like a homework assignment. If it is, show us the code you've written to try to solve the problem and ask a specific question about a problem/error.
If you aren't sure where to start because you're not familiar with how to write MATLAB code, I suggest you start with the free MATLAB Onramp tutorial to quickly learn the essentials of MATLAB.
In an answer on a different question, the poster indicated this is an exam question.

Answers (0)

This question is closed.

Asked:

on 30 Jan 2023

Closed:

on 30 Jan 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!