Answered
Why the decoding time is long compared to other methods?
Just because a file is on the filexchange doesn't mean that it's good quality or performant. You can tell from the first few lin...

6 years ago | 0

Answered
How can I create a MxN tall array, out of tall column vectors without known and not equal row numbers?
Instead of horizontally concatenating the results, which as you say is not possible since they don't have the same number of row...

6 years ago | 2

Answered
how to match different values of a matrix
So basically, you want mode(X, 1)

6 years ago | 0

| accepted

Answered
Vectorizing cumsum of table-vectors in a for loop
No, it's not possible to vectorise the loop unless you don't use tables. Even if you were using matrices in the cell array (whic...

6 years ago | 0

| accepted

Answered
Table - Variable names
Currently using Matlab R2018b; about to update to Matlab R2019b next month (September 2019) when my university's license renews ...

6 years ago | 1

Answered
convert min, hours to 00:00:00 format
demodata = [15; 45; 60; 240]; d = minutes(demodata); d.Format = 'hh:mm:ss' displays: d = 4Ă—1 duration array 00:15:00...

6 years ago | 1

| accepted

Answered
Pre-processing tall array / datastore data
I was worried that stacked tables would be slow relative to wide tables slow for what type operation. I would think that some t...

6 years ago | 0

Answered
How to implement MyClass that overloads all methods of a certain naitive class ?
You may want to derive your class from a built-in numerical type as explained here, this comes with all sorts of caveats (e.g. c...

6 years ago | 1

Answered
Sorting specific values of one matrix into another
It looks like you're dealing with graphs. Initially I thought you were dealing with directed graphs but your comment saying that...

6 years ago | 0

| accepted

Answered
So i wanted to add a column to this table.
Note that 1 to 203 having the same element makes that a half-period of 203, not 202. Simple way to create a column vector that ...

6 years ago | 1

| accepted

Answered
Compare two meshes for difference in values
Strange way to fill your structure! Why the []? [rs, wherein1, wherein2] = intersect(data(1).nums(:, 1:3), data(2).nums(:, 1:3)...

6 years ago | 0

| accepted

Answered
I want to reduce the repeated for loops as i explained below. any help??
One way: kk_indices = {setdiff(1:no_receivers+1,1:3); setdiff(1:no_receivers+1,ss-1:ss+1); setdif...

6 years ago | 0

| accepted

Answered
large excel data into multiple excel file using xlswrite ?
This should do it: folder = 'C:\somewhere\somefolder'; destname = 'splitfile%2d.xlsx'; largefile = readtable('yourexcelfile')...

6 years ago | 0

Answered
Does .xls file location matter in order to open and access data from the the file in matlab?
"Does .xls file location matter in order to open and access data from the the file in matlab?" No. Matlab can access files (not...

6 years ago | 0

| accepted

Answered
Unrecognized property 'TicksBetween' for class 'matlab.graphics.axis.Axes'.
As far as I know TicksBetween has never been a property of axes. You can set the location of the minor ticks by changing the Mi...

6 years ago | 1

| accepted

Answered
How to get polynomial (2nd order) excel trend–line coefficents in matlab?
As documented, the [p, S, mu] output of polyfit centers and scales the returned polynomial, so it returns a different polynomial...

6 years ago | 0

Answered
how can I print the plus automatically when using sprintf?
Read the documentation of the formatspec of any of the *printf function. It's explained right there under Flags: '+' Always pri...

6 years ago | 0

| accepted

Answered
Tracking instantiation when running an OOP program
With regards to "tracking the order of instantiations when OO code is run", the best way is to use the debugger with breakpoints...

6 years ago | 0

| accepted

Answered
filter string in the string
Using a regular expression: numbers = regexp(youstring, '\<\d*\.?\d+\>', 'once') which will extract any number not attached to...

6 years ago | 1

Answered
To RESHAPE the number of elements must not change.
Well, yes as the error message says, the number of elements must no change. You tell us that currently data2 has 168921 (* 1024)...

6 years ago | 1

| accepted

Answered
How to set up writetable so that the generated Excel file follows a certain display format?
Is this even possible using Matlab writetable? No, writetable just put data in the spreadsheet cells and never touches any form...

6 years ago | 3

Answered
Find the maximum series of ones in a vector of zeros and ones
"I would like to write a code to find the longest stripe of ones and the indexes" This is easily done: transitions = find(diff...

6 years ago | 1

| accepted

Answered
pairs of consecutive numbers
Well, you're almost there. When the diff is 1 or -1, this means that the number at the same index and the next one are consecuti...

6 years ago | 2

| accepted

Answered
find the element location
If find returns empty, then we can safely say that exact -10 is not in that first column. Perhaps the number you're looking for ...

6 years ago | 0

Answered
Set a matrix as index of map
Certainly, I would never had guessed from your initial description that you wanted to cache the output of some convolutions. As...

6 years ago | 1

| accepted

Answered
Does Matlab 2017a support Windows Server 2019?
You can find the system requirements for all versions there (may need to be logged into your mathworks account). Windows Server...

6 years ago | 1

Answered
writematrix as the recommended alternative to dlmwrite from R2019a
The documentation of writematrix does say that it writes numbers using the longG fomat. longG format is 15 digits of precision (...

6 years ago | 1

| accepted

Answered
indexing cellarrays of varying lengths in a cellarray
Are ther more performant ways to do so? A loop may be slightly faster as it doesn't have the overhead of the anonymous function...

6 years ago | 0

| accepted

Answered
Cells merging in table
a) varfun(@(c) {vertcat(c{:})}, table1, 'GroupingVariables', 'Var1', 'InputVariables', 5:width(table1)) b) varfun(@(c) {vertc...

6 years ago | 0

| accepted

Answered
concatenating and comparing two datsets
Something like this should work: dataset1 = readtable('C:\somewhere\your1stexcelfile.xlsx'); %may need extra options, dependin...

6 years ago | 0

Load more