Solved

Converting binary to decimals

Convert binary to decimals. Example: 010111 = 23. 110000 = 48.

2 months ago

Solved

Binary code (array)

Write a function which calculates the binary code of a number 'n' and gives the result as an array(vector). Example: Inpu...

2 months ago

Solved

Relative ratio of "1" in binary number

Input(n) is positive integer number Output(r) is (number of "1" in binary input) / (number of bits). Example: * n=0; r=...

2 months ago

Solved

Bit Reversal

Given an unsigned integer _x_, convert it to binary with _n_ bits, reverse the order of the bits, and convert it back to an inte...

2 months ago

Solved

Given an unsigned integer x, find the largest y by rearranging the bits in x

Given an unsigned integer x, find the largest y by rearranging the bits in x. Example: Input x = 10 Output y is 12 ...

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

Rescale Scores

Each column (except last) of matrix |X| contains students' scores in a course assignment or a test. The last column has a weight...

2 months ago

Solved

Calculate Inner Product

Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...

2 months ago

Solved

Find MPG of Lightest Cars

The file |cars.mat| contains a table named |cars| with variables |Model|, |MPG|, |Horsepower|, |Weight|, and |Acceleration| for ...

2 months ago

Solved

Find the Best Hotels

Given three input variables: * |hotels| - a list of hotel names * |ratings| - their ratings in a city * |cutoff| - the rat...

2 months ago

Solved

Crop an Image

A grayscale image is represented as a matrix in MATLAB. Each matrix element represents a pixel in the image. An element value re...

2 months ago

Solved

Calculate BMI

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

2 months ago

Solved

Plot Damped Sinusoid

Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|. Mark the minimum...

2 months ago

Solved

Calculate a Damped Sinusoid

The equation of a damped sinusoid can be written as |y = A.ⅇ^(-λt)*cos(2πft)| where |A|, |λ|, and |f| ...

2 months ago

Solved

Solve a System of Linear Equations

*Example*: If a system of linear equations in _x₁_ and _x₂_ is: 2 _x₁_ + _x₂_ = 2 _x₁...

2 months ago

Solved

Verify Law of Large Numbers

If a large number of fair N-sided dice are rolled, the average of the simulated rolls is likely to be close to the mean of 1,2,....

2 months ago

Solved

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

2 months ago

Solved

Calculate Amount of Cake Frosting

Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

2 months ago

Solved

Convert from Fahrenheit to Celsius

Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

2 months ago

Answered

Appdesigner Print Screen Problem - Appdesigner is a disappointment!

So after a bit more digging around I found exportapp(fig,filename), which does exactly as needed.

Appdesigner Print Screen Problem - Appdesigner is a disappointment!

So after a bit more digging around I found exportapp(fig,filename), which does exactly as needed.

5 months ago | 0

Answered

Appdesigner Print Screen Problem - Appdesigner is a disappointment!

Baha411, I have been trying to find a solution to the same issue. I was able to save my figure to an image file perfectly in GU...

Appdesigner Print Screen Problem - Appdesigner is a disappointment!

Baha411, I have been trying to find a solution to the same issue. I was able to save my figure to an image file perfectly in GU...

5 months ago | 0

Solved

Van Eck's Sequence's nth member

Return the Van Eck's Sequence's nth member. For detailed info : <http://oeis.org/A181391 OEIS link> and <https://www.theguard...

1 year ago

Answered

create an executable from name.m

To generate MATLAB executable files you need the MATLAB Compiler. From there you would use the deploytool function. https://www...

create an executable from name.m

To generate MATLAB executable files you need the MATLAB Compiler. From there you would use the deploytool function. https://www...

1 year ago | 0

Answered

Computing element by element and in degress

Is this a homework assignment? MATLAB allows you to perform element-wise calculations on arrays using dot notation prior to the...

Computing element by element and in degress

Is this a homework assignment? MATLAB allows you to perform element-wise calculations on arrays using dot notation prior to the...

1 year ago | 0

Solved

A Simple Tide Gauge with MATLAB

*∿ ∿ ∿ ∿ ∿ ∿ ∿ ∿* You are standing in a few inches of sea water on a beach. You a...

1 year ago

Answered

Set negative values to zero in just one column of tables in 1 x 71 cell

Assuming that each table contains a variable name of 'rrr24', then the following should work. for i=1:length(C) C{i}{C{i}{...

Set negative values to zero in just one column of tables in 1 x 71 cell

Assuming that each table contains a variable name of 'rrr24', then the following should work. for i=1:length(C) C{i}{C{i}{...

1 year ago | 1

| accepted

Question

How to split a string of digits into groups of three from right-to-left using only regular expressions?

While I have been able to accomplish this task using a varitey of mixed functions such as regexp() and fliplr(), I am ultimately...

1 year ago | 1 answer | 1

Answered

How can I invoke a function from within App Designer when using a DeleteFcn or CloseRequestFcn from a MATLAB figure that is separate from the App GUI?

Ended up solving the problem myself by using a State Button to change the KeyPressFcn for the UIFigure. It requires a little tri...

How can I invoke a function from within App Designer when using a DeleteFcn or CloseRequestFcn from a MATLAB figure that is separate from the App GUI?

Ended up solving the problem myself by using a State Button to change the KeyPressFcn for the UIFigure. It requires a little tri...

1 year ago | 0

| accepted

Answered

Access .txt and .csv, edit data, error statistics

A basic method for importing only the Temp and RH data into tables filename = 'Airport.csv'; opts = detectImportOptions(filena...

Access .txt and .csv, edit data, error statistics

A basic method for importing only the Temp and RH data into tables filename = 'Airport.csv'; opts = detectImportOptions(filena...

1 year ago | 0

| accepted