Community Profile

photo

Martin


Last seen: 5개월 전 2013년부터 활동

통계

  • First Review
  • Thankful Level 4
  • First Answer

배지 보기

Content Feed

보기 기준

질문


speed optimization, timestamp, UTC
Just curious (because I could use it). Is there any way to improve the speed of this line timestamp = num2str(posixtime(datetim...

거의 3년 전 | 답변 수: 0 | 0

0

답변

질문


Choose the lowest value and jump into the correct if
I got variables like: A = 1; B = 2; C = 3; those values are random and can change over time. I want to jump into the correct...

거의 3년 전 | 답변 수: 2 | 0

2

답변

질문


Subtract 1 from variable each second
Imagine I got something like this: counter = 100; while true do_something=true; pause(rand); disp(counter); en...

거의 3년 전 | 답변 수: 2 | 0

2

답변

질문


json char with too many decimals, need removal
I got some json str = '{"hund": 0.3253533250000000000000000000000000, "kat": "dfsdfs", "baenkebider": 0.002021203321320000000000...

거의 3년 전 | 답변 수: 1 | 0

1

답변

질문


How to I convert this time format to datetime?
I got this strange time format: my str ='Fri May 28 18:15:46 +0000 2021'. I would be very happy if I could get it down to '28-M...

거의 3년 전 | 답변 수: 2 | 0

2

답변

질문


num2str format
I have problems with num2str format I get a number from an API: 8.1784e+17 I need the exact number as str output. For instanc...

대략 3년 전 | 답변 수: 1 | 0

1

답변

질문


When debugging, global websocket feed data doesn't show up
I use a websocket package named MatlabWebSocket-master to get live data from a website. In a function I am storing that data in ...

거의 4년 전 | 답변 수: 0 | 0

0

답변

질문


Can this for-loop code get faster in some way?
I got a big result table named resTbl. There I need for each row to grab a timestamp (posix time) and construct a period interv...

4년 초과 전 | 답변 수: 1 | 0

1

답변

질문


is there an index maneuver if index is 0?
Hello, I am running a ismember: [logical idx] = ismember(hund(:,1),dogs(:,2)) ('hund' is often around 3,000 rows, and 'dogs' ...

4년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Add timetable with many months to another timetable with few months
I have two time tables like this: cars = 1×1 timetable Time Cars ________ ________ Sep-2019 ...

4년 초과 전 | 답변 수: 1 | 1

1

답변

질문


sum of timetables for each months
I got 2 timetables buses and cars like below. Does anyone know how to achieve the last table which sum each months? buses = ...

4년 초과 전 | 답변 수: 2 | 0

2

답변

질문


How to simplify this and make it efficient
I have a 1x500 cell (res) with a structure in each, and a 300x3 table (G). I need to check for each combination if strcmp betwee...

4년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Can this stacking code be simplified
Hello, I need to create a figure (f) and insert a table. It works well: f = figure('units','normalized'); pets = ta...

4년 초과 전 | 답변 수: 0 | 0

0

답변

질문


Saving a table as PDF, - how can I rotate it 90 degrees
Hello, I want to save a big table() which has like 20 columns. Therefore it would be nice to rotate the PDF paper 90 degrees. ...

4년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Matlab rounding my values without me wanting it
Hello, this basically frustrates me a bit, - if I have: Price = 20074.5; And I present it in my table like this: disp(table(P...

4년 초과 전 | 답변 수: 1 | 0

1

답변

질문


I need turnover for last month from my table
Hello, I have a table like the one below: summary = 6×2 table Time Monthly_Turnove...

4년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Monthly turnover where I need the sum
Hi, I have a x 2 table like this: Rows can vary from 1:inf. I need sum of the monthly Turnover (2. column) from timestamp (1...

4년 초과 전 | 답변 수: 1 | 0

1

답변

질문


number to string and char to string in table
how to convert number to string and char to string in a table?

4년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Round down to a chosen hour-min-sec time at a date
Hello, I use now_time = datetime(now,'ConvertFrom','datenum') Assume it gives me ans = datetime 14-May-2019 02:28:24...

거의 5년 전 | 답변 수: 2 | 0

2

답변

질문


conditional logic inside conditional logic
Hello, I would like to know if there is any way to write the following in one line ? if isfield(hund.A) if hund.A == 1 ...

대략 5년 전 | 답변 수: 1 | 0

1

답변

질문


Date and time formate translation
I need to translate those dates and time (strings) '25-Mar-2014 13:00:00' '07-Nov-2018 18:30:45' to the forllowing format (i...

5년 초과 전 | 답변 수: 1 | 0

1

답변

답변 있음
Frustrating datetime and datestr
thanks for answer. Let me say whats confusing me. If I use t = datetime('03-Nov-2018 00:00:00','InputFormat','dd-MMM-yyyy HH...

5년 초과 전 | 0

질문


Frustrating datetime and datestr
Hey I got this hund = datetime(end_stamp, 'convertfrom','posixtime') % which give this: hund = datetime 05-Nov-...

5년 초과 전 | 답변 수: 2 | 0

2

답변

질문


please help simplify this for-loop-hell
The code below works as it should, but its slooow. I have a data variable with x number of cells. I want every row in column 6 o...

5년 초과 전 | 답변 수: 1 | 0

1

답변

질문


find dublicated value in a column and return the whole row
imagine I have this: A = [ 1 ; 3 ; 5 ; 6 ; 9 ] and B = [ 1 4 ; 2 7 ; 3 5 ; 9 10 ] I need to end up with: C = [ 1...

5년 초과 전 | 답변 수: 1 | 0

1

답변

질문


add non zeros in array to my probability formular
Imagine I have probabilities in this array: a = [ 0.4 0 0 ; 0.6 0.5 0.8 ; 0 0.3 0.3 ]; then I want to add all non-...

5년 초과 전 | 답변 수: 1 | 0

1

답변

질문


How to reverse a duration?
e.g. c = minutes(2) gives a duration variable: c = 2 min... How to reverse it and get just an integer of 2 ?

5년 초과 전 | 답변 수: 2 | 0

2

답변

질문


AMD, Intel disagreements 'red alert'
Hello, I have like 4 Intel Matlab clients and 1 powerful AMD Matlab client (Ryzen 1950, overclocked). I need to do heavy calcul...

5년 초과 전 | 답변 수: 1 | 1

1

답변

질문


Send alert mail if matlab/computer shuts down
As laid out in the title, what would a proper or easy way of doing this be? I have two computers, if A shuts down with main mat...

거의 6년 전 | 답변 수: 1 | 0

1

답변

질문


Make rows of square bracket data
I have some data that looks like this string: A='[[1,2,3,4,5,6],[6,5,4,3,2,1],[4,4,4,4,4,4],[9,9,9,9,9,9]]' 6 numbers in...

거의 6년 전 | 답변 수: 1 | 0

1

답변

더 보기