How create moving plot in MATLAB grader (in moodle)
You cannot create an animation in MATLAB Grader. At least not one that you will be able to see. This is because your code actual...

2 months ago | 0

| accepted

find out dependent variables from an expression
syms x y=x^2+2; symvar(y)

2 months ago | 0

How to fix the following error while writing matlab code for definite integral
It would appear the first input to int is not a symbolic expression. See here. Look at these examples for how to use int.

2 months ago | 0

Unable to update MATLAB 2016b to 'update 7'
Based on the message, it appears you need to contact support. You can do so here: https://www.mathworks.com/support/contact_us....

2 months ago | 0

How to find specific text in a string?
I'm sure there is a regexp way to do this, but I find it easier to use pattern with its supporting functions. Here's how I would...

2 months ago | 0

| accepted

Error using plot Vectors must be the same length. ı have a plot error .İs there any advicethis problem
There are not enough details to say why your vectors are not the same length, but your X and Y vectors are not the same length i...

2 months ago | 0

Removed Support for Certain Functions in MATLAB Grader?
The error I get when running a similar example in Grader is Error using matlab.internal.lang.capability.Capability.require Th...

2 months ago | 1

| accepted

Same values's aswer in MATLAB Grader but identified as a mistake.
How have you set up your assessment test? Are you using the Variable Equals Reference Solution test or a MATLAB Code test type? ...

2 months ago | 0

Limiting the number of attempts is done via custom parameters. See my comment in this answer: https://www.mathworks.com/matlabc...

2 months ago | 0

Index in position 2 exceeds array bounds. Index must not exceed 2
The error is likely from this indexing operation: XTest(:,i-1) My guess is that XTest only has 2 columns, but your indexing in ...

2 months ago | 0

Operator '-' is not supported for operands of type 'timetable'.
A timetable holds several variables of different data types. You must specify which variable in your timetable you want to subtr...

2 months ago | 0

| accepted

Plotting datapoints with their time distance on x-axis
It's hard to say for certain, since you have not shown how the times correspond to your step plot, but here's some simple code t...

2 months ago | 0

| accepted

what is helperRangeDoppler ?
In the top right of the page, click the Copy Command button. Then run that command in your command window. openExample('phased...

2 months ago | 1

Can someone help me explain this code?
Consider going through MATLAB Onramp. You'll also find the help documentation quite detailed, with accompanying examples. colo...

2 months ago | 0

I would suggest contacting sales, not support. https://www.mathworks.com/company/aboutus/contact_us/contact_sales.html

2 months ago | 1

Why the assessment shows the keyword not presented however it is in the code in the MATLAB grader?
The reason is that descend is not a function or keyword. It is an input argument to the sort function. exist('descend') iskeyw...

2 months ago | 1

Cannot simplify a result
Symbolic results are exact. If you want a decimal approximation, convert the symbolic value to a double. syms rho x L E w t csi...

2 months ago | 1

| accepted

Matlab ploting graph error
It looks like you forgot to include out in your variable name. Perhaps something like this will work? (untested) plot(out.pvvol...

2 months ago | 0

Can I disable the colored border around code in the Live Editor?
You could use a script instead of a live script.

2 months ago | 0

| accepted

Different colors for each bar
Perhaps this example from the bar documentation page will help. b = bar(rand(10,1)); b.FaceColor = 'flat'; b.CData(2,:) = [.5...

2 months ago | 0

I wonder what the inside [] represents when using ode.
See this syntax in the documentation for ode45 [t,y,te,ye,ie] = ode45(odefun,tspan,y0,options)

2 months ago | 0

How to index variables from column B based on column A condtion
Logical indexing and assignment A = [1 2]; B = [3 4]; % assign results to new variables C = B(A==1) D = B(A==2)

2 months ago | 0

| accepted

Matlab AppDesigner PointCloud not appearing on UIAxes

2 months ago | 0

| accepted

how to plot bar3 for a data which has 3 columns
How would you use your 3 columns to create a histogram? If you have the counts already, perhaps what you really want is bar3?

2 months ago | 0

cannot run the code because unknown about getMemberNames function
You need the Signal Processing Toolbox in order to use getMemberNames. If it is included on your license, you can use theAdd-ons...

2 months ago | 0

how to insert 500 inputs into a script that also contains a function
Sounds like a job for a for loop. See Ch 12 of MATLAB Onramp.

2 months ago | 0

writing the code as a function
If you move your code to a live script, you can use the Refactor tool to automatically turn the selected code into a function. S...

2 months ago | 0

| accepted

Code Error on Line 39 and 41
You are correct on how to fix it. f_i and K_a1 are both 1x101 vectors. Use elementwise operators to preserve the vectors. K_a...

2 months ago | 0