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...
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...
07 - Common functions and indexing 6
Create a variable _m_ as a magic square with the size 6 x 6
Magic squares are defined as square matrices, where the sum of a...
Rounding
Round 10.67 and make 'y' equal to that number.
7年以上 前
解決済み
What number has this problem?
This problem is added because it is problem number *???* in the "Community" problems section.
<http://www.mathworks.de/matlab...
7年以上 前
解決済み
Interpolate scattered data.
Most data was scattered, and there is no gird.
There are three data [c] in three different area [x,y].
x=[1 3 4];
y=[1 ...
7年以上 前
解決済み
Calculate numerical integration.
x=0:0.01:1
y=x.^2
Calculate area from x=0 to x=1, and y=0 to y=x^2 using numerical integration.
(hint: trapz)
7年以上 前
解決済み
Calculate area of sector
A=function(r,seta)
r is radius of sector, seta is angle of sector, and A is its area.
7年以上 前
解決済み
multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y.
Examples:
Input x = 2
Output y is ...