Milad Mehrnia
Followers: 0 Following: 0
Statistics
RANK
10.388
of 295.467
REPUTATION
4
CONTRIBUTIONS
0 Questions
4 Answers
ANSWER ACCEPTANCE
0.00%
VOTES RECEIVED
0
RANK
of 20.234
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Feeds
Solved
Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...
meer dan 2 jaar ago
Solved
Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...
meer dan 2 jaar ago
Solved
Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the numbers. Otherwise return false. Example...
meer dan 2 jaar ago
Solved
Interpolator
You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...
meer dan 2 jaar ago
Solved
Side of an equilateral triangle
If an equilateral triangle has area A, then what is the length of each of its sides, x? <<https://i.imgur.com/jlZDHhq.png>> ...
meer dan 2 jaar ago
Solved
Side of a rhombus
If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<https://imgur.com/x6hT6mm.png>> ...
meer dan 2 jaar ago
Solved
Area of an Isoceles Triangle
An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<https://imgur...
meer dan 2 jaar ago
Solved
Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.
meer dan 2 jaar ago
I want to write a function that calculate the voltage for three junctions A,B and C in the picture below if we know the voltage of V. (G=0V). Did anyone write it before?
function ans = voltage(V,R) E1 = [R(2)*R(7)+R(1)*R(2)+R(1)*R(7) -R(1)*R(2) 0] E2 = [-R(3)*R(8)*R(4) R(4)*R(8)*R(7)+R(3)*R(8)*R...
bijna 3 jaar ago | 0
| accepted
text file I/O
function charnum = char_counter(fname,c) fid = fopen(fname,'rt'); charnum = 0; if ~ischar(c) charnum = -1; elseif fid <...
ongeveer 3 jaar ago | 0
Write a function called get_distance that accepts two character vector inputs representing the names of two cities. The function returns the distance between them as an output argument called distance. For example, the call get_distance('Seattle, WA'
function distance = get_distance(a,b) [num,txt] = xlsread('Distances.xlsx'); x = 0;y = 0; for i = 2:lenghth(txt) if strc...
ongeveer 3 jaar ago | 0
Solved
Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...
ongeveer 3 jaar ago
Solved
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
ongeveer 3 jaar ago
Solved
Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...
ongeveer 3 jaar ago
Solved
Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...
ongeveer 3 jaar ago
sparse2matrix random error
function matrix = sparse2matrix(c) % c = cellvec matrix = ones(c{1}).*c{2}; for i = 3:length(c) p = c{i}(1:2); ...
ongeveer 3 jaar ago | 0