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

4 years ago | 1

| accepted

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

| accepted

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

4 years ago | 0

| accepted

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

4 years ago | 1

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

4 years ago | 0

Answered
I need to buy 25 Licenses of MATLAB Student Suite License, so shall i repeat buying price 25 times ??
I would suggest contacting sales, not support. https://www.mathworks.com/company/aboutus/contact_us/contact_sales.html

4 years ago | 1

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

4 years ago | 1

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

4 years ago | 1

| accepted

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

4 years ago | 0

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

4 years ago | 0

| accepted

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

4 years ago | 0

Answered
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)

4 years ago | 0

Answered
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)

4 years ago | 0

| accepted

Answered
Matlab AppDesigner PointCloud not appearing on UIAxes
See this answer. This answer contains some links that may be helpful as well.

4 years ago | 0

| accepted

Answered
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?

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

| accepted

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

4 years ago | 0

Answered
Can anyone suggest me how to download VPItransmissionMaker or VPIcomponentMaker?
These appear to be commercial products developed by VPIphotonics. I suggest visiting their product page.

4 years ago | 1

Answered
convert code to 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...

4 years ago | 1

Answered
To select the indices of logical "1" in first 2D matrix, and then replace those corresponding indices in second 2D matrix with logical "0"
Use logical indexing (Ch 11 of MATLAB Onramp) A = randi([0 3],5) B = rand(5); B(A==1) = 0

4 years ago | 0

| accepted

Answered
Matlab, for loop code
I don't know much about your data, but I would see if groupsummary works. If you have datetime info in your data, you can use th...

4 years ago | 0

Answered
Is it possible to use a function of Matlab toolbox without installing the tolboox itself?
You would need to install the toolbox to have access to the functions it contains. If you have access to MATLAB Online, you co...

4 years ago | 1

Answered
Create new columns in tale adding prior data
Columns in a table are variables. Here, you want to just create a 'new' variable, and set it equal to the sum of the existing va...

4 years ago | 0

Answered
annual, seasonal mean from monthly time series
I don't know much about your data, but I would see if groupsummary works. If you have datetime info in your data, you can use th...

4 years ago | 0

| accepted

Answered
Finding maximum value and returning variable name of the column
Look into finding the max along the second dimension, and have it return the loacation of the max. M = max(A,[],dim) [M,I] = m...

4 years ago | 1

Load more