# Milad Mehrnia

**Statistics**

RANK**190,146**

of 250,142

REPUTATION**0**

CONTRIBUTIONS

**0** Questions

**4** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**0**

RANK

of 17,378

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

**Content Feed**

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...

2 months 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 <...

3 months 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...

3 months 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...

3 months ago

Solved

Determine if input is odd

Given the input n, return true if n is odd or false if n is even.

3 months 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...

3 months 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:...

3 months 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); ...

3 months ago | 0