Solved

Binary numbers

Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

2 months ago

Solved

Find out sum and carry of Binary adder

Find out sum and carry of a binary adder if previous carry is given with two bits (x and y) for addition. Examples Previo...

2 months ago

Solved

Convert given decimal number to binary number.

Convert given decimal number to binary number. Example x=10, then answer must be 1010.

2 months ago

Solved

Find the longest sequence of 1's in a binary sequence.

Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

2 months ago

Solved

Elapsed Time

Given two date strings d1 and d2 of the form yyyy/mm/dd HH:MM:SS (assume hours HH is in 24 hour mode), determine how much time, ...

2 months ago

Solved

Right and wrong

Given a vector of lengths [a b c], determines whether a triangle with those sides lengths is a right triangle: <http://en.wikipe...

2 months ago

Solved

Too mean-spirited

Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...

2 months ago

Solved

Pizza!

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

2 months ago

Solved

Determine if input is odd

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

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

2 months ago

Solved

Find the sum of all the numbers of the input vector

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

2 months ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

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

2 months ago

Answered

How to generate matrix as shown below?

n = 3; A(1,1:n+1) = 0; for i = 2 : n+1 A(i,1:i-1) = A(i-1, 1:i-1) +1; end for i = 1: n+1 B(i,1:i) = (n+1-i); end ...

How to generate matrix as shown below?

n = 3; A(1,1:n+1) = 0; for i = 2 : n+1 A(i,1:i-1) = A(i-1, 1:i-1) +1; end for i = 1: n+1 B(i,1:i) = (n+1-i); end ...

2 months ago | 0

Answered

How to use MATLAB to determine if an exe process exist?

[~,b] = system('tasklist'); IsRunning = contains(b, 'mspaint.exe'); %1, if is running / 0, if not

How to use MATLAB to determine if an exe process exist?

[~,b] = system('tasklist'); IsRunning = contains(b, 'mspaint.exe'); %1, if is running / 0, if not

2 months ago | 0

| accepted

Answered

How to measure the shortest distance among different points using Matlab

B = randi([-10 10],5,3); % just some random numbers minimum = sqrt(sum((B(1,:)- B(2,:)).^2)); for i = 1 : size(B,1)-1 for...

How to measure the shortest distance among different points using Matlab

B = randi([-10 10],5,3); % just some random numbers minimum = sqrt(sum((B(1,:)- B(2,:)).^2)); for i = 1 : size(B,1)-1 for...

3 months ago | 1

Answered

How can i keep asking them the same inputdlg based on how many they want to input?

count='How many values do you want?'; vcount=inputdlg(count); vcount = str2double(vcount{1}); eqprompt='Enter Values'; value...

How can i keep asking them the same inputdlg based on how many they want to input?

count='How many values do you want?'; vcount=inputdlg(count); vcount = str2double(vcount{1}); eqprompt='Enter Values'; value...

3 months ago | 1

| accepted

Submitted

GetLetter

Just type in a Number or a Char and get the letter for your Excel File

3 months ago | 1 download |

Submitted

EditExcelFile

Changes Freezed Panes and ColumnWidth. Adds Author

5 months ago | 1 download |

Answered

How do I count the number of all color pixels of different shades in the image attached?

numYellowPixelsI= size(find((I(:,:,1) == 255 & I(:,:,2) == 255 & I(:,:,3) == 0)),1); In this case there would be 7025 yellow Pi...

How do I count the number of all color pixels of different shades in the image attached?

numYellowPixelsI= size(find((I(:,:,1) == 255 & I(:,:,2) == 255 & I(:,:,3) == 0)),1); In this case there would be 7025 yellow Pi...

5 months ago | 0

| accepted