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

casi 7 años hace | 0

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

casi 7 años hace | 2

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

casi 7 años hace | 0

| aceptada

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

casi 7 años hace | 0

| aceptada

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

casi 7 años hace | 1

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

casi 7 años hace | 1

| aceptada

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

casi 7 años hace | 0

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

casi 7 años hace | 1

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

casi 7 años hace | 0

| aceptada

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

casi 7 años hace | 1

| aceptada

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

casi 7 años hace | 0

| aceptada

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

casi 7 años hace | 0

| aceptada

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

casi 7 años hace | 0

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

casi 7 años hace | 0

| aceptada

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

casi 7 años hace | 1

| aceptada

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

casi 7 años hace | 0

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

casi 7 años hace | 0

| aceptada

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

casi 7 años hace | 0

| aceptada

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

casi 7 años hace | 1

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

casi 7 años hace | 1

| aceptada

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

casi 7 años hace | 3

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

casi 7 años hace | 1

| aceptada

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

casi 7 años hace | 2

| aceptada

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

casi 7 años hace | 0

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

casi 7 años hace | 1

| aceptada

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

casi 7 años hace | 1

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

casi 7 años hace | 1

| aceptada

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

casi 7 años hace | 0

| aceptada

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

casi 7 años hace | 0

| aceptada

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

casi 7 años hace | 0

Cargar más