Community Profile

photo

Stephen23


Attivo dal 2014

Suspensa Vix Via Fit

Statistiche

All
  • Most Accepted 2022
  • Most Accepted 2021
  • Personal Best Downloads Level 5
  • Editor's Pick
  • Grand Master
  • First Review
  • 5-Star Galaxy Level 5
  • GitHub Submissions Level 3
  • First Submission
  • 36 Month Streak
  • Thankful Level 5
  • Revival Level 2

Visualizza badge

Content Feed

Visto da

Risposto
using if statement to sort data by flags
"I need some code that will go through each pair of rows (e.g. row 1 and 2 then row 3 and 4 etc.) and check if they both have no...

1 giorno fa | 0

Risposto
How do I fix Invalid use of operator in the Code
T = readtable('LP.xlsx') T.DT = datetime(T.Date, 'ConvertFrom','excel') + days(T.Time)

3 giorni fa | 0

| accettato

Risposto
Most efficient way to put vector on the off-diagonal of the blocks of a block matrix
v = [1,2,3,4,5,6,7,8,9,8,7,6]; u = [9,8,7,6,5,4,3,2,1,2,3,4]; L = sqrt(numel(v)); vM = reshape(v,fix(L),[]); uM = reshape(u,...

4 giorni fa | 1

| accettato

Risposto
natsortfiles is not working for .png files
This page turns up relatively high on some Google searches, so I might as well make some corrections: "S is a structure. First...

6 giorni fa | 1

Risposto
Deleting elements of an array with consecutively occurring NaN values
A = [NaN,NaN,NaN,NaN,43,NaN,NaN,NaN,45,NaN,NaN,10,22,NaN,NaN,NaN,NaN,36,33,28,21,NaN,20,98,NaN,17,NaN,NaN,NaN,NaN,NaN,2,3,NaN,5,...

9 giorni fa | 2

Risposto
Bringing plots to the "front" to make them more visible?
"s there a way to change the ordering so that it sits on top of the other data series like layers in photoshop?" Of course, use...

12 giorni fa | 0

Risposto
Need guidance: Extracting variable and values from log file
str = fileread('Simulation_Results.txt') tkn = regexp(str,'(\d+):\s*(\d\S+)\s*\n[^\n]+:\s*(\d+)','tokens'); mat = str2double(v...

12 giorni fa | 0

Risposto
Replacing sequences in matrix
A = [4,5,6,7,8,9,10,11,12,13; 104,105,106,107,108,109,110,111,112,113; 204,205,206,207,208,209,210,211,212,213; 304,305,306,307,...

13 giorni fa | 0

| accettato

Inviato


Number to Words
Convert a numeric to a string with the English name of the number value (GB/IN/US).

15 giorni fa | 20 download |

Thumbnail

Inviato


Words to Number
Convert English number name/s written in a string to numeric value/s (GB/IN/US).

15 giorni fa | 10 download |

Thumbnail

Inviato


Maximally Distinct Color Generator
Generate maximally distinct colors in an RGB colormap.

15 giorni fa | 37 download |

Thumbnail

Risposto
the conversion from data string to serial number
Yes, that is the wrong date.... it is also the wrong data type: why are you using deprecated serial date numbers? The DATENUM d...

15 giorni fa | 0

| accettato

Risposto
Conversion from d:h:m:s:ms to seconds
"negating the days." I guess you really mean to ignore the days. format long G C = {'104d:11h:59m:38.934815s';'104d:11h:59m:3...

16 giorni fa | 0

| accettato

Risposto
How to concatenate cells within cells
"Is there a simple way to do this?" Yes, CELLFUN and VERTCAT: X = {{1},{2},{3},{4}}; Y = {{5},{6},{7;8},{9;10}}; Z = cellfun...

16 giorni fa | 1

| accettato

Risposto
Sort elements in cell array in descending order
fun = @(v) sort(v,'descend'); new_cell_array = cellfun(fun, cell_array, 'UniformOutput', false);

16 giorni fa | 0

| accettato

Risposto
Question on datestr to datetime conversion
datestr(timeseries(i),formatOut) Most likely TIMESERIES is a serial date number, the use of which is also discouraged and most ...

16 giorni fa | 0

| accettato

Risposto
Import data from a bad format
TEXTSCAN is very efficient, and imports numeric data as numeric (i.e. no fiddling around with text): fmt = repmat('%f',1,25); ...

16 giorni fa | 2

| accettato

Risposto
Reading uneven datasets from .mat file
Assuming that: the fields are in the required order (otherwise: you can sort them using ORDERFIELDS). the MAT file contains on...

16 giorni fa | 0

Risposto
Using logical array to extract data without reshape
Note that saving those huge lats&lons matrices is rather waste of space: you actually only need the first row/column. "Is there...

17 giorni fa | 0

| accettato

Risposto
readtable disfigures the CSV file header
data = readtable('headerFile.csv','ReadVariableNames', true, 'VariableNamingRule','preserve')

17 giorni fa | 2

| accettato

Risposto
Something wrong with "floor" or "fix" functions or it's my code?
"Something wrong with "floor" or "fix" functions" Nope, in fact those functions do absolutely nothing in your code. "or it's m...

17 giorni fa | 1

| accettato

Risposto
Read CSV into table but not all of the columns
First lets create a fake data file: writetable(array2table(rand(1e5,50),'Variablenames',"V"+(1:50)),"test.csv") Now lets try s...

18 giorni fa | 0

Risposto
Hello. This is my code and I keep getting the error "This statement is incomplete." several times throughout but can't find the mistake.
layers = [ ... sequenceInputLayer(numFeatures) lstmLayer(numHiddenUnits) fullyConnectedLayer(numResponses) regressio...

19 giorni fa | 0

Risposto
Using string() on double values without automatic rounding?
Rather than slow NUM2STR and then STRING, for a scalar the simpler and more efficient approach is to just call SPRINTF: sprintf...

19 giorni fa | 1

Risposto
What is the output after each recursive function call?
"I am confused what is meant by a function call in this case," A function call is every time a function is called. Usually func...

20 giorni fa | 1

| accettato

Risposto
Sum of all even index elements of a 1D array
"Why does it output 'No numbers in even positions' when the length of the array is greater than or equal to three and odd?" Bec...

20 giorni fa | 0

| accettato

Risposto
How do I separate a matrix that has a nested matrix in a cell before importing it to Classification Learner?
That does not seem like the best use of XLSX: storing lots of numeric data as long strings of text just makes processing the dat...

20 giorni fa | 0

Risposto
How to avoid linear indexing in operations involving matrices of different sizes
RESHAPE is very efficient, because no data gets moved in memory: A = rand(3,3); B = rand(3,2); idx = logical([0,1,1;0,1,1;0,1...

22 giorni fa | 0

| accettato

Risposto
Unique name detection in table headers
The old-fashioned way: D = {}; % data H = {}; % header fid = fopen('test_data_for_forum.txt','rt'); while ~feof(fid) H{...

22 giorni fa | 0

Risposto
Matlab 'borders' function not working. How to plot world map?
BORDERS is not inbuilt, it is a third-party function. You can download it here: https://www.mathworks.com/matlabcentral/fileexc...

23 giorni fa | 0

| accettato

Carica altro