Community Profile

photo

Matthew Walter


Last seen: mer än ett år ago Active since 2022

Followers: 0   Following: 0

Statistics

  • Introduction to MATLAB Master
  • Solver

View badges

Feeds

View by

Solved


Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

nästan 2 år ago

Solved


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

nästan 2 år ago

Solved


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

nästan 2 år ago

Solved


Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

nästan 2 år ago

Solved


Back to basics 11 - Max Integer
Covering some basic topics I haven't seen elsewhere on Cody. Return the largest positive integer MATLAB can handle.

nästan 2 år ago

Solved


Sum of Two Numbers
Given two integer numbers x and y, calculate their sum and put it in z. Examples: Inputs x = 2, y = 4 Output z is 6 ...

nästan 2 år ago

Solved


Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

nästan 2 år ago

Solved


Determine the square root
Determine the square root of the value the user has entered, n.

nästan 2 år ago

Solved


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

nästan 2 år ago

Solved


Max of a Vector
Write a function to return the max of a vector

nästan 2 år ago

Solved


Swap two numbers
Example Input: a = 10 b = 20 Output a = 20 b = 10

nästan 2 år ago

Solved


Find the product of a Vector
How would you find the product of the vector [1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0] times 2?; x = [1 : 0.5 : 6]; y ...

nästan 2 år ago

Solved


Finding perimeter of a rectangle
A rectangle has a length of x centimeters and a width of w centimeters. Find the perimeter.

nästan 2 år ago

Solved


Concatenate two strings
Its very easy. Just concatenate two strings.

nästan 2 år ago

Solved


Sorted highest to lowest?
Return 1 if the input is sorted from highest to lowest, 0 if not. Example: 1:7 -> 0 [7 5 2] -> 1

nästan 2 år ago

Solved


Find out sum of all elements of given Matrix
Find out sum of all elements of given Matrix A=[1 2 3;4 5 6 ;7 8 9]; Answer must be: 45 *If you like this problem, pl...

nästan 2 år ago

Solved


Arrange vector in ascending order
Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];

nästan 2 år ago

Solved


Is the input divisible by 3?
Return true if the input is divisible by 3 and false if not.

nästan 2 år ago

Solved


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

nästan 2 år ago

Solved


01 - Scalar variables
Create the following variables: <<http://samle.dk/STTBDP/Assignment1_1.png>>

nästan 2 år ago

Solved


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

nästan 2 år ago

Solved


Reverse a matrix
Its simple. You have to reverse a given matrix.

nästan 2 år ago

Solved


Area of a circle
Given the radius x, y would be the area of a circle. Pi = 3.1416

nästan 2 år ago

Solved


Create a vector
Create a vector from 0 to n by intervals of 2.

nästan 2 år ago

Solved


The sum of the numbers in the vector
eg. [1,2,3]---->SUM=6

nästan 2 år ago

Solved


Find max
Find the maximum value of a given vector or matrix.

nästan 2 år ago

Solved


Divide by 4
Given the variable x as your input, divide it by four and put the result in y.

nästan 2 år ago

Solved


Transpose
Write a MATLAB script in order to convert a random length row vector (v) into a column vector.

nästan 2 år ago

Solved


metre to feet converter
The idea is to make a converter, which exchange meters to feets. We use a factor of 1m = 3.281*1f. so 3m are equals to 9.843 m...

nästan 2 år ago

Solved


Matlab Basics - Convert a row vector to a column vector
Write a script to convert a row (e.g. x = [1 2 3]) to a column (e.g. y = [1;2;3]), your script should be able to do this for any...

nästan 2 år ago

Load more