Community Profile

photo

Elias Beaini


Last seen: 4 years ago Active since 2018

Followers: 0   Following: 0

Statistics

Feeds

View by

Question


How do I make a vector where the entries are months and years?
So I have this data set that needs me to plot the months of the year on the x axis for the years 2006 to 2012. What I mean by th...

5 years ago | 2 answers | 0

2

answers

Question


How do I sort entire columns of an array by a specific row?
I have this code that finds the distance of points in space, defined by an array, from the origin and adds that distance to an e...

6 years ago | 2 answers | 0

2

answers

Question


I have a textbook that provides me with code and I'm using the code that they have in the textbook, verbatim, on my Mac and it refuses to work.
function X = NewtonRoot(Fun, FunDer, Xest, Err, imax) for i = 1:imax Xi = Xest - Fun(Xest)/FunDer(Xest); ...

6 years ago | 2 answers | 0

2

answers

Question


How do I add a loops output to an existing array as a new row?
I have to write a for loop that loops through the columns of an array A and finds the distance of each column from the origin (w...

6 years ago | 0 answers | 0

0

answers

Question


How do I write a for loop that stacks the columns of a matrix vertically into a single column array?
I have a 3x4 matrix and I need to stack the columns in order into a vertical stack.

6 years ago | 0 answers | 0

0

answers

Question


Write a script that uses a for loop to calculate the product of the negative numbers between -1 and -53, in increments of -4 (−1, −5, · · · , −53).
I know how to create the number sequence its just a=(-53:4:-1) but I can't figure out how to multiply all of them together.

6 years ago | 1 answer | 0

1

answer