Answered
Pca built-in function and how its works?
The books and papers listed in the References section on the documentation page for the pca function in Statistics and Machine L...

7 years ago | 0

Answered
Two fields Tooltip and TooltipString duplicating each other.
Yes and the Release Notes recommend using the Tooltip property. TooltipString is not necommended as of release R2018b.

7 years ago | 0

| accepted

Answered
Generating function handles with large numbers of variable coefficients
You're using release R2018a, so you can take advantage of implicit expansion. I = reshape(1:60, [3 4 5]); b = [1 2 3 4 5]; R...

7 years ago | 0

| accepted

Answered
Changing data type within a table from type table to any other data type
Using parentheses to extract elements from a table returns a table array. Using curly braces to extract elements from a table r...

7 years ago | 0

| accepted

Answered
Error using cell/ismember (line 34) Input A of class double and input B of class cell must be cell arrays of character vectors, unless one is a character vector. Error in untitled5 (line 190) if ismember(BW6(i,j),array1)~= logical(1)
So you want all the unique elements of the matrix? Use the unique function or if "close enough" counts use the uniquetol functio...

7 years ago | 0

Answered
Transform NaN into number
For this application, I'd use fillmissing. It will do the same task as filling in locations using logical indexing with the outp...

7 years ago | 2

| accepted

Answered
OOP - convert base class object to sub class object
I think this approach has a couple problems, two conceptual and one specific to Guillaume's implementation. Conceptually, wit...

7 years ago | 2

| accepted

Answered
i am getting recursive limit crossed and not been able to get the answer when i tried to implement Median of Medians pseudo code given on Wikipedia
In your select function: function sel = select(list,left,right,n) if (left == right) sel=left; end pivotIndex = piv...

7 years ago | 0

Answered
why some of the built-in function of my matlab (2018b) can not work? like fit, confint...
The fit function used that way is part of Curve Fitting Toolbox, as is the confint function. You most likely do not have this to...

7 years ago | 1

Answered
datetime to samplenumber slow
Do you want to compute the median for overlapping / sliding windows of 5 minutes, or do you want to compute it for each non-over...

7 years ago | 0

Answered
Sort an array while keeping the right index
Look at the second output from the sort function. That can be used to generate the first output of sort from the input array, bu...

7 years ago | 0

Answered
why no statistic in workspace
Nothing is wrong, this is the expected behavior for functions. From the documentation, "Functions have their own workspace, sepa...

7 years ago | 0

Answered
Optimoptions set both Display AND Parallel properties
You can't solve problem 1 using either optimset or optimoptions. The Optimization Toolbox options reference page shows that Use...

7 years ago | 0

| accepted

Answered
importing large 4GB+ tab-delimited ascii file makes MATLAB crash
Consider making a tall array or perhaps using memmapfile. These tools are linked from this documentation page. Please also send...

7 years ago | 0

Answered
Drawing out a graph, animating a 2-d graph in MATLAB
Use the functions and techniques described on this documentation page. The easiest would probably be comet or animatedline.

7 years ago | 0

Answered
What are my options for compiling Statistics on Missing Data Values
See the functions and topics related to missing data on this documentation page. For your stated tasks ismissing should be suffi...

7 years ago | 1

Answered
Array is stopping at lower variable count
for w=numel(Folders) This "loops" over one value, which means you're only going to access the files in the last element of Fold...

7 years ago | 1

| accepted

Answered
ode output function problem
As documented in the odeset function documentation page the function you specify as your custom OutputFcn must have a certain sy...

7 years ago | 0

| accepted

Answered
using a vector/array as a counter in a for loop, or while loop?!
Rather than creating and deleting the line each time, why not use one of the animation tools and/or techniques shown on this doc...

7 years ago | 0

Answered
Calculate mean from daily to monthly values
Use the groupsummary function or store your data in a timetable and use retime on that timetable.

7 years ago | 1

Answered
Upgrade Matlab version/server out of maintenance
Please send this licensing question directly to the Sales department using the telephone icon in the upper-right corner of this ...

7 years ago | 0

Answered
How to create a planar STL in PDE Modeler?
You can look at the PlateHolePlanar.stl file being imported by that example. edit PlateHolePlanar.stl It looks to me like the ...

7 years ago | 0

Answered
how can i find convex and concave points
Depending on what you want to do with this information (which is not clear from the question) you may find the ischange function...

7 years ago | 1

Answered
Define a new fitting function
Is your data stored as row vectors? If so, transpose them (using the .' operator) to be column vectors in your call to fit.

7 years ago | 1

| accepted

Answered
findLobes function on MATLAB_2019a
In order to use the findLobes function in Antenna Toolbox, its first input must be a polarpattern object. When you call findLobe...

7 years ago | 1

Answered
Formulation to Matlab code
There's no need to loop. The log and log10 functions can operate on arrays of data, and as long as you use element-wise multipli...

7 years ago | 0

| accepted

Answered
How can I which value that be used to calculate a function
Since you indicate that you're using release R2019a, call min with the 'linear' option and two output arguments. This will give ...

7 years ago | 0

Answered
change colormap of histogram2
Use the colormap function. First let's make the histogram2 plot. x = randn(5000); y = randn(5000); h = histogram2(x, y, 'Disp...

7 years ago | 0

| accepted

Answered
Why is my if statement breaking when condition is not met?
'false' is not the same length as 'true' so this will error. 'false' == 'true' Since you said "my code just quits completely" ...

7 years ago | 1

Answered
Function 'subsindex' is not defined for values of class 'ss'
You have defined a variable named pole. pole=(Vdo*Ido)+(Vqo*Iqo); The following line is being interpreted as an attempt to in...

7 years ago | 0

Load more