Matlab Basics II - 3 Dimensional Arrays
Assume x is a 3D array with n pages, representing students in a class, for each student (page in the array, the 3rd dimension), ...
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.
...
Calculate area of sector
A=function(r,seta)
r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...
BASICS - sum part of vector
Please make a function, where as input you get vector "x" and and vector "c", where in "c" vector you get indexes to sum.
Examp...
Transposition as a CIPHER
This all about transcripting a text message. If the input string is:
*s1 = 'My name is Sourav Mondal'*, then the output is: *s2...
約9年 前
解決済み
Convert a structure into a string
Convert the contents of each fields into a string.
Example with an input structure s with 2 fields :
s.age = '33'
s....
約9年 前
解決済み
Unit conversion
Convert x degree Celsius to y degree Fahrenheit.
約9年 前
解決済み
MATLAB Basic: rounding II
Do rounding nearest integer.
Example: -8.8, answer -9
+8.1 answer 8
+8.50 answer 9
約9年 前
解決済み
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...
約9年 前
解決済み
MATLAB Basic: rounding IV
Do rounding towards plus infinity.
Example: -8.8, answer -8
+8.1 answer 9
+8.50 answer 9
約9年 前
解決済み
Filter values in a vector
Cody often benefits from a functional style of programming. For example, your score is often better when you compose multiple fu...
約9年 前
解決済み
Toeplitz Matrix
For a given square matrix of order n-by-n check whether this is a Toeplitz matrix or not. Return true if it is.