Answered
Can you temporarily remove a column from timetable?
Selecting only variables of a certain type is easy if you index into the |timetable| using a |vartype|. Adding the variables tha...

6 years ago | 0

Answered
I keep getting "Index in position 1 is invalid. Array indices must be positive integers or logical values." error when trying to use the plot function
On line 83 you've defined a variable named plot. You can't call the plot function because of this. Change line 83 and rename and...

6 years ago | 0

| accepted

Answered
Thingspeak Server Uptime and Lost Data
The Application Status page indicates ThingSpeak is operating normally, and the most recent event in the Incident History that m...

6 years ago | 0

| accepted

Answered
Problem after installing matlab 2020
None of those six bullet points indicate that anything is wrong with your installation. Certain capabilities of the products you...

6 years ago | 1

Answered
Hybrid Matrix (strings, double elements)
Your concatenation operation (X = [A B C D];) converts the double arrays into string arrays. Instead what you probably want is a...

6 years ago | 1

| accepted

Answered
execute SCRIPT feature as a function:
feature is an undocumented built-in function in MATLAB. Rename your feature.m file that is shadowing that built-in function.

6 years ago | 0

| accepted

Answered
Remove leading zeros from dates strings
Use M instead of MM and d instead of dd in the input format. According to the description of the Format property on the document...

6 years ago | 0

Answered
How to use integral with an implicit function defined through a sum
By default, integral will call your function with an array and expects your function to return an array of the same size as the ...

6 years ago | 0

| accepted

Answered
Time axis as x axis
The documentation page for the plot function states, in part: "plot(Y) creates a 2-D line plot of the data in Y versus the inde...

6 years ago | 0

Answered
Renaming headers in Table
I'm not sure I see the problem. A = magic(6) V = ["ground_force_px", "ground_force_py", "ground_force_pz", ... "ground_fo...

6 years ago | 0

| accepted

Answered
Not able to convert array to datetime, help, please!
fechaDef = ... [{'9999-99-99'}; {'6/26/2020' }; {'9999-99-99'}; {'9999-99-99'}; {'9999-99-99'}] fechaDef2 = replace(fechaD...

6 years ago | 1

| accepted

Answered
Not getting expected graph. Only straight lines are coming but there should be curve .
The values of the first component of the solution are so much larger in magnitude than the others that even if they did vary (wh...

6 years ago | 1

| accepted

Answered
17 linear and non linear equation
function Algebric_equations() guess=[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]; [result,fval,exit,output]=fsolve(@Algebric_equations,...

6 years ago | 0

Answered
I need matlab code for optimization of the particle swarm (PSO)
You can use the functions from Global Optimization Toolbox to write your code.

6 years ago | 0

Answered
Renewal of MATLAB license which was purchased in 2015 April
Please contact Customer Service using the telephone icon in the upper-right corner of this page for help renewing your license.

6 years ago | 0

Answered
How to overwrite the array elements of File2.m in File3.m in matlab?See the details
I recommend against storing your data in a program file and trying to modify the file like this. Instead store your data in a da...

6 years ago | 0

Answered
change parameter values in anonymous function
Once you've created an anonymous function handle that "remembers" a particular value, you cannot change that "remembered" value....

6 years ago | 0

Answered
plot Dynamic horizontal line
You want something like this? % Sample data x = 0:360; y = sind(x); % Create the sine curve with one marker h = plot(x, y...

6 years ago | 2

| accepted

Answered
get result of test.verifyThat
I recommend specifying a diagnostic in your verifyThat call. See the section of the example on that page starting from the last ...

6 years ago | 0

Answered
undefined function "bitsliceget"
This function requires its first input to be a fixed-point fi array. It will not work with a plain numeric array as the first in...

6 years ago | 0

Answered
How to load "Residential Refrigeration Unit" which is avaialble on website but unable to load in MATLAB 2020a version?
That example is part of Simscape Fluids. You will need to have that product installed to have access to that example and that mo...

6 years ago | 0

Answered
Undefined function 'mtimes' for input arguments of type 'cell'.
Matrix multiplication isn't defined for a cell array. No arithmetic operators are. Unlike a double or single precision matrix, t...

6 years ago | 1

Answered
Unnormalizing a matrix from eig function
Q = v./max(v, [], 1); Display it using format rat and you'll see it matches the form you wanted (modulo the fact that you swapp...

6 years ago | 0

| accepted

Answered
Regarding accessing specified link for my research work
The message I see when I go there is "This file has been removed from File Exchange. Please search File Exchange to find altern...

6 years ago | 0

Answered
When does randomness enter a shuffled "deck" of coin tosses.
You're trying to simulate a perfect riffle shuffle? function out = shuffle(in) out = in; % Make out the correct size and type ...

6 years ago | 0

Answered
Sorting specific dates from Datetime array
Let's create some sample time and date data spanning from five hours (300 minutes) ago to four hours (240 minutes) from now. N ...

6 years ago | 0

Answered
(2016a) How to plot datetime versus numbers? Error: "Data inputs must match the axis configuration. A numeric axis must have numeric data inputs or data inputs which can be converted to double."
For your first question, you've specified the format that datetime should use to interpret the representation of the time that y...

6 years ago | 0

| accepted

Answered
I'm not sure it's true. If I have a mistake, can you fix it...
f0=-4*z*exp(-x^2*y-z^2)*cos(x^2*y)-10*cos(x^2*y)*y*x^2+4*sin(x^2*y)*x^4*y^2+4*cos(x^2*y)*x^4*y^2-sin(x^2*y); This multiplies th...

6 years ago | 0

Answered
Finite differences of a complex function
For real numbers, the operators ' and .' give the same result. xR = 1:10; y1R = xR' y2R = xR.' isequal(y1R, y2R) For comple...

6 years ago | 0

Answered
If condition with multiple OR statements
Let's take a look at a shorter version of your code. for d = 1 : 3 if (d ~= 1 || d ~= 3) disp(d) end end W...

6 years ago | 1

| accepted

Load more