Answered
Save classdef with Object in MAT file
Typically I process all my data into one MAT file with each variable names something like "Thermocouple_01", with all the necess...

6 years ago | 0

Answered
Paying by Postal order for matlab
Please contact Customer Service in the UK office. They should be able to answer your question and give you the location where yo...

6 years ago | 0

Answered
How to get ride of duplicate rows?
Use unique with the 'rows' option or uniquetol with the 'ByRows', true name-value pair.

6 years ago | 0

| accepted

Answered
why am I getting this error?
[t,x]=ode45(odefun,tspan,IC); This attempts to call your odefun function with 0 input arguments and use the function handle it ...

6 years ago | 0

| accepted

Answered
Why option for fmincon is not working ?
If you want to provide an options structure to fmincon you must provide all the input arguments that precede it. While you've pa...

6 years ago | 1

Answered
I can't get the value associated with the maximum frequency from the "histcounts" function.
If you want the element of magS whose corresponding element of magcount is the maximum in that vector, you need to use the secon...

6 years ago | 0

| accepted

Answered
Convert time column from hours to ddmmmyyyy HH:MM:SS
dth = 999312 + [0;1;12;24;36;42] % fake data start = datetime(1900, 1, 1); dates = start + hours(dth)

6 years ago | 2

Answered
Problems with sin, cos, tan and cot
If you're computing sin, cos, etc. of either angles in degrees or angles that a multiple of pi radians there are other ways to c...

6 years ago | 0

Answered
can anyone please explain X0(1:2) where X0=[0,0,0]' , i wrote X0(2:2) and gave answer 0 i tht it shoudl give error . what i understand is X0(1:2) is 1 row 2 element. please correct me
v = 2:2 is the vector formed by starting at 2 and going to 2 by steps of 1. That vector is equivalent to writing v = [2] or v = ...

6 years ago | 0

Answered
When opening R2020b .mlapp file in R2018b, automatic conversion removes all UI elements and associated auto-generated code
I suspect it's going to be difficult to determine exactly why the components have been removed from the app without seeing the a...

6 years ago | 0

Answered
inheriting property and changing access
According to the documentation there are two conditions under which you can redefine superclass properties. I don't believe you ...

6 years ago | 0

Answered
r = randi(10,100,1) but using non-uniform distribution
One way to generate numbers from a "weighted die" is to use discretize with a vector of probabilities. In this example, the weig...

6 years ago | 0

Answered
Matlab Unit test for structure input. How to use same test for n numbers.
It sounds like you want to create a parameterized test.

6 years ago | 0

Answered
How to evaluate a polynomial p at each point in y?
For the simple case of a polynomial, you can use roots. For example if you want to find a value of x for which is equal to 50: ...

6 years ago | 1

Answered
How can I convert a cell to a matrix ?
What specific type of variable are you using to store your data? If it's in a table array take a look at the unstack function. T...

6 years ago | 0

Answered
How to format matrix to 4 decimal places in engineering notation:
Since vpa worked on this array, it's most likely a symbolic array. If so call vpa with two inputs, the first this array and the ...

6 years ago | 1

Answered
Deep learning toolbox installed R2020b - does not work
2) the problem shows when I tried to run the command net = alexnet I get the message in "Screenshot 2020-11-04 120126.jpg" atta...

6 years ago | 0

| accepted

Answered
taylor expanssion calculation result is wrong
I want to walk through your code and comment on a few places. function [SN] = sintaylorfunction(A, tol) k = 0; error = ...

6 years ago | 0

Answered
Trying to make my Implicit Function Work
I'm going to walk through your code and comment on a few things along the way. %All known or base variables% Xc = []; Yc = []...

6 years ago | 1

| accepted

Answered
Difference between the given syntax
As Ameer Hamza said, the difference is whether you want your struct array to be a scalar struct array with a field that is not s...

6 years ago | 0

Answered
Is it possible to prevent subclasses from being allowed to implement methods that are NOT defined as abstract methods in the superclass
Give the methods you want to prevent subclasses from redefining the Sealed attribute. classdef superclass634389 methods ...

6 years ago | 0

Answered
ODE Events Function Using Persistent Variables
IMO persistent variables is not the right technique to use. One reason why is that the solver does not always evaluate your func...

6 years ago | 0

| accepted

Answered
How do I make a function to make calculations within my matrix?
How have you stored your data? A numeric matrix or a table array? numericMatrix = magic(4) tableArray = array2table(numericMat...

6 years ago | 0

Answered
How to create a matrix with several days using eval fuction?
There's no need to use eval here, and in general if you feel you need to use eval that's often a code smell. To assemble text u...

6 years ago | 0

| accepted

Answered
undefined function or variable 'basefilename'
The variable basefilename used on line 8 of your code is not the same as the variable baseFileName defined on line 7. Case matte...

6 years ago | 0

Answered
debugging limit Error using sym/subsindex
The code you posted is not the code you ran. What you said you ran was: syms k f = 2*l1^k*v1 + 1*l2^k*v2 + 3*l3^k*v3 ...

6 years ago | 0

| accepted

Answered
Variable precision arithmetic in ode45 and others?
What types of differential equations are you trying to solve that you need to use arbitrary precision arithmetic? If you're try...

6 years ago | 0

Answered
Matlab having problem interpreting streamed string into numbers.
Please remove the semicolon from the end of this line, let your callback trigger a few times, and show us exactly what gets disp...

6 years ago | 0

Answered
What does this syntax mean? “yyy(1,1) logical = xxx”
See this documentation page for information about the property validation syntax used in properties blocks inside a classdef fil...

6 years ago | 0

Answered
How to quickly update the inverse for a sparse matrix when a row changes?
You can't even be confident that A1 is invertible. A = speye(5) invA = inv(A) A1 = A; A1(3, 3) = 0 % changing one element ...

6 years ago | 0

Load more