Answered
How to get the equation for trained Neural Network Toolbox
You haven't shown your network so I can't be certain but I'm guessing you forgot the pre- and post-processing steps.

7 years ago | 0

| accepted

Answered
is there a way to get generalised code to take numerical inputs after a general solution is shown?
For this particular problem, you can perform the computations numerically as Naveen Venkata Krishnan suggested. But if you need/...

7 years ago | 0

Answered
How to calculate determinant of matrices without loop?
This line of code: d = det([a(:,:) ; b(:,:) ; ons(:,:)]); Stacks all of a on top of all of b, and stacks that on top of all of...

7 years ago | 1

Answered
Convert binary file from hex little endian to decimal
The fopen function allows you to specify a machine format when you open the file for reading. Then you can read the data in usin...

7 years ago | 0

Answered
Error: Undefined function 'preprocessData' for input arguments of type 'cell'.
The preprocessData function is a supporting function that is part of that example and is not on the MATLAB path in general. Scro...

7 years ago | 6

| accepted

Answered
textscan doesn't read the entire .m file
Rather than trying to save the contents of your code files as variables, why not set up a source control system? That way you ca...

7 years ago | 1

Answered
Variable updates for a brief moment before returning to the original value.
Does the get_PowerAvailable method of this class return a number, an instance of this class, or something else? When you say "r...

7 years ago | 0

Answered
Warning with the intrinsic detrend function.
According to the Release Notes the ability to remove piecewise polynomial trends for higher degree polynomials was introduced in...

7 years ago | 0

| accepted

Answered
randint is undifined in 2018a
According to the Communications Toolbox Release Notes the randint function was removed in release R2016b. The suggested replacem...

7 years ago | 1

| accepted

Answered
converting a table (having as first col a datetime col) col into a datetime (having both date & time in its composition)
Convert your text data into a duration array, specifying an 'InputFormat', and add the datetime and duration arrays together. F...

7 years ago | 0

Answered
Creating a new data table from existing table based on condition.
See the examples on this documentation page, particularly the "Select Rows with Logical Indexing" section. Note that this is th...

7 years ago | 0

Answered
Analyzing data using &&
Your variables thresh_neg and thresh_pos are the min or max respectively of a vector of data and so are scalars. This means the ...

7 years ago | 0

Answered
for en engineering class i need to create a function that will send an email when under specific conditions, this is what ive written so far but it keep getting the error 'to many outputs'
The documentation for the sendmail function does not list any syntax that has an output argument. Eliminate the output arguments...

7 years ago | 0

Answered
Transpose a vector under certain conditions
If this were not a homework assignment, you'd probably want to use the isrow, iscolumn, and/or isvector functions. Since I'm gu...

7 years ago | 0

| accepted

Answered
Can not use the publish pdf function!
The names of functions or function files in MATLAB cannot contain spaces or periods. Rename your file to remove the spaces and p...

7 years ago | 0

| accepted

Answered
My Matlab R2019b runs extremely slow on my Macbook MacOS 10.14.16
Are you using the Magnet app or something similar? If so try turning Magnet off.

7 years ago | 4

Answered
what does the string #ok<NASGU> mean in the code editior
The %#ok pragma indicates that a particular Code Analyzer message has been suppressed on that line of code. See the "Adjust Code...

7 years ago | 2

Answered
Using a variable with fwrite and next line
The stated purpose for the fwrite function, according to the top of its documentation page, is to "Write data to binary file" (e...

7 years ago | 0

| accepted

Answered
How to know the size of pixel in mm/cm/m if i create randomly distributed circles or rectangulars ?
What's the height of the object in this picture in meters? How can you tell just from the pixels in that image whether it's a p...

7 years ago | 2

Answered
Graph Shortest Path (Non-Negative Directed Graph)
Rather than using the graphshortestpath function from Bioinformatics Toolbox, I recommend creating a graph or digraph object fro...

7 years ago | 0

Answered
Representing Symbolic Variables as Equations in Live Scripts
Hmm. It looks like texlabel doesn't do any special processing for fractions. That kind of makes sense; ideally you wouldn't want...

7 years ago | 0

| accepted

Answered
What is best way to define 2 way dependence between class properties
You have essentially two "views" into one underlying "truth". While you can ignore the warning, I would make both the "view" pro...

7 years ago | 1

| accepted

Answered
ode45 Argument Error On Program Restart
Stop using global variables. Your base function sets them to some values that your assignment requires, but that doesn't preclud...

7 years ago | 0

Answered
Negative Value when using Trapz
Your x vector is sorted descending. >> issorted(x, 'ascend') ans = logical 0 >> issorted(x, 'descend') ans = logic...

7 years ago | 2

Answered
How to sdcsd ?
Rather than making a large number of variables (which will clutter your workspace and be difficult to work with) instead I recom...

7 years ago | 0

Answered
Coder CppNamespace is an Unrecognized Property
According to the Release Notes I believe that functionality was introduced in release R2019b. You're using release R2019a.

7 years ago | 0

| accepted

Answered
question about indexing of logic matrix
This is linear indexing into a logical array. A = [true false] B = randi(2, 5, 5) C = A(B) The elements of C that are true (...

7 years ago | 0

Answered
Deleting some parts of a figure
timesInRange = (5 <= t) & (t <= 9); plot(t(timesInRange), y(timesInRange)) Depending which of the endpoints you want to keep, ...

7 years ago | 1

Answered
How to change variable size(s) with timers without causing errors?
It depends on how you set the timer object's TimerFcn property. Rather than depending on a variable in the base workspace, base...

7 years ago | 0

Answered
Documentation error for polyval ouput?
Thank you, I've reported this to the documentation staff.

7 years ago | 0

| accepted

Load more