Community Profile

photo

Sophie Culhane


Last seen: 1년 이상 전 2020 이후 활성

Statistics

  • Thankful Level 3

배지보기

Content Feed

보기 기준

질문


How to Assign a Variable Name to a Point in a Matrix
I am trying to assign variable name 'centersquare' to the center point in an NRows x NCols matrix. In my program, I had the cent...

1년 이상 전 | 답변 수: 1 | 0

1

답변

질문


MATLAB Function Finds The Derivative and Evaluates at Point A
My task is to write a MATLAB function that calculates the derivate of a polynomial, represented in vector form, and then also ev...

1년 이상 전 | 답변 수: 0 | 0

0

답변

질문


MATLAB Function Generates the Vertices of a Regular N-gon with Line Segments
My task is to write a MATLAB function that generates the verticies of a regular n-gon and draws a line segment between each pair...

1년 이상 전 | 답변 수: 2 | 0

2

답변

질문


Function Calculates the Probability of a Fibonacci Number
My task is to write a function that calculates the probability the the k-th digit of a Fibonacci Number in B is d. The elements ...

2년 이하 전 | 답변 수: 0 | 0

0

답변

질문


Function Calculates Fibonacci Numbers
My task is to write a function that calculates the nth Fibonacci number by making a call to 'nniadd', a program I have previousl...

2년 이하 전 | 답변 수: 1 | 0

1

답변

질문


Function Finds the Prime Factorization of An Integer Greater than 1
My task is to create a function that finds the prime factorization of an integer greater than 1. n is a positive integer and v i...

2년 이하 전 | 답변 수: 1 | 0

1

답변

질문


Function Subtracts Two Nonnegative Integers
My task is to create a MATLAB function that subtracts two nonnegative integers. x, y, and x_minus_y are row vectors representing...

2년 이하 전 | 답변 수: 1 | 0

1

답변

질문


Roll a 6-Sided Die and Compute the Probability of the Sum (with bar graph)
My task is to write a function that simulates rolling a pair of 6-sided dice n times and uses this data to approximate probabili...

2년 이하 전 | 답변 수: 3 | 0

3

답변

질문


Generate and Plot N Points Picking Random Points on Triangle
My task is to write a function that takes as input a positive integer n. We are asked to consider the traingle whose corner poin...

2년 이하 전 | 답변 수: 1 | 0

1

답변

질문


Function takes as input two nonempty matrices A and B and returns the product AB
My task is to write a MATLAB function that takes as input two nonempty matrices A and B and returns the product AB where the num...

2년 이하 전 | 답변 수: 2 | 0

2

답변

질문


Roll a die until n consecutive rolls have the same value
Let n be a positive integer. We plan to roll a fair 6-sided die until n consecutive rolls have the same value. My task is to wri...

2년 이하 전 | 답변 수: 1 | 0

1

답변

질문


MATLAB function adds two nonnegative integers where x has at least as many digits as y
My task is to write a MATLAB function that adds two nonnegative integers, assuming that x has at least as many digits as y. x,y,...

2년 이하 전 | 답변 수: 2 | 0

2

답변

질문


Randomly chooses points from a triangular region and stores the x and y coordinates
My task is to write a MATLAB function where b and h are positive real numbers, n is a positive integer, and x and y are row vect...

2년 이하 전 | 답변 수: 5 | 0

5

답변

질문


MATLAB Function Takes as Input Two Positive Integers and Returns a Matrix
Write a MATLAB function that takes as input two positive integers and returns a matrix. Given positive integers m and n, hw21 cr...

2년 이하 전 | 답변 수: 1 | 0

1

답변

질문


Rolling a Fair 6-Sided Die Until Two Consecutive Rolls Have the Same Value
My task is to simulate rolling a fair 6-sided die until two consecutive rolls have the same value and write a function that appr...

2년 이하 전 | 답변 수: 2 | 0

2

답변

질문


Largest Value from the Row Sums of A
I am to write a MATLAB function that takes as input a nonempty 2-dimensional array A and returns the largest value from the row ...

2년 이하 전 | 답변 수: 1 | 0

1

답변

질문


Column Vector Containing the Row Sums of the Elements of A
My task is to write a MATLAB function that takes as input a nonemty 2-dimensional array A and returns a column vector containing...

2년 이하 전 | 답변 수: 3 | 0

3

답변

질문


Finding Nonzero Elements in a Vector
In a assignment I am working on, we are tasked with writing a MATLAB function that takes as input a nonempty vector v and return...

2년 이하 전 | 답변 수: 1 | 0

1

답변

질문


Inputs a Vector and Returns the Second Smallest Element
I am writing a script that takes as input a nonempty vector v and returns the second smallest element. I have a block of code wr...

2년 이하 전 | 답변 수: 1 | 0

1

답변

질문


Factorial without the Command
I am struggling to figure out how to compute a factorial without the use of the command. My task is to input a nonnegative integ...

2년 이하 전 | 답변 수: 4 | 0

4

답변

질문


Sum of the squares of the negative elements of vector v
Write a MATLAB function that takes as input a non-empty vector v and returns the sum of the squares of the negative elements of ...

2년 이하 전 | 답변 수: 0 | 0

0

답변

질문


The While Loop w/ Positive Integers
Write a MATLAB function that takes as input a positive integer n and returns the sum of the first n positive even integers? Usin...

2년 이하 전 | 답변 수: 0 | 0

0

답변