Answered
Using polyfit for two y values
I agree with dpb. You have two very distinct data sets so fit two lines, one to each data set. If you're trying to fit the line...

7 years ago | 0

| accepted

Answered
I keep getting ode45 (line 115) and odearguments (line 90) errors
Your x0 input to lab2 is a scalar so when you passed that into ode45 that tells ode45 that you have one initial condition. Beca...

7 years ago | 0

| accepted

Answered
specify array with values
ismember isn't the right tool for this task. Use the greater-than (>) and less-than (<) operators. rng(0, 'twister'); x = rand...

7 years ago | 0

| accepted

Answered
Command Windows and editor in the same page
From the description you've undocked the Editor from the Desktop. As the next-to-last row in the first table on this documentati...

7 years ago | 5

| accepted

Answered
How to turn a column of seconds into the datetime-type?
There's no need to split the current date and time into parts to solve this. Let's make a reference datetime. N = datetime('now...

7 years ago | 1

Answered
graph theory - remove several edges
Looking at its documentation page the rmedge function for graph objects does not have a syntax that accepts four input arguments...

7 years ago | 0

| accepted

Answered
Knuth Shuffle key-based
You want to control the random number generator, to allow you to generate random numbers repeatably? Use the rng function as sho...

7 years ago | 0

Answered
Create new variable when movevar can't find a variable in a table.
Use ismember to determine if the variables you want to move/add are present in the table. The output from ismember will be a log...

7 years ago | 0

| accepted

Answered
Tabs instead of spaces in editor setting by command line
However, it fails to remember that I have done so the next time I start Matlab (this is a recurring problem for many things with...

7 years ago | 1

| accepted

Answered
Is there anyway I can convert matlab code to java
See MATLAB Compiler SDK.

7 years ago | 0

Answered
when has the class "mlreportgen.utils" been published?
The documentation for the mlreportgen.utils.TableSlicer class state that it was "Introduced in R2018b" at the end of the page.

7 years ago | 0

| accepted

Answered
Can not find a toolbox, despite proper installation and appropriate license?
According to the Data Acquisition Toolbox Release Notes the Analog Output Generator App was introduced in release R2019a. The Ap...

7 years ago | 0

| accepted

Answered
degrees2dms Syntax
What you've written: degrees2dms([C(i,1),C(i,2),C(i,3)]) = A(i,1) attempts to create a variable named degrees2dms and as...

7 years ago | 0

Answered
Converting date range from numeric to date format in mat file
If you want to store date and time data in MATLAB I strongly recommend storing it as a datetime array or in a timetable with a d...

7 years ago | 0

Answered
Error using "Save" Command.
Your names variable is a string array. This means names(j) is a string. Compare: c1 = 'abc'; s1 = string(c1); c2 = [c1 '123']...

7 years ago | 0

| accepted

Answered
How to change the value of variables in base workspace within a function?
What is NPSN? Specifically, is it a handle object that has properties and methods that allow you to query and manipulate a physi...

7 years ago | 1

Answered
plot this alternative function
Are you certain you've implemented the formula correctly? Your expected result has a very different value for t = -5 than for t ...

7 years ago | 0

Answered
can you provide wavelet toolbox.
Quite probably, via the MathWorks Store. Though before purchasing via the Store, if you are using a license administered by your...

7 years ago | 0

Answered
error using the polyder
You've likely written or downloaded a conv.m that's taking precedence over the conv function included in MATLAB. Line 10 of the ...

7 years ago | 1

| accepted

Answered
Check IN WHICH CASE symbolic logical expression is true
No, that's not possible because as you've stated your solution it's not true. c can be greater than 0 even if b is negative. a ...

7 years ago | 0

Answered
Doing matrix multiplications and taking inverses of huge matrices? Sparse matrices too slow
DO NOT invert matrices in MATLAB unless you absolutely, positively require the explicit inverse. [And even then, don't.] It loo...

7 years ago | 1

Answered
Status of the order 11625345
I believe the confirmation is sent out via email shortly after the order is accepted. Have you checked your spam folder to make ...

7 years ago | 0

Answered
How to fill up a huge/very large matrix, with elements from another matrix in a time efficient way?
Your 90000-by-300 matrix isn't too big. If it's a full real double precision matrix, it'll take up a couple hundred MB of contig...

7 years ago | 0

| accepted

Answered
sorting unique date by time.
If you were to store your data in a table or timetable array, the operation you're describing is unstack. The first example on ...

7 years ago | 0

Answered
Maximum occurrence value of histogram
Call max (with two outputs, if you want both the highest bin count and the bin that has that count) on the Values or BinCounts p...

7 years ago | 0

Answered
How to automatically change functions in a M-file that have been removed/changed between two releases of Matlab
As Adam said this is going to be a major undertaking, and quite possible an impossible one (as written.) The Release Notes will...

7 years ago | 0

| accepted

Answered
Assign width of Bin Edges within rainflow matrix c = rainflow(x)
As written, the BinWidth property of the histogram object is determined by the BinEdges that you specified when you called histo...

7 years ago | 0

Answered
Help with matrix manipulation
Since this seems like it might be a homework assignment, I'm simply going to point to one of the functions that may help you. Ta...

7 years ago | 0

Answered
why we use flag in matlab code and if we have sequence of integer then how the flag(integer)=1 ?
This (note the modified first line): intger=[2,6,8,9] flag(intger)=1 uses linear indexing to assign to elements 2, 6, 8, and ...

7 years ago | 1

Answered
How to find magnitude of an array of 17 vectors
If you're using release R2017b or later, use the vecnorm function to compute the norm of vectors stored in an array.

7 years ago | 1

Load more