Answered
Plotting a random walk step by step
You're adding a new line to the axes each time you want to put a new point down. That's numberOfWalks times stepsPerWalk differe...

5 years ago | 0

Answered
Error with validate attribute
Nowhere in your message did you show the error you received. Please show all the text displayed in the Command Window in red and...

5 years ago | 0

| accepted

Answered
calculate a grade of students
%purpose is showing grades of 102 students and assign a letter grades %the grades will be random numbers between 0 to 100 clc;...

5 years ago | 1

Answered
Unit testing with externally configurable parameters.
Write a parameterized test whose parameter is the port name. Inject a value for that parameter into the test when you create the...

5 years ago | 0

| accepted

Answered
C++ to matlab, anybody can help?
Are you trying to solve the same type of problem the matchpairs function does?

5 years ago | 0

Answered
Ploting a Histogram with two data sets (One data set with respect to the other).
Do you want a 2-D histogram? x = [-9.3185, -9.2809,-9.2079,-9.1043,-9.1989,-9.1040,-9.1865,-9.0970,-9.0852,-9.0967,... -9....

5 years ago | 0

| accepted

Answered
square root of pi
I would have both the Area and Diameter properties depend upon a third (maybe public, maybe internal) property. Setting either A...

5 years ago | 0

Answered
Create datetime from two columns of a table
I would use synchronize for this task. Let's start with some table data. v = (0:9).'; datePart = repmat("02-01-20", 10, 1); t...

5 years ago | 0

Answered
How do you pass a variable between two different matlab apps
Have you tried following the procedure shown on this documentation page?

5 years ago | 0

Answered
Changing the initial variables when passing into an ode45 solver
I would call the ODE solver three times. First, solve over the time span [0, 20]. Next, use the final value from that first OD...

5 years ago | 0

| accepted

Answered
Only the real part of the complex number is displayed
I believe you're using the bank display format (format bank) which does not show the imaginary parts of numbers. What would $4.5...

5 years ago | 1

| accepted

Answered
Error: Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters
When you define a function the inputs must be specified as variable names in the definition. [Slight oversimplification, but goo...

5 years ago | 0

Answered
Colors in Matlab as a vriable
Do you want your users to select colors by name or by appearance? If the latter use uisetcolor.

5 years ago | 0

Answered
Location of plot for subplot(2,2,3)
For a subplot(2,2,3), the plot is located in 3-rd position in 2x2 matrix form. Up to now the plot is placed in the lower left c...

5 years ago | 0

Answered
Portable version of Matlab
Two other options that I believe did not yet exist when this question was originally asked in 2015 are MATLAB Online and MATLAB ...

5 years ago | 0

Answered
f(x) is different of f(value of x)
The value stored in an array is not necessarily the same value that is displayed. Right now Forbes magazine lists the net worth...

5 years ago | 0

Answered
I can't install Matlab on my M1 Mac mini.
See this post.

5 years ago | 0

Answered
Conditional with time in ode45
Solve the system from time t = 0 to time t = 300 with the first value of upsilon. Use the value of the solution at t = 300 as th...

5 years ago | 1

Answered
How can I install Matlab R2013a on macOS 11.1?
This post states MATLAB release R2020b and later are supported on Big Sur and that earlier releases are not supported. The syst...

5 years ago | 0

Answered
How to plot string on X-axes and number in Y-axes in figure?
This doesn't do what you think it does. x_axes=['Case-1','Case-2','Case-3','Case-4'] Instead use a string array or a cell arra...

5 years ago | 1

| accepted

Answered
Cannot find highlight function
The description of the first input argument H listed on the documentation page indicates it must be a GraphPlot object created b...

5 years ago | 0

| accepted

Answered
Converting char array into string cells
Rather than creating a cell array containing char vectors, why not create a string array? x = [0 1 3 0]; s = string(x) three ...

5 years ago | 1

Answered
How to get the results in Matlab Live Editor
When you run that script, the variables are created in the base workspace. Put these two lines in a Live Editor script named qua...

5 years ago | 0

Answered
Plotting within 0 to 360
You're plotting individual points as separate lines, so they're not connected and the default marker is 'none'. h = plot(1, 1);...

5 years ago | 0

Answered
why do I get these errors ?
I would set the VariableNames as you're converting the cell array, not after the fact. I made it a 1-by-11 table so you could se...

5 years ago | 1

Answered
Change all Plot MarkerSizes at once?
x = 0:360; h = gobjects(1, 5); ax = axes; axis([0 360 -1 1]); hold on for k = 1:5 h(k) = plot(x, sind(k*x), 'o-', 'M...

5 years ago | 1

Answered
@findall in an arrayfun?
As written this will find all graphics objects with those Tag values, those that are part of your app and those that are not. Th...

5 years ago | 1

Answered
How to stackedplot in Matlab 2016?
The stackedplot function was introduced in release R2018b. If you want to use this function you will need to upgrade to release ...

5 years ago | 0

Answered
How to know if a network of nodes are connected to each other?
Data_Elementos =[... 1 1 7; 2 7 8; 3 8 2; 4 7 9; 5 8 10...

5 years ago | 0

| accepted

Answered
Error in the code metioned below
You have at least two problems with your code. The first is that your mytrial function does not satisfy the requirements impo...

5 years ago | 0

| accepted

Load more