Answered
App Designer: Update Text Area Value with parameter change
See this page, particularly the code at the very top. Now just figure out what action you want to trigger the change, and add ...

4 years ago | 0

Answered
Matlab Fundamentals course: Task 1 from paragraph 15.1 (Creating and Calling Functions) gives me an error
It looks like there is an issue with this test. You can fix it by adding a clear in the very first line of the script. clear % ...

4 years ago | 3

| accepted

Answered
Why is this happening in this code?
The ".xml" corresponds to the "" in your submifle_modifier. subfile_limit = 5; subfile_modifier = ["","_" + (1:subfile_limit)]...

4 years ago | 0

| accepted

Answered
datetime format issue?
You have only set the input format, which is used to read in the data, so it is using the default format to display the date. Th...

4 years ago | 0

| accepted

Answered
Error using ls - no such file or directory
Add one more forward slash to terminate your variable path path = '/Users/suadvejselovski/Docu/MATLAB/Matlab_work/Dafare/'; % ...

4 years ago | 0

Answered
Error using STLWRITE function
You appear to be trying to use MATLAB's stlwrite function, but the error messages suggest you are using this one from the File E...

4 years ago | 3

| accepted

Answered
What version MATLAB can i run?
You can find a list of system requirements by release here.

4 years ago | 0

Answered
Regarding 3d plot color
The spacing between your values is so small that all you are seeing here is the EdgeColor. Try setting the color to 'none' and s...

4 years ago | 0

Answered
How to implement the inputted value to a function?
It's already implemented for you. The template code already captures the current value in the variable changingValue. The spinn...

4 years ago | 1

| accepted

Answered
whether the workspace data can be recovered after restarting
Unfortunately no, the workspace is not preserved. Any commands you typed into the command window can be recovered, but they woul...

4 years ago | 0

Answered
Index in position 1 is invalid. Array indices must be positive integers or logical values.
Seems to work fine. You likely just need to clear your workspace then run the code again.

4 years ago | 0

Answered
Matlab 2022a Updates to App Designer
R2022a release notes mentioning App Designer can be viewed here.

4 years ago | 0

| accepted

Answered
how do I write expression for this equation??
See Ch 2 of MATLAB Onramp

4 years ago | 1

Answered
how to write the results from the code into the csv file format?
I'd try using writematrix instead.

4 years ago | 1

| accepted

Solved


Longest run of consecutive numbers
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have a = [1 2 2 2 1 ...

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

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

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

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

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

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

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

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

4 years ago

Solved


Solve a System of Linear Equations
Example: If a system of linear equations in x₁ and x₂ is: 2x₁ + x₂ = 2 x₁ - 4 x₂ = 3 Then the coefficient matrix (A) is: 2 ...

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

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

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

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

4 years 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:...

4 years ago

Answered
Is it possible to create a variable like list of numbers from other matrix?
Use the unique function. a = [1 2 3 3 3]; b = unique(a)

4 years ago | 0

| accepted

Load more