Answered
Illegal use of reserved keyword "classdef" ; How to fix it?
If you're trying to run this by copying and pasting the code into the Command Window, that won't work. You need to construct the...

6 years ago | 2

Answered
two outputs of a function
Your function is defined to return two output arguments. Now you have to call it with two output arguments. I'm assuming you hav...

6 years ago | 0

Answered
Multiply/divided two tables
The arithmetic operators aren't defined for table or timetable arrays, in part because they often contain data for which those a...

6 years ago | 0

| accepted

Answered
How to unit test several different functions that take the same input arguments efficiently?
%% Test Class Definition classdef ComputeFunction1Test < matlab.unittest.TestCase %% Test Method Block methods (Tes...

6 years ago | 1

Answered
Unit test can't see the function it needs to test
+computeFunctions and +utilityFunctions are automatically in the Matlab's search path Not true. In fact, package directories c...

6 years ago | 0

| accepted

Answered
Function Has Been Partially Removed
Replace your use of fints objects with timetable as recommended in the Release Notes.

6 years ago | 0

| accepted

Answered
Error using matlab.internal.graph.MLGraph.edgesConstrWithIndex Source must be a numeric array of positive integer node indices.
The identifier graph already has a meaning in MATLAB. If possible I recommend naming your function and your function file someth...

6 years ago | 0

| accepted

Answered
How to properly display microsecond time differences
Change the Format for the datetime and duration arrays you create. t = {'2020-11-07 21:58:29.468130' '2020-11-07 21:58:29.4826...

6 years ago | 0

| accepted

Answered
I have a problem getting access to a MatLab example
Was it this example? That is in the documentation for Powertrain Blockset so you likely will need to have that product installe...

6 years ago | 0

Answered
Error in showing size of a matrix
You've defined a variable named size that's taking precedence over the built-in size function. Clear that variable (storing its ...

6 years ago | 0

| accepted

Answered
Help with intervals (new to MATLAB)
When in doubt about a compound statement (made up of multiple pieces) in MATLAB take it one piece at a time. c = c(a<= c & c<=b...

6 years ago | 0

| accepted

Answered
Error in fminsearch (line 200) fv(:,1) = funfcn(x,varargin{:});
From the documentation page for fminsearch: "f(x) is a function that returns a scalar, and x is a vector or a matrix." Your fun...

6 years ago | 0

| accepted

Answered
Error in the function
clear; clc; Get rid of these. As written your file is a script file with local functions, and the only code that is executed w...

6 years ago | 0

| accepted

Answered
Large number of plots
Rather than opening ~150 figure windows simultaneously, why not publish the document so you only need to have one figure open at...

6 years ago | 0

Answered
How to discard entries from a matrix
See this documentation page.

6 years ago | 1

| accepted

Answered
solving a differential equation with ODE45
Remove the space in the middle of each of the last two lines of the xdot matrix. You probably also want to end the definition of...

6 years ago | 0

| accepted

Answered
How can i deactivated my Mathswork account ?
See this Answer for information on how to edit your MathWorks account. If you are unable to edit your account, please contact Cu...

6 years ago | 0

Answered
Using ismember with cell arays, R2010
What key detail have I missed? The fact that your raw cell array contains both text and numbers. groceries = {'apple', 'banana...

6 years ago | 0

| accepted

Answered
Perpetual and Annual Licenses
Please contact the Sales department directly and describe your needs. They should be able to offer guidance on the licensing sol...

6 years ago | 0

Answered
rounding string to certain decimal places
When you include %d in your format specifier for sprintf you're telling sprintf that it should expect an integer value in that p...

6 years ago | 0

| accepted

Answered
counting elements in multiple variables, in a for loop
Can you define variables with numbered names like M1, M2, M3, ... ? Yes. Should you do this? Generally we recommend against it....

6 years ago | 0

Answered
return doesn't work within function
Why does return doesn't cancel the running script? It does exit from the currently running function. It exits the scriptFailed ...

6 years ago | 1

Answered
curious behavior of geomean
According to the Release Notes the ability to specify 'omitnan' to omit NaN values from the geometric mean calculations in geome...

6 years ago | 1

Answered
colon operator in compiled python package
The variable fRange is a cell array. The colon operator doesn't know how to work on cell arrays. a = {1}; b = {10}; x = a:b %...

6 years ago | 0

Answered
datevec back to regular time
I second Walter Roberson's suggestion to skip the datevec form and to use duration. t = '1:31:00' du = duration(t) newtime = ...

6 years ago | 0

Answered
How do I find the mean and standard deviation of each column for this data?
If you've read this data into a table array you can extract those variables in the table that contain numeric data then use varf...

6 years ago | 0

Answered
How I can determined the number of digits in decimal number ?
According to the Compatibility Considerations section on the documentation page for the round function the ability to specify a ...

6 years ago | 1

Answered
How to draw an Arc in the direction you want? (with known radius, centre and angle)
Use an ending angle of 360 degrees rather than an angle of 0 degrees. You can skip the deg2rad calls by using the degree-based t...

6 years ago | 1

Answered
why i cant get a reset password at my email?
Have you checked your spam folder in case the password reset message was accidentally classified as spam? If it is not in your ...

6 years ago | 0

Answered
Fixed-Point Designer toolbox doesn't exist.
You should probably check with your license administrator to confirm that 1) Fixed-Point Designer is included in your license an...

6 years ago | 0

Load more