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

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

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

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

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

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

Inverse of 5x5 matrix

8 dagar ago | 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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