문제를 풀었습니다


Better bullseye matrix
<http://www.mathworks.com/matlabcentral/cody/problems/18-bullseye-matrix Problem 18> asks to create a bullseye matrix like this:...

거의 8년 전

문제를 풀었습니다


Test if a Number is a Palindrome without using any String Operations
*Description* Given an integer _X_, determine if it is a palindrome number. That is, _X_ is equal to the _X_ with the digits ...

거의 8년 전

문제를 풀었습니다


Sum the elements in either diagonal of a square matrix
Sum the elements of a square matrix that lie on either the major diagonal or anti-diagonal.

거의 8년 전

문제를 풀었습니다


Construct a string from letters and counts
Given two input arrays like this: [5,3,1] ['a','b','c'] Output a string that contains each letter the specified num...

거의 8년 전

문제를 풀었습니다


Multiple if statements
Write an if-statement that subtracts 5 from outputValue if amplitudeResponse is greater than 10. Write a second if-statement tha...

거의 8년 전

문제를 풀었습니다


Matlab Basics II - Count rows in a matrix
Write a function that returns that number of rows in a vector or matrix x example: x = [1; 2; 3] output = 3

거의 8년 전

문제를 풀었습니다


Matlab Basics - Set unwanted parts of a vector to zero
Consider a vector x, of length >= 7, write a script to set elements 2, 5, and 6 to zero. Example x = [1 2 3 4 5 6 7] --> ...

거의 8년 전

문제를 풀었습니다


How many jokers?
* Given DNA codes of a group of suspects, * and a code for certain types of jokers, * Count how many jokers of that type. * ...

거의 8년 전

문제를 풀었습니다


Assignment statements based on input value
Write an if-else statement that assigns finalValue with userValue + 5 if userValue is greater than 100. Otherwise assign finalVa...

거의 8년 전

문제를 풀었습니다


Related Vectors
I have two vectors A & B. If the values in vector A is zero then the corresponding value in vector B should be zero. Example:...

거의 8년 전

문제를 풀었습니다


Create a Multiplication table matrix...
Create a product table in this format: P = [ 1 2 3 4 5; 2 4 6 8 10; 3 6 9 12 15; 4 8 12 1...

거의 8년 전

문제를 풀었습니다


For loops: Savings account
The for loop calculates the amount of money in a savings account after numberYears given an initial balace of savingsBalance and...

거의 8년 전

문제를 풀었습니다


Convert Fahrenheit to Celsius
Calculate the Celsius temperature C given the Fahrenheit temperature F. Examples: Input F = 90 Output C is 32.22 I...

거의 8년 전

문제를 풀었습니다


Negative Infinity
Round the given array a towards negative infinity.

거의 8년 전

문제를 풀었습니다


Binary Coder
Take an input number and print the binary value of this number.

거의 8년 전

문제를 풀었습니다


Area of a circle
Find the value for area of the circle if diameter is given

거의 8년 전

문제를 풀었습니다


Generate pi using logarithm
Generate pi using logarithm

거의 8년 전

문제를 풀었습니다


Insect population
An insect population doubles every generation. * Write a while loop that iterates numGeneration times. * Write a statment ...

거의 8년 전

문제를 풀었습니다


Times 3 problem
When you enter the number, it should return the number multiplied by 3

거의 8년 전

문제를 풀었습니다


Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.

거의 8년 전

문제를 풀었습니다


Make a low pass filter
Make a first order low pass filter that will filter out the high frequency oscillations for the given input signal. The cut-off ...

거의 8년 전

문제를 풀었습니다


Produce a Fibonacci sequence
Construct a diagram that generates the Fibonacci sequence: 1, 1, 2, 3, 5, 8, 13, 21, 34.....up to 377 The Fibonacci sequ...

거의 8년 전

문제를 풀었습니다


Counting pulses in a signal
Count the number of pulses that are the result of summing each pulse generator block. Pulse Generator blocks produce a recurr...

거의 8년 전

문제를 풀었습니다


Add damping to a mass spring system
Model an ideal mass-spring-damper system shown below where the spring is initially stretched. <<http://blogs.mathworks.com/im...

거의 8년 전

문제를 풀었습니다


Small aircraft weight limit
Write an if-else statement that evaluates to true if the sum of passengerWeight and cargoWeight is less than or equal maxWeight....

거의 8년 전

문제를 풀었습니다


Create a function handle that reverses the input arguments of another function handle
Given a function that takes two input arguments and returns one output, create another function handle that performs the same op...

거의 8년 전

문제를 풀었습니다


Preset rpm speeds
A centrifuge has four preset speeds. Write a switch statement that assigns rpmSetting with the appropriate rpm speed given prese...

거의 8년 전

문제를 풀었습니다


random picture with random colours
write a function which creates a random(x,y) matrix with random RGB colours for example create_pic(5,5) gives us a 3d matrix. ...

거의 8년 전

문제를 풀었습니다


Matlab Basics II - squares
Write a function that takes matrix A, and squares each element in the matrix example: A = [1 2 3] output = [1 4 9]

거의 8년 전

문제를 풀었습니다


Generate a random matrix A of (1,-1)
Input n: is an positive integer which serves as the dimension of the matrix A; Output: A=(Aij),where each entry Aij is either...

거의 8년 전

더 보기