matrix of natural number
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 resides seially as shown in the examples below.
...
約5年 前
解決済み
UICBioE240 2.3
Make a 4D matrix of 4x4x3x4 containing all zeros.
約5年 前
解決済み
string comparision
compare two strings if both are same return 1 else return 0
約5年 前
解決済み
Create sequnce 1 4 9 16 25.........
Create sequnce 1 4 9 16 25......... upto entered input value using matlab scripting commands. Let y be output and x be input
UICBioE240 problem 1.10
Find the number of cells in a bioreactor after a given time when doubling time is dd and initial number of cells is x.
So if ...
約5年 前
解決済み
UICBioE240 problem 1.2
Convert a column vector into a row vector.
So if A = [1;
2;
3]
Then B = [ 1 2 3]
約5年 前
解決済み
UICBioE240 2.2
Make a 3x4 matrix that contains all ones.
約5年 前
解決済み
UICBioE240 problem 1.8
Given a list of grades in a class, write a script that gives the 2nd highest grade in the class and the average for the class.
...
約5年 前
解決済み
UICBioE240 problem 1.9
Swap the first and last columns of a matrix.
So if A = [12 4 7;
5 1 4];
B = [7 4 12;
4 1 5];
...
約5年 前
解決済み
UICBioE240 problem 1.12
The mathematical quantities e^x, ln x, and log x are calculated in Matlab using the expressions exp(x), log(x), and log10(x), re...
約5年 前
解決済み
Reverse Run-Length Encoder
Given a "counting sequence" vector x, construct the original sequence y.
A counting sequence is formed by "counting" the entrie...
約5年 前
解決済み
Counting Sequence
Given a vector x, find the "counting sequence" y.
A counting sequence is formed by "counting" the entries in a given sequence...
約5年 前
解決済み
Quote Doubler
Given a string s1, find all occurrences of the single quote character and replace them with two occurrences of the single quote ...
約5年 前
解決済み
Remove the two elements next to NaN value
The aim is to *remove the two elements next to NaN values* inside a vector.
For example:
x = [6 10 5 8 9 NaN 23 9 7 3 21 ...
Spiral Matrix
for a given integer n>=3, generate a matrix of nxn such that the value n^2 is at bottom left and its decreasing towards center ...
約5年 前
解決済み
Reshape a Vector
Write a function that accept three inputs. The first one is a row vector S. The
second and third arguments are m and n which de...
約5年 前
解決済み
0<=x<=pi?
Check whether the given angle is between zero and pi.
Return logical true or false.
約5年 前
解決済み
Remove All elements less than 5
Given an input vector x, remove all elements of x less than 5 .
Example:
Input x = [ 1 2 5 7 3 ]
Output y is [ 5 7 ...
約5年 前
解決済み
Cumulative product of a vector
Cumulative product of a vector
example
x=[1 2 5 10], then answer must be [ 1 2 10 100]
*If you like this prob...
約5年 前
解決済み
Sum of unique multiples of 3 and 5
If we list all the natural numbers up to 15 that are multiples of 3 or 5, we get 3, 5, 6, 9, 10, 12 and 15. The sum of these mul...
約5年 前
解決済み
Find the nearest prime
Given a positive integer 'n', the task is to find a prime number greater than or equal to 'n'.
Example 1
If given 'n' is ...
約5年 前
解決済み
Find the nearest prime number
Happy 5th birthday, Cody! Since 5 is a prime number, let's have some fun looking for other prime numbers.
Given a positive in...
約5年 前
解決済み
Negative matrix
Change the sign of all elements in given matrix.