Community Profile

photo

Rômulo Prazeres


UFJF

Active since 2014

Professional Interests: Education / Engineering Student

Statistics

  • Thankful Level 1

View badges

Content Feed

View by

Answered
How to locate the first negative number?
Thank you so much. =D

9 years ago | 0

Question


How to locate the first negative number?
%Amount of user numbers n=input('Amount of user: '); D=randn(n,1); %Random numbers disp('Random numbers generated:')...

9 years ago | 2 answers | 0

2

answers

Question


How do I create a program that reads a matrix array and returns me a second matrix composed of zeros and the main diagonal of the first matrix?
<</matlabcentral/answers/uploaded_files/20749/um.jpg>> Example:

9 years ago | 1 answer | 0

1

answer