Answered
How to draw a nicer graph
Use the xlim function to change the limits of your X axis. Also FYI you don't need to call plot twice. You can specify both a c...

5 dagar ago | 1

| accepted

Answered
How to make empty array of specific size?
Replace ClassName with the name of the class for which you want to create the empty array. But in order to use the empty method...

6 dagar ago | 0

Answered
ODE45 change y at event
You can use the ballode example as a model. That has an events function that stops the solver each time the bouncing ball touche...

6 dagar ago | 0

Answered
Explain this please?
c = 5 + (x < 2 || (e < pi)); Let's look at each section of the code inside the outer parentheses in turn. x < 2 Since x is eq...

6 dagar ago | 0

| accepted

Answered
Numerical Solution of 3rd order nonlinear differential equation
See this documentation page and this other documentation page for the techniques you'll need to use to solve this assignment. If...

7 dagar ago | 0

Answered
a='C:\code'. cd 'C:\code' works fine but cd a gives error: Name is nonexistent or not a directory
The following two cd calls do the same thing, changing directory to a directory named a. cd a cd('a') The following two cd ca...

8 dagar ago | 1

| accepted

Answered
Inverse of 5x5 matrix
The answer, written out as text, is about 731,000 characters long. >> length(char(Answer)) ans = 731073 A quick Google...

8 dagar ago | 0

Answered
This error was detected while a MEX-file was running. If the MEX-file is not an official MathWorks function, please examine its source code for errors. Please consult the External Interfaces Guide for information on debugging MEX-files.
As the message shown at the end of the crash log file indicates, if you were running a MEX-file that you wrote, downloaded, or w...

9 dagar ago | 0

Answered
Is it possible to pre-define user input values and skip input dialogs in a script?
Is there an easier method to do this? Or rather, is it even possible? Or am I better off just creating a custom version of each ...

9 dagar ago | 1

| accepted

Answered
GUI handles issue and behavior in 2019a but not in 2013b
How does that button launch the GUI that's not showing up correctly? Does it call the GUI's function file or does it simply use ...

9 dagar ago | 0

Answered
Changing the color of one particular node into different colors
What is the full and exact text of the error message you receive when you run that code? Include all the text displayed in red, ...

9 dagar ago | 0

| accepted

Answered
Triple integral (NO with @func)
integral3 doesn't care whether or not you can write your integrand in a particular way. All it cares about is that it can call t...

10 dagar ago | 0

Answered
XMIN must be a floating point scalar. Kindly help me in clearing the error.
Bz=@(y,x) <lengthy expression that doesn't depend on x OR y snipped> yl=@(x) sqrt(aj^2-x^2) M=integral2(Bz(x,y),-yl(x), yl(x),...

10 dagar ago | 0

Answered
fopen() in R2008 does not use variables?
The FName output in your uigetfile call is a cell array. When you use parentheses to index into a cell array the result is also ...

10 dagar ago | 0

| accepted

Answered
Why can't I solve this, it's simple. (Incorrect dimensions.... use .^) (I did then it says Invalid Operator.......)
The operator .^ (period followed by a caret) performs elementwise matrix power. There is no operator ^. (caret followed by a pe...

10 dagar ago | 0

Answered
maximum amount of data that matlab works with
The table to which Stephen Cobeldick linked is from 2013, so some of the rows on it are no longer applicable. In fact the only o...

11 dagar ago | 1

| accepted

Answered
license migration in system fault
See these two Answers posts: How do I transfer a Student or Home license to a new computer? How do I transfer an Individual or...

11 dagar ago | 0

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.

11 dagar 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/...

11 dagar 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...

11 dagar 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...

11 dagar 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...

11 dagar ago | 0

| 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...

11 dagar 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...

11 dagar 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...

12 dagar 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...

12 dagar ago | 0

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...

12 dagar 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...

13 dagar 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 ...

13 dagar 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...

13 dagar ago | 0

Load more