Beantwortet
select the correct row in a table with a different index in the for loop
Giulia, you got an asnwer to your specific question, but it's quite possible that you asked too specific a question, and didn't ...

etwa 4 Jahre vor | 0

Beantwortet
Error with the division
As StarStride hints, these tables are not even the same size, in either dimension: >> DATIECMWFannuali DATIECMWFannuali = 2...

etwa 4 Jahre vor | 0

Beantwortet
How can I delete this data on the graph?
This is a lot of code that I just can't follow. I will suggest that a loop l;ike this for i=1:length(dates) % per ogni coppia...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to add variable to Table in MatLab App Designer ?
There are probably a couple things wrong with app.Table{1}=(app.A) First, if app.Table doesn't yet exist, you are not creating...

etwa 4 Jahre vor | 1

Beantwortet
Remove successive rows from a table where a specific column value is duplicated
rowfun would be one way to get Jon's suggestion of using unique to work: >> t = readtable("Metingen-data-2021-11-17 10_48_18.cs...

etwa 4 Jahre vor | 0

Beantwortet
Add variables from one timetable to another
Eric, I think all you need is >> T1 = array2table(rand(5,3),"VariableNames",["A" "B" "C"]); >> T2 = array2table(rand(5,3),"Va...

etwa 4 Jahre vor | 0

Beantwortet
Iterate and convert datenums to date times, and find time durations
A couple of preliminaries: xlsread is not recommended. readtimetable is what you want. '200007130000' isn't a "datenum", that ...

etwa 4 Jahre vor | 0

Beantwortet
how to find the average of a table 366-by-6
Another possibility would be mean(T{:,vartype("numeric")},"all") But beware, the {} there will downcast mixed numeric types.

etwa 4 Jahre vor | 2

Beantwortet
How to import Excel table with column of as individual variables?
I don't know that readtable is the way to go here. If you really just have a few named scalars, you might think about readcell (...

etwa 4 Jahre vor | 1

Beantwortet
Finding A String In A Specific Column of A Table (SQLite)
If this were a MATLAB table, it would be something like endsWith(T.StringVar,"sixChr") but I don't know what context you are w...

etwa 4 Jahre vor | 0

Beantwortet
joining two timetables to complete the timeseries
Muhammad, join is sort of like a horizontal concatenation operation. That is not, I think, what you are looking for. You say I ...

etwa 4 Jahre vor | 0

Beantwortet
Adding a new column of differences to a table
Even simpler: T.diffB = [0;diff(T.B)]; T.diffC = [0;diff(T.C)]; David's soln has the advantage of being easier to write when ...

etwa 4 Jahre vor | 0

Beantwortet
Is there any better way to find the average of a dynamic signal for a specific time like 10s or something.?
Why would you not use mean? In any case, make a timetable, and use something like retime(tt,'regular','mean','TimeStep',second...

etwa 4 Jahre vor | 0

Beantwortet
Organising Dates based on User ID and compute weekly average
If it's just counting number of days for each ID, try this: tt = 1686×1 timetable Date ID ___________...

etwa 4 Jahre vor | 0

Beantwortet
Separate hourly data into different days based on the hour and minute time.
What's called for here is a nice mix of old and new. The new is datetimes and durations, the old is finding the day boundaries u...

etwa 4 Jahre vor | 0

Beantwortet
I want to write a program that takes utc time from the user and converts it to gps time.r case letter
This sounds a lot like a homework problem. You may find some help here https://www.mathworks.com/matlabcentral/answers/660293-g...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
Replacing Negative Values in Table with Previous Value in Column
Stef, as near as I can tell, the only thing wrong with your original solution is that D and E are in T, not in the workspace. Th...

etwa 4 Jahre vor | 0

Beantwortet
How to overload the @tabular.unstack method?
David, if you "own" your MATLAB installation, there's nothing preventing you from directly modifying unstack. What I'd suggest,...

etwa 4 Jahre vor | 0

Beantwortet
generate heat map based on lat/lon and data value
The heatmap function accepts a table as input, this should be a one-liner. If you are looking for a surface plot, KSSV's answer ...

etwa 4 Jahre vor | 0

Beantwortet
Subset timetable by specific time windows/periods
This post is more than a year old, but I'm responding in hopes that it might help anyone who looks at this. First, I don't unde...

mehr als 4 Jahre vor | 0

Beantwortet
ismember: Find matching entries in table columns (and add entry from matching row)
This is a one-liner with tables: >> A = table([1;3;5]) A = 3×1 table Var1 ____ 1 3 5 >> ...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
Using index to match rows of table
Lukas, you don't say what you actually need to do after getting those rows, but I'm going to suggest that you should be using ro...

mehr als 4 Jahre vor | 0

Beantwortet
How to Create txt output from multiselect file by using readtable?
This code DATE = T{:,1}; TIME = T{:,2}; TIME.Format = 'hh:mm:ss'; DOH = T{:,3}; ...

mehr als 4 Jahre vor | 0

Beantwortet
How to convert a minutes elapsed vector to time (hh:mm)?
"continous 24 hour measurement" sounds like you are dealing with time of day. If you add 600 minutes to hours(16), you will get ...

mehr als 4 Jahre vor | 0

Beantwortet
Insert new row with values in a table before specific values
It is possible to just use tabular subscripting to insert these rows. This is kind of old school MATLAB. Don't know if it is eas...

mehr als 4 Jahre vor | 0

Beantwortet
Plot a timetable for charging electric vehicles
Sure. It looks like you want to overlay not only all stands, but also all days on one (24 hour?) time of day axis. That makes it...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to separate two graphs plotted in one figure into two separate figures?
If spikes were two separate variables in a timetable (see splitvars), this would just be stackedplot(neural).

mehr als 4 Jahre vor | 0

Beantwortet
How do I add a label on each bar of a multiple bar chart? I want to add specific times as labels.
I bet there's a way to simplify the arguments to your bar command. What about something like bar(T_Smooth.X(1:4),T_Smooth{1:4,[...

mehr als 4 Jahre vor | 0

Beantwortet
Operator '==' is not supported for operands of type 'table'.
There are a couple of problems. c is a table, so R = c(:,"SAPID") is also a table, with only one variable. A table is a contai...

mehr als 4 Jahre vor | 1

Beantwortet
Dividing grouped data into equally sized subgroups
>> x = rand(16,1); >> g = repmat((1:2)',8,1); >> t = table(g,x) t = 16×2 table g x _ _______ ...

mehr als 4 Jahre vor | 1

Mehr laden