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

Answered
How to stop cyclic program in Matlab online - timer
Let's go through your function line by line. function start () fileID = fopen('exptable.txt','w'); a = timer; se...

6 years ago | 0

Answered
sorting table according to date/time
which failed, probably becasue I am not defining the AM/PM symbols. According to the table in the description of the Format pro...

6 years ago | 1

Answered
How to fix it.
So you want to take 5001 values and generate 25005 (5001 times 5) values using those values. How do you want to generate the add...

6 years ago | 1

| accepted

Answered
Why does rem(a, b) function give different answers for input values' class 'double' and 'uint64'?
Let's look at the value stored in a1 converted to a uint64. >> a1 = 9419588158802421600; b1 = 44; >> a2 = uint64(9419588158...

6 years ago | 1

| accepted

Answered
Why does rem(Centnum,5) give me an answer that is not zero?
>> x = 7.45; >> d = floor(x); >> c = x-d c = 0.45 >> cn = 100*c; >> cn - 45 ans = 1.4210854...

6 years ago | 0

Answered
Roll a 6-Sided Die and Compute the Probability of the Sum (with bar graph)
function prob = ex4(n) % % rng('shuffle') prob = zeros(1,12); TotalNRolls = 0; while TotalNRolls <= n Conceptual question...

6 years ago | 0

Answered
Track Simulink slx Files
This documentation page includes instructions on how to configure source control tools to use tools provided by MathWorks to dif...

6 years ago | 0

Answered
How do I perform fft for each column in a matrix?
If you want to make it explicit that you're operating down the columns, from the documentation page: "Y = fft(X,n,dim) returns t...

6 years ago | 0

Answered
Workaround on curvefit limitation
The built-in library of fits only contains sum of sines and Fourier fits up to sin8 and fourier8. If appropriate you could write...

6 years ago | 1

| accepted

Answered
how to using single editor in matlab2020a
As stated on this documentation page "At the upper right of the tool panel, click [the downward pointing triangle in a circle], ...

6 years ago | 0

Load more