Solved


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

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

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

7 months ago

Solved


Solve a System of Linear Equations
*Example*: If a system of linear equations in _x&#8321_ and _x&#8322_ is: 2 _x₁_ + _x₂_ = 2 _x₁...

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

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

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

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

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

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

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

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

1 year ago | 0

Solved


A Simple Tide Gauge with MATLAB
*&#8767 &#8767 &#8767 &#8767 &#8767 &#8767 &#8767 &#8767* 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}{...

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

1

answer

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

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

1 year ago | 0

| accepted

Answered
Error using subplot (line 332) Index exceeds number of subplots.
x=[-3:0.01:3]; y=1/4*ones(size(x)); for n=1:40 ao=(1/6); an=((-1)^n)/(n^2*pi^2); bn=-(-1)^n/(n*pi)-(2)/(n^3*pi^...

1 year ago | 0

Solved


Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
Submit your answer to this problem a multiple of 5 seconds after the hour. Your answer is irrelevant; the only thing that matte...

1 year ago

Solved


Polarisation
You have n polarising filters stacked one on top of another, and you know each axis angle. How much light gets passed through th...

1 year ago

Solved


Pi Digit Probability
Assume that the next digit of pi constant is determined by the historical digit distribution. What is the probability of next di...

1 year ago

Solved


The glass half full
Identical glasses are placed in a triangular tower structure, such that the top level (L = 1) comprises one glass, the next leve...

1 year ago

Solved


Is it really a 5?
A number containing at least one five will be passed to your function, which must return true or false depending upon whether th...

1 year ago

Answered
How to change ASCII values?
I simple way of converting characters values or character vectors to apply a numerical calculation directly to the characters. ...

1 year ago | 0

Answered
Plot using while loop
Sami is correct that you are running n to a higher value than the total number of elements in r. I better way to approach this p...

1 year ago | 1

Answered
Compiled version not working because of path
If you are certain that the image you are looking for is always going to be on the Desktop and your OS is Win10, you can try the...

1 year ago | 1

| accepted

Answered
another way to break without using the command 'break'
To stop the while loop you need to make sure that none of the conditions are met, else it will keep running. By changing || to &...

1 year ago | 0

| accepted

Answered
Problem with Toggling Invisibility of Edit Text Box
With App Designer you need to look at the Object's value property as you are doing. However, it will return a logical value. If ...

1 year ago | 0

| accepted

Solved


5 Prime Numbers
Your function will be given lower and upper integer bounds. Your task is to return a vector containing the first five prime numb...

1 year ago

Load more