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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 2

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 1

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

mehr als 6 Jahre vor | 1

| akzeptiert

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 1

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 1

| akzeptiert

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 1

| akzeptiert

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 1

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

mehr als 6 Jahre vor | 1

| akzeptiert

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

mehr als 6 Jahre vor | 3

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

mehr als 6 Jahre vor | 1

| akzeptiert

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

mehr als 6 Jahre vor | 2

| akzeptiert

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 1

| akzeptiert

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

mehr als 6 Jahre vor | 1

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

mehr als 6 Jahre vor | 1

| akzeptiert

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

fast 7 Jahre vor | 0

| akzeptiert

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

fast 7 Jahre vor | 0

| akzeptiert

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

fast 7 Jahre vor | 0

Mehr laden