Answered
Replace array elements with strings
I recommend using a table array to store your data of mixed types. load patients T = table(LastName, Age, Smoker); head(T) % ...

4 years ago | 0

Answered
"save as" interface
Why not just use the uiputfile function included as part of MATLAB?

4 years ago | 0

| accepted

Answered
When I import this function, there is a error when I run this codes.
Is this line: importfile('gravity_anomaly_.mat') inside the importfile function or do you run this in the Command Window? I s...

4 years ago | 0

| accepted

Answered
What Mistake I am making in the code
FYI you can perform a swapping operation in one step without needing an explicit temporary: x = (1:10).^2 toSwap = [4 7] x(to...

4 years ago | 0

Answered
how can I use mexw32 files on my 64-bit matlab?
Ask the person from whom you obtained the .mexw32 file (a 32-bit Windows MEX-file) for the corresponding .mexw64 file (a 64-bit ...

4 years ago | 0

Answered
renaming a variable, or creating a dynamic variable name
If the elements of sampleNames are valid MATLAB identifiers I think Walter Roberson's suggestion to store each table in a field ...

4 years ago | 1

Answered
Building a Markov Chain Graph (directed graph) with large number of nodes/states
What layout are you using to have MATLAB determine the coordinates at which the nodes should be plotted? Depending on how sparse...

4 years ago | 0

Answered
How to write MATLAB code for system of 4th order ode?? Plz help me guys
Follow the model of the "Nonstiff van der Pol Equation" and "Nonstiff Euler Equations" examples on this documentation page. Conv...

4 years ago | 0

Answered
The variable already defined ,but in the design apps it cannot recognized the variable.
Energy = app.EnergyUsageEditField; Bill = Tariff(Energy); You're passing the handle of an edit field in your app into Tariff. ...

4 years ago | 0

| accepted

Answered
Matrix math with Datetime arrays
Support for implicit expansion for certain operations on datetime, duration, calendarDuration, and categorical arrays was added ...

4 years ago | 0

| accepted

Answered
Plotting complex function with real and imaginary parts, but also with respect to the variable itself
Something like this? x= [25 40 50]; fx= [49.19-44.57i, 78.70-71.31i, 78.70-71.31i]; plot3(x, real(fx), imag(fx))

4 years ago | 0

Answered
Hello! My script is correct to what I see and know but it is still not displaying the x-axis names of the categorical data.
Since you didn't tell MATLAB to hold the axes each of your bar calls resets most of the axes properties to their default states ...

4 years ago | 0

Answered
When plotting the symbolic version on the curve fit polynomial they do not match.
Don't copy the coefficients. You're not copying them to their full precision. Instead export the fit from the app (or generate c...

4 years ago | 1

| accepted

Answered
Dot notation with multiple dots in it
Dot has several different meanings in MATLAB. It can be used for method invocation as you mentioned. It can be used for property...

4 years ago | 0

| accepted

Answered
Convert netcdf time ('minutes since 2013-2-1 00:00:00') to actual date
I recommend using datetime rather than datenum. netcdf_time = 60:60:300 % Sample data epoch = datetime(2013, 1, 2) % Assuming ...

4 years ago | 1

| accepted

Answered
Sum data based on buckets/edges (SumIF?)
See the groupsummary function. The "Specify Group Bins" example on its documentation page looks very similar to what you want to...

4 years ago | 0

| accepted

Answered
'm new to matlab what these symbols mean ?
If you forced me to guess I'd say that those terms are probably defined in "the previous script" but I can't be certain. You pro...

4 years ago | 0

Answered
Undefined function 'times' for input arguments of type 'matlab.ui.control.NumericEditField'.
As I answered on your other post, you cannot perform arithmetic on an object handle. You will need to perform arithmetic on the ...

4 years ago | 2

| accepted

Answered
How to solve : Undefined function 'rdivide' for input arguments of type 'matlab.ui.control.NumericEditField'. Error?
You cannot perform arithmetic on an object handle. You will need to perform arithmetic on the Value property of that handle. As...

4 years ago | 2

| accepted

Answered
Get the inverse of polyshape?
Do you want to get the vertices from the polyshape object or from the plotted Polygon object? pgon = polyshape([0 0 1 1],[1 0 0...

4 years ago | 0

Answered
Unable to use a value of type cell as an index
Don't use length as a variable name. If your code does, you will not be able to call the length function. length = perimeter/...

4 years ago | 0

Answered
Parpool threads killed when scaling up
What operating system? If you're running on Linux, check if MATLAB got killed by the out of memory killer.

4 years ago | 1

| accepted

Answered
Hi, I am looking to purchase Matlab license and would like some advice on which will be a better option?
Because there are many different types of licenses as Walter Roberson described, I recommend contacting the MathWorks Sales depa...

4 years ago | 0

Answered
Is Matlab compatible with Mac OS Monterey?
The System Requirements page indicates the current release of MATLAB (release R2021b) is supported on macOS Monterery (12). The ...

4 years ago | 0

| accepted

Answered
What is the difference between v(i):v(j) and v(i:j)?
v = (1:10).^2 If you ask for v(4:7) you're asking for the fourth, fifth, sixth, and seventh elements of v. x1 = v(4:7) % [16 2...

4 years ago | 1

Answered
Where can download the pdf manual on <Creating Graphical User Interfaces> for MATLAB R2018a?
From the main documentation page (https://mathworks.com/help) click on "Other Releases". Select R2018a. Select MATLAB. On th...

4 years ago | 1

| accepted

Answered
How to differentiate between an index and a value in a function?
Please show us exactly how you call my_newton_raphson and how you construct the input arguments you pass into my_newton_raphson....

4 years ago | 0

Answered
Detect Mean Shift and Remove Outliers
Try the rmoutliers function or the Clean Outlier Data task for the first part of your question. Try the ischange function or the...

4 years ago | 0

Answered
pwd doesn't give actual location of the file that called it
Giving the location of the currently running file is not the purpose of the pwd function. Its purpose is to give the location of...

4 years ago | 0

Answered
Knob for Matlab App Designer to move like the knob for a microwave
Do you mean you want the value of the knob to decrease over time? You should be able to do that by changing its Value property, ...

4 years ago | 0

Load more