Community Profile

photo

Trisha Katz


Active since 2019

Followers: 0   Following: 0

Statistics

Feeds

View by

Question


Why is my function generating a vector? Please help?
I am trying to create a function that does the following: "The function lastname_lab4_tracker generates the increment to be ad...

4 years ago | 1 answer | 0

1

answer

Question


I am trying to create a game where a user guesses a number between 1 and 100 using a while loop. But I am getting stuck in an infinite loop. Please help?
Here is what I have: y=randi(1,100) prompt= 'guess a value between 1 and 100' x=input(prompt) while x<y disp('gues...

4 years ago | 3 answers | 0

3

answers

Question


Trying to find the maximum value in a matrix using for loops? Can someone correct my code?
Here is the question: Find the largest element of the matrix A = [1,2,3; 4,5,6] using for loops. Here is what I have: A=[1,2...

4 years ago | 1 answer | 0

1

answer

Question


Creating a new matrix from an existing one using logical operators?
Write a script which defines a 100x100 matrix, X, of random integers between 5 and 50. From the matrix X, create a matrix, Y, i...

4 years ago | 1 answer | 0

1

answer

Question


Writing a script that mirrors the abs function? I'm doing something wrong but not sure what
Here is the question: The abs function finds the absolute value of a number or numbers in a matrix. Using only relational o...

4 years ago | 1 answer | 0

1

answer

2

answers