Answered
What is the cost estimation for MATLAB licence with 30 users?
You will need to contact the Sales department for an answer to this pricing question.

5 years ago | 0

Answered
sort matrix by absolute value
Specify the 'ComparisonMethod' name-value pair argument. rng default A = randi([-10 10], 5, 5) [values, locations] = sort(A(:...

5 years ago | 1

Answered
Array indices must be positive integers or logical values.
for i=1: 100 set(p,'XData', cos(t(i)),'YData',sin(2*t(i))); set(s,'XData', cos(t(100-i)),'YData',sin(2*t(100-i))); Wh...

5 years ago | 1

Answered
Making a script computationally feasible
What is your end goal? Is it to assign 36 of the electric vehicles to the 36 households, one per household, to minimize the ener...

5 years ago | 0

| accepted

Answered
addedge function not working
The addedge function is defined for graph and digraph objects. It is not defined for double arrays. You need to build a graph or...

5 years ago | 1

Answered
what will be the code for universal time in floating point days for the date1/1/2014 on 00:00:00 with reference time and date since 00:00:00 on 1/1/2000
The easiest way to create a variable to represent that date will be the datetime function. The caldays function may also be of u...

5 years ago | 0

Answered
Matlab for Apple Silicon Macbook
See the system requirements page.

5 years ago | 0

| accepted

Answered
Can I use the Home Edition including both numeric and symulink aspects when the resultant material might be initially published on the Preprint Archive and possibly later as a book.
If you want an official answer as to whether your planned course of action is in accordance with the license terms, please conta...

5 years ago | 0

Answered
"Create vectors from each column using column names" option greyed out, how to access it?
Are the column names in the spreadsheet valid MATLAB identifiers (if you passed them to isvarname would it return true?)

5 years ago | 0

Answered
removing rows from a timetable
Do you want to remove the data from 1985 from your timetable or do you want to remove the first twelve rows from it? In this par...

5 years ago | 0

Answered
Home License add-on List
If you're asking what MathWorks products are available for use with a Home Use license, see the "See available products" button ...

5 years ago | 0

| accepted

Answered
Subplot with odd number of plots
Draw out a 3-by-4 grid of subplot axes. The first two subplots use positions 1-2 and 3-4. The next two use 5-6 and 7-8. The fina...

5 years ago | 3

Answered
Error: Function definition not supported in this context. Create functions in code file.
In a classdef file, functions that you want to be methods of the class need to be in a methods block. Note that in the example i...

5 years ago | 1

| accepted

Answered
error with sprintf add operation between 2 terms resulting in string
Do you want to concatenate a number and a piece of text together? a = '1234'; % a is a char vector b = 5; c = [a, num2str(b)]...

5 years ago | 1

Answered
How to fix it ? Warning: Do not specify equations and variables as character strings. Instead, create symbolic variables with syms. > In solve>getEqns (line 455) In solve (line 227)
As per the warning at the top of the documentation page for the dsolve function: "Support for character vector or string inputs ...

5 years ago | 0

| accepted

Answered
Subplot with table of datetime and double
Turn your table arrays into timetable arrays using table2timetable. Once you have a collection of timetable arrays, synchronize ...

5 years ago | 0

| accepted

Answered
convertion ECG signals to IEEE754
If your signals are stored as double or single arrays, congratulations you're done. They are stored in IEEE 754 double precision...

5 years ago | 0

Answered
Can I tell Matlab not to use contiguous memory?
You know, I really want to read the newest Brandon Sanderson novel. But I don't have room on that shelf in my bookshelf for the ...

5 years ago | 1

Answered
How to implement mass balance in ODE solver?
I think you could adapt the Robertson problem example from this documentation page.

5 years ago | 0

| accepted

Answered
Using a For Loop to combine a range of bins in a histogram
Create one histogram and retrieve the edges of the bins. x = randn(1, 100); h = histogram(x, 11, 'FaceColor', 'k'); % use 11 b...

5 years ago | 0

Answered
Moving sum of 4 subsequent observatins
Use the movsum function.

5 years ago | 0

| accepted

Answered
Clock jumps forward and back in time
My guess is that you're encountering the situation described at the end of page 7 of the chapter on ODEs in Cleve's Numerical Co...

5 years ago | 0

| accepted

Answered
Cant figure out the "reshape" function
As others have said, reshape reshapes the data in the array down columns then across rows and out pages. A = 1:24; B = reshape...

5 years ago | 1

Answered
for loop doesn't repeat the operation (Matlab)
Notice that the first n in the line "n = n+1;" is underlined? If you hover over that variable, you will see a Code Analyzer mess...

5 years ago | 0

Answered
Insert multidimensional array into function handle
syms c o = [ c 0 0; c 0 2; c 1 1; c 1 2; c 2 2; c 2 3; c 3 0; c 3 1; c 3 2; c 3 3 ]; f = @(c,x,y) c.*(x+y); % Use element-wise...

5 years ago | 1

| accepted

Answered
Converting a Column to Numeric for Date/Time Format
If you use the Import Data tool (in the Variable section on the Home tab of the toolstrip) you can import the data directly as a...

5 years ago | 1

| accepted

Answered
Is there a way to call a part of a function using an index?
Do you mean you want to plot position6(1) versus position6(2) in the first call, position6(3) versus position6(4) in the second,...

5 years ago | 0

Answered
How do I convert fractional display to decimal display ?
Call double or vpa on your symbolic variable.

5 years ago | 1

| accepted

Answered
IEEE 754 Double-Precision and Machine Epsilon
From this post on Cleve Moler's blog: "Either eps/2 or eps can be called the roundoff level." You're using eps/2.

5 years ago | 0

| accepted

Answered
MATLAB Live Script Editor Change Font
As of release R2021a you can change the Live Editor font settings programmatically.

5 years ago | 4

Load more