MAHMOUD ABDEL-LATIF
Followers: 0 Following: 0
Feeds
문제를 풀었습니다
Find the maximum number of decimal places in a set of numbers
Given a vector or matrix of values, calculate the maximum number of decimal places within the input. Trailing zeros do not coun...
거의 5년 전
문제를 풀었습니다
Matlab Basics - Rounding III
Write a script to round a large number to the nearest 10,000 e.g. x = 12,358,466,243 --> y = 12,358,470,000
거의 5년 전
문제를 풀었습니다
Make roundn function
Make roundn function using round. x=0.55555 y=function(x,1) y=1 y=function(x,2) y=0.6 y=function(x,3) ...
거의 5년 전
문제를 풀었습니다
Rounding off numbers to n decimals
Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...
거의 5년 전
문제를 풀었습니다
Check that number is whole number
Check that number is whole number Say x=15, then answer is 1. x=15.2 , then answer is 0. <http://en.wikipedia.org/wiki/Whole...
거의 5년 전
문제를 풀었습니다
MATLAB Basic: rounding III
Do rounding towards minus infinity. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 8
거의 5년 전
문제를 풀었습니다
MATLAB Basic: rounding II
Do rounding nearest integer. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 9
거의 5년 전
문제를 풀었습니다
MATLAB Basic: rounding IV
Do rounding towards plus infinity. Example: -8.8, answer -8 +8.1 answer 9 +8.50 answer 9
거의 5년 전
문제를 풀었습니다
MATLAB Basic: rounding
Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8
거의 5년 전
문제를 풀었습니다
Matlab Basics II - Create a vector with a repeated entry
Create a row vector of length n, filled with 4's, for example, if n = 3 output = [4 4 4] make sure to round UP when n is a...
거의 5년 전
문제를 풀었습니다
Average Grade
Given a 1x5 vector presents the grades of a student on five tests. Calculate the average grade of that student.
거의 5년 전
문제를 풀었습니다
Finding an element in a vector
x is a vector of unknown length your function should return the index of the first element in the vector that is greater than...
거의 5년 전
문제를 풀었습니다
Matlab Basics - Logical Tests I
Write a script to test whether a year number is for a leap year or not. eg. x = 1884 output = 1 eg. x = 3 output = 0
거의 5년 전
문제를 풀었습니다
Matlab Basics II - Intervals
Write a function that takes an interval from a to b, and divides it into 5 parts example: a = 1, b = 2 output = 1 1.25 ...
거의 5년 전
문제를 풀었습니다
Arrange vector in ascending order
Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];
거의 5년 전
문제를 풀었습니다
Matlab Basics II - Minimum
Write a function that returns the minimum of each ROW of a matrix x example: x = [1 2 3; 4 5 6]; output [1;4];
거의 5년 전
문제를 풀었습니다
Matlab Basics - Create a row vector
Write a Matlab script to create a row vector of 10 consecutive numbers x = [1 2 3 4 5 6 7 8 9 10]
거의 5년 전
문제를 풀었습니다
Deleting an element in a matrix
For vector Grades=[98 56 78 34 100 88 87], delete the number 78 to get the following matrix Grades=[98 56 34 100 88 87] **re...
거의 5년 전
문제를 풀었습니다
Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...
거의 5년 전
문제를 풀었습니다
Evaluating a polynomial
Given the following polynomial and the value for x, determine y. y = 3x^5 – x^3 + 8x – 3 Example x = 1 y = 3 - 1 +...
거의 5년 전
문제를 풀었습니다
Complex number
For complex number c=a+bi, write code that will add a and b together.
거의 5년 전
문제를 풀었습니다
Matlab Basics II - Free Fall
An object freely falling from rest under gravity covers a distance x given by: x = 1/2 gt^2 write a function that calculat...
거의 5년 전
문제를 풀었습니다
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]
거의 5년 전
문제를 풀었습니다
Matlab Basics - Absolute Value
Write a script that returns the absolute value of the elements in x e.g. x = [-1 -2 -3 -4] --> y = [1 2 3 4]
거의 5년 전
문제를 풀었습니다
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...
거의 5년 전
문제를 풀었습니다
Matlab Basics - Rounding II
Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346
거의 5년 전
문제를 풀었습니다
Matlab Basics - Rounding I
Write a script to round x DOWN to the next lowest integer: e.g. x = 2.3 --> x = 2 also: x = 2.7 --> x = 2
거의 5년 전