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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

5 years ago | 0

Answered
I get wrong value
I take it that the A and B variables are your attempts to convert the first two equations into the coefficient matrix and right-...

5 years ago | 0

Answered
Why does Matlab standalone application waits at the starting?
Starting the standalone application is like starting MATLAB. So when you compare the time to start the application to the time t...

5 years ago | 0

| accepted

Answered
Shortkey to open previous Editor tab?
Opening the Preferences, selecting the Keyboard > Shortcuts entry under MATLAB, and searching for "tab" found the Previous Tab a...

5 years ago | 0

| accepted

Answered
switching from 2013b VERSION TO 2020. Accessing figure handle from plot command
Prior to the major graphics changes in release R2014b legend created an axes. As of release R2014b it now creates a legend objec...

5 years ago | 0

Answered
Simple xline with all options
From the documentation, note that labels comes after the LineSpec but before any name-value pair arguments as stated in the four...

5 years ago | 1

Answered
Can i get a trial extension, i will have money soon, am out now., early November.
Please contact Customer Service with this request.

5 years ago | 0

| accepted

Answered
making repetitive code less clunky
I would try using discretize to bin the data into groups then use groupsummary to compute the max on each group.

5 years ago | 1

Answered
Write a function taking three variables as input and returning the minimum of them. i've tried doing this-
See this section of the documentation for instructions on how to create a function with input and output arguments in a file.

5 years ago | 0

Answered
Out of memory. The likely cause is an infinite recursion within the program. Error in resample1 (line 6) y = resample1(x, type, shift, extmod);
I'm not familiar with this third-party Contourlet Toolbox (you may need to talk to the author of that toolbox for help) but this...

5 years ago | 0

Answered
Incorrect use of '=' operator. Assign a value to a variable using '=' and compare values for equality using '=='.
-dcdt(2)=(1/theta(7).*dcdt(1))+(1/theta(8).*dcdt(3))+(theta(9).*c(1)); Assigning to element 2 of the variable dcdt is allowed. ...

5 years ago | 0

Answered
Is there an alternative to eval in a struct?
For most of what you're trying to do you could use setfield. subject = {'subj_1','subj_2','subj_3'}; runs = {'rest','task1','t...

5 years ago | 0

Answered
why do I get this error? Indexing
I'm guessing you have: A = duration([1; 2; 3; 4], [5; 6; 7; 8], [9; 10; 11; 12]) C = {'03:07:11'; '01:06:12'} You can't use C...

5 years ago | 0

Answered
Deleting from an array
See this documentation page for examples of deleting rows or columns from a matrix.

5 years ago | 0

Answered
Sort in descending order without using built-in sort function
Your code does not satisfy the requirements of the assignment. The problem statement says: Create a function file that accepts ...

5 years ago | 0

Load more