Community Profile

photo

M W


Last seen: ongeveer 3 jaar ago Active since 2018

Statistics

All
  • Commenter
  • Promoter
  • Solver

View badges

Content Feed

View by

Solved


Find the largest value in the 3D matrix
Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

ongeveer 6 jaar ago

Solved


Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

ongeveer 6 jaar ago

Solved


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

ongeveer 6 jaar ago

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

ongeveer 6 jaar ago

Solved


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

ongeveer 6 jaar ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

ongeveer 6 jaar ago

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

ongeveer 6 jaar ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

ongeveer 6 jaar ago

Question


How do I fill a column and/or row vector with the j-th/i-th sums of a magic matrix' vectors?
Hello :) I'm trying to work through a simple for loop where I call a magic(4) matrix ("mag"), one "empty" column matrix of l...

ongeveer 6 jaar ago | 1 answer | 0

1

answer