Answered
Restricting method access to classes, NOT methods of classes
_I am storing a list of subclasses in each class._ That makes your system <https://en.wikipedia.org/wiki/Coupling_(computer_p...

8 years ago | 1

| accepted

Answered
Built in Julian Date Converter not working?
There are at least two functions named |juliandate| in MathWorks products. The <https://www.mathworks.com/help/aerotbx/ug/julian...

8 years ago | 0

Answered
Why doesn't the methods() command display set.property() and get.property() methods of a class? What alternative can be used to find them?
The fact that |methods| doesn't show the property accessor methods is documented behavior. See the "Defining Access Methods" sub...

8 years ago | 1

| accepted

Answered
Matlab crashes when I use symbolic math toolbox
Apply the appropriate Update for your release as described in the Bug Report listed in <https://www.mathworks.com/matlabcentral/...

8 years ago | 1

Answered
Entering debbug mode when a want to zoom (or any action) on my plot?
Do you have one of the types of <https://www.mathworks.com/help/matlab/matlab_prog/set-breakpoints.html error breakpoints> enabl...

8 years ago | 0

Answered
Modifying the Tolerance (TolX) inside the Matlab function file (fzero.m).
The relevant section of your code is: options = optimset; optnew = optimset(options,'TolX',1e-12); [b,fval,exitflag...

8 years ago | 0

Answered
Using variable input to function in plot title
So you want your function to use the _name_ of the variable that was passed into it in the title of the plot it creates? You can...

8 years ago | 0

Answered
Convert decimal dates in loop
I assume the integer part of x is the year, and the fractional part is the fraction of the way through that year representing th...

8 years ago | 0

Answered
I got FMINCON requires the following inputs to be of data type double: 'A' error,How it can be solved????
OptParsTemp = fmincon(@elec_solar_lse, InitGuessTemp, ... optimset('TolX', 1e-3)); You can't just skip re...

8 years ago | 1

| accepted

Answered
MATLAB Production Server has Trail version or its working Only on License Version?
See the "Try or Buy" section on its <https://www.mathworks.com/products/matlab-production-server.html product page>.

8 years ago | 0

Answered
find_system(Search_Path,'SearchDepth',1,'BlockType','Inport'); what does this function do? specially what is search depth and value 1?
When you are uncertain what a function does, my first recommendation is for you to read or skim its <https://www.mathworks.com/h...

8 years ago | 0

Answered
When are outputs of a function updated?
Have your run_simulation function accept an input that gives it access to the GUI (in this case, either app or app.TextArea woul...

8 years ago | 0

| accepted

Answered
How can I put a symbol (~) above a letter?
Where do you need to add the tilde above the letter? In a variable name? That's not going to work. In the title or axis la...

8 years ago | 2

| accepted

Answered
What does the 'Constant' modifier do to cause this behavior?
From the "Initialize Properties to Unique Values" section on <https://www.mathworks.com/help/matlab/matlab_oop/specifying-proper...

8 years ago | 0

| accepted

Answered
Displaying Histograms with decreasing bar heigths
It's not clear to me what you mean when you say "with decreasing bar heights". Do you want the total area of the bin to be pr...

8 years ago | 0

| accepted

Answered
Is there a way to specify a constant using the fit() function?
If you build your own |fittype| object with a custom equation to be fitted, use the 'problem' parameter to specify that a partic...

8 years ago | 0

Answered
What is valid matlab syntax in if statement?
What do you expect line 9, which is |A(i,j)-A(i+1,j)==-1;|, to do? Do you want to run lines 10-15 only if that condition is sati...

8 years ago | 0

| accepted

Answered
Undefined function or variable 'cvx_begin'
The cvx_begin function is not from any MathWorks-provided toolbox. I believe that it's part of <http://cvxr.com/cvx/ this toolbo...

8 years ago | 0

| accepted

Answered
Why the imaginary part of the points p1,p2,p3 isn't zero in the plane?
When called with one data input, the |plot| function behaves differently depending on whether that data input is real or complex...

8 years ago | 0

| accepted

Answered
how to display number in decimal ?
Since it's likely the "fraction number" is stored as a symbolic object, try calling either the |vpa| function or the |double| fu...

8 years ago | 2

Answered
Depth Averaged Velocities - Nanmean higher than excluded values?!
Can you give me an example of a number that is simultaneously greater than or equal to 1 *and* less than or equal to -1? You ...

8 years ago | 0

| accepted

Answered
I need to plot a histogram
E = [0, 0.2, 0.4, 0.6, 0.8, 1.0, 1.2, 1.4, 1.6, 1.8, 2.1, 2.7, 3.6, 5.1]; C = [10, 80, 132, 142, 138, 112, 75, 65, 52, 65, ...

8 years ago | 1

Answered
Adapting the datetime function
Define a variable and show us the |class| and |size| of that variable. You can show both using the |whos| function. z = t.r...

8 years ago | 0

Answered
Why Matlab 2017b cannot start on macOS Sierra 10.12.6 (No sandbox or build area path)
<https://www.mathworks.com/support/bugreports/1405180 Bug Report 1405180> says that it was fixed in release R2017b, but the cras...

8 years ago | 0

Answered
Problem when creating a datetime array using reference and sampling frequency
It's going to be difficult to know why your code appears to run infinitely without knowing the contents of st, time, and fs. But...

8 years ago | 0

Answered
Wanting to analyze only data taken from days at night from a matrix of data from roughly a week
If your time and date data is stored as a |datetime| array, call <https://www.mathworks.com/help/matlab/ref/hour.html |hour|> on...

8 years ago | 0

Answered
Why is Matlab plotting my function wrong?
The coefficient for the x^4 term is extremely small. When x is 6000, you're multiplying 6e-15 by about 1.3e15. I recommend us...

8 years ago | 0

Answered
How do I use symbolic dimensions for Matlab Function blocks, and use the same for code generation ?
I think you want to read through <https://www.mathworks.com/help/simulink/variable-size-data.html this section> in the documenta...

8 years ago | 0

| accepted

Answered
How to reference a property name with a variable in findobj?
Look at the contents of your list variable. It is *not* a 3 element array, the first element of which is 'G1'. You likely wan...

8 years ago | 0

| accepted

Load more