Answered
supporting files for matlab example
Open the example Live Script in the Live Editor. The helper functions are in the same directory as the example. When the example...

7 years ago | 0

Answered
confusion related to 'for' loop.
Do you need the elements in a cell array, or is having them in a regular vector sufficient? epsilon = 2; thepowers = 1:8; p =...

7 years ago | 1

Answered
How to normalize all the matrices in a loop so that each row sums up to 1
The sum of the absolute values of the elements of a vector is the 1-norm. You can use the normalize function introduced in relea...

7 years ago | 1

Answered
There is an error in exp function but it doesn't tell what the error is?
M(1, 1) refers to one element in M. I suspect one of a and DivW is not a scalar (I'm guessing one of them is 1-by-61, the size ...

7 years ago | 0

Answered
Problem integrating a function handle which contain an integral
What requirement does integral2 place on the integrand function you pass into it as the first input? From the documentation: "Th...

7 years ago | 0

Answered
Sparse to full matrix conversion not working...
Something is definitely odd here. Your A and AA should be full matrices, not still sparse. Let's make sure you're calling the c...

7 years ago | 0

| accepted

Answered
I am trying to make an algorithm within Matlab. I have 4 constraints that I need to hit: any suggestions are appreciated.
No, not without involving negative amounts of some of these foodstuffs. Consider if you ate just one of these entries exclusive...

7 years ago | 0

Answered
Problems to install matlab in windows 10 for user
Try the steps in this Answer. If after following those instructions MATLAB still continues to prompt you to activate every time ...

7 years ago | 1

| accepted

Answered
How to plot an alphaShape to a specific axes in app designer
The plot method of alphaShape objects does not accept an axes handle as its first input. Instead you'll need to specify the uiax...

7 years ago | 3

| accepted

Answered
Conversion function taking a very long time to run in loop, anyway to improve?
Call asind on arrays of data instead of on scalars. Use the hypot function if your data is real. n = 100; X = rand(n); Y = ra...

7 years ago | 0

Answered
Error in first line of edfread.m
Leave the first line of the function in the declaration as the following: function [hdr, record] = edfread(fname, varargin) Wh...

7 years ago | 1

| accepted

Answered
how to plot fewer marker ?
The MarkerIndices property was introduced in release R2016b. If you're using an older release, consider upgrading to R2016b or a...

7 years ago | 1

Answered
Create cell array from 00.00 to 23.59
minutesAfterMidnight = minutes(0):minutes(1):(hours(24)-minutes(1)); minutesAfterMidnight.Format = 'hh:mm'; firstTen = minutes...

7 years ago | 0

Answered
How can I bin Data
If I understand your application correctly use histcounts2 to bin the data. The fourth and fifth output are the indices of the b...

7 years ago | 0

Answered
How to create class from .txt
While you can create individual variables from the rows or columns of a matrix, doing so is strongly discouraged. If your matrix...

7 years ago | 0

| accepted

Answered
Custom function App Designer [Matlab] [App Designer]
No, the app object is not optional. You must pass it into the method in order to invoke the method. What you're seeing is one o...

7 years ago | 1

| accepted

Answered
Report Generator Program Example https://uk.mathworks.com/help/rptgen/ug/create-a-report-program.html
That documentation page is for the most recent release of MATLAB Report Generator, currently release R2018b. The Release that yo...

7 years ago | 0

| accepted

Answered
integers error in matlab
n= (( 4.6 / 2 ) / 0.1 ) + 1 In theory, n is an integer value, specifically 24. In practice, because neither 4.6 nor 0.1 are ex...

7 years ago | 0

Answered
I need to know how to organize a find statement into a set order with characters instead of it's number's. I want information to come out like below.
discretize your data. A=[18 33 31 34 15 37 10.5 48 50 38 35 39 42 33 ... 31 1 5 9 13 11 27 35 -1 46 22 6 19 36]; volt=rou...

7 years ago | 1

| accepted

Answered
Online access to MATLAB
According to the MATLAB Online product page, if you are current with a MATLAB and Simulink Student Suite license or a MATLAB Stu...

7 years ago | 0

Answered
I do not know what's wrong with my code
If you receive an error when running your code, post the full text (everything displayed in red) of the error message you receiv...

7 years ago | 0

Answered
Not enough input arguments
Your function is declared to accept six input arguments: function E = ecc_anomaly(tow, toe, GM, sqrta, M0, ecc) When you call ...

7 years ago | 1

| accepted

Answered
Class method calls method of other instantiated class
If the object stored in the offer property of the Operator class is a CentralMarket object, this should work. function submitOf...

7 years ago | 0

| accepted

Answered
How to generate a file name by combining variable characters based on the input of the matlab?
If you're using a sufficiently recent release of MATLAB, you can combine string, char, and numeric data using +. name='abc'; a...

7 years ago | 0

Answered
audioDatastore Variable or Function undefined
The note at the end of the documentation page for the audioDatastore function states "Introduced in R2018b". If you are using an...

7 years ago | 1

Answered
Peak "coordinates of a histogram
Are you creating the histogram (the graphics object) or binning the data using histcounts? In the former case. retrieve the Bin...

7 years ago | 1

Answered
How to make functions outside of Class folder hidden from access
Your class is a handle class. As stated in the "Handle Class Methods" section of this documentation page that means you inherit ...

7 years ago | 1

| accepted

Answered
WHY LOGICAL INDEXING REDUCE TOTAL ROW COUNT
I suspect KSS_valid_WithNan didn't exist before that last line and that the last element of NonNanPVT_Logic == 0 was false. x =...

7 years ago | 1

| accepted

Answered
Class 'dependent' property warning
I believe one of the reasons (maybe the main reason) for that Code Analyzer warning is to avoid accidentally getting into a recu...

7 years ago | 0

Load more