Réponse apportée
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...

presque 7 ans il y a | 0

Réponse apportée
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...

presque 7 ans il y a | 2

Réponse apportée
how to match different values of a matrix
So basically, you want mode(X, 1)

presque 7 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 7 ans il y a | 0

| A accepté

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

presque 7 ans il y a | 1

Réponse apportée
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...

presque 7 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 7 ans il y a | 0

Réponse apportée
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...

presque 7 ans il y a | 1

Réponse apportée
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...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
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 ...

presque 7 ans il y a | 1

| A accepté

Réponse apportée
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)...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 7 ans il y a | 0

| A accepté

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

presque 7 ans il y a | 0

Réponse apportée
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...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 7 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 7 ans il y a | 0

Réponse apportée
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...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 7 ans il y a | 0

| A accepté

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

presque 7 ans il y a | 1

Réponse apportée
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)...

presque 7 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 7 ans il y a | 3

Réponse apportée
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...

presque 7 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 7 ans il y a | 2

| A accepté

Réponse apportée
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 ...

presque 7 ans il y a | 0

Réponse apportée
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...

presque 7 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 7 ans il y a | 1

Réponse apportée
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 (...

presque 7 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 7 ans il y a | 0

| A accepté

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

presque 7 ans il y a | 0

| A accepté

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

presque 7 ans il y a | 0

Charger plus