已解决


The sum of the numbers in the vector
eg. [1,2,3]---->SUM=6

5 years 前

已解决


find radius of cone
if Slant height of Cone(I)& hight of Cone(H) given then find radius of the Cone(R) for example I=5,h=4 then the ans R=3;

5 years 前

已解决


Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];

5 years 前

已解决


Create a vector
Create a vector from 0 to n by intervals of 2.

5 years 前

已解决


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

5 years 前

已解决


04 - Scalar Equations 1
Define the variable a: <<http://samle.dk/STTBDP/Assignment1_4-a.png>> Use this to calculate x: <<http://samle.dk/STTBD...

5 years 前

已解决


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

5 years 前

提问


Code for Monotonically increasing function
Hi All, Can anyone check the following code snippet and tell me why it fails for the following test cases? x = cumsum(rand(1,...

5 years 前 | 1 个回答 | 0

1

个回答

提问


Code for Monotonically increasing function
Hi All, Can anyone check the following code snippet and tell me why it fails for the following test cases? x = cumsum(rand(1,...

5 years 前 | 0 个回答 | 0

0

个回答

已解决


07 - Common functions and indexing 2
Define _eMat_: <<http://samle.dk/STTBDP/Assignment1_3e.png>> Calculate eMean as the mean across the rows of _eMat_. The an...

5 years 前

已解决


01 - Scalar variables
Create the following variables: <<http://samle.dk/STTBDP/Assignment1_1.png>>

5 years 前

已解决


02 - Vector Variables 4
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_2d.png>> (Logarithmically spaced numbers between 1 and 1...

5 years 前

已解决


Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

5 years 前

已解决


Calculate BMI
Given a matrix |hw| (height and weight) with two columns, calculate BMI using these formulas: * 1 kilogram = 2.2 pounds * 1 ...

5 years 前

已解决


Calculate a Damped Sinusoid
The equation of a damped sinusoid can be written as |y = A.&#8519;^(-&lambda;t)*cos(2πft)| where |A|, |&lambda;|, and |f| ...

5 years 前

已解决


Do you like your boss?
Do you like your boss? Answer can be any string! For example: Boss = 'Do you like your boss?'; Output = 'yes' or ...

5 years 前

已解决


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 years 前

提问


What does squeeze() do in MATLAB?
Hi All, Can anyone tell me about the use of squeeze() function in a MATLAB program? Thanks in advance! Swati

5 years 前 | 1 个回答 | 0

1

个回答

已解决


Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

5 years 前

提问


How to find the index of a specific entry in an array
Hi All, Is there any inbuilt matlab function to find the index of a particular entry in an 1D array? Thanks in advance!

5 years 前 | 1 个回答 | 0

1

个回答

提问


Drawing a cube using line command
Hi All, Can anyone tell me how to draw a cube using line command (through vertices and edges)? Thanks in advance Rega...

5 years 前 | 1 个回答 | 1

1

个回答

已解决


Number of 1s in a binary string
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...

5 years 前

已解决


Return the first and last character of a string
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

5 years 前

已解决


Circumscribed circles
Given the lengths of the 3 sides of a triangle, output the radius of the circumscribed circle. Example: [3 4 5] -> 2.5

5 years 前

已解决


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

5 years 前

提问


Calling a function with no arguments
Hi All, In my program , I'm trying to call a function with some input arguments but no outputs as I'm using this function for ...

5 years 前 | 2 个回答 | 0

2

个回答

已解决


Matlab Basics - y as a function of x
Write a function to calculate y as a function of x, such that y = 6x^2 + 5x - 2

5 years 前

已解决


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

5 years 前

已解决


Determine Whether an array is empty
Input a matrix x, output y is TRUE if x is empty, otherwise FALSE.

5 years 前

已解决


Divide by 4
Given the variable x as your input, divide it by four and put the result in y.

5 years 前

加载更多