MATLAB: How to print this graph asteriskdoit4mehomeworkloops So far I have this. Please help. 2(n-1)+1 %number of xn=rowfloor(col/2-(n-1)) %number of blanksfloor (row/2-(n-1)) Best Answer https://in.mathworks.com/matlabcentral/answers/342492-how-to-write-a-program-to-draw-a-diamond-of-stars-in-matlabhttps://in.mathworks.com/matlabcentral/answers/184273-how-to-write-a-program-to-draw-a-triangle-of-stars-in-matlab Related SolutionsMATLAB: Write a function that will take two numbers as input arguments and will print a set of concentric squares of stars whenever the row and column are odd. Here is a starting point:1) Create a function m-file in your working directory with an appropriate name. E.g.,edit mycircles.m2) Put this code into this file:% Add a description of the function, inputs & outputs, herefunction mycircles(a,b)% Insert your code for printing the "squares of stars" hereendAdd your description and your code in the places indicated. MATLAB: How to make a diamond with asterisks Hello Juan,I believe a question similar to yours has been answered in this MATLAB Answers thread. Check and see if it helps with the issue you are facing. Related QuestionWhat part of the code do i change to print the triangle flippedHow could i shorten the for loop codeHow to print : What’s Your NameMatrices with customized sums for rows and columnsUnable to perform assignment because the indices on the left side are not compatible with the size of the right side. Error in Q38 (line 10) Mat(row,col)=t1Help for vectorization coding for multiplication and addition matrixs
Best Answer