Community Profile

photo

Sonima


29 total contributions since 2012

Sonima's Badges

  • Thankful Level 2
  • First Answer

View details...

Contributions in
View by

Question


convert min, hours to 00:00:00 format
Hi all, How can I convert a number to duration format of 00:00? For example, I want to the followings: 15 to 15:00 45...

20 days ago | 2 answers | 0

2

answers

Question


Return index of datetime column in a table
Hi! I have a very long table which I want to return index to specific raws. >> head(HData) Time ...

20 days ago | 1 answer | 0

1

answer

Question


Problem with retime function
Hello all. I want to use retime to convert a M15 time table to for example a H1 table. DateTime Open ...

21 days ago | 1 answer | 0

1

answer

Answered
Try catch together with dbstop
Hi and thanks. keyboard() would just pause the execution and not a breakpoint on error line! keyboard() is almost the same as ...

1 month ago | 0

Question


create a time table from specific time date format
Hello! I have a historical data that I need to import and create a timetable from. the date and time are not in the standard fo...

1 month ago | 1 answer | 0

1

answer

Question


How do I read a text file and convert the dates and time?
Hi! I have a text file that includes the following: 2015-06-18 12:00

1 month ago | 2 answers | 0

2

answers

Question


Approximately equal sign in matlab plot
Hi! I want to plot approximately equal sign on one axe of my plot in Matlab.

1 month ago | 1 answer | 0

1

answer

Question


Run a loop every hour regardless of its calculation time!
Hi All I want to run a look evey hour and do some math inside the loop. one solusion is to use tic/toc to get the math time an...

1 month ago | 2 answers | 0

2

answers

Question


Try catch together with dbstop
Hi All, I want to use Try Catch together with dbstop. What I want to do is to email ME.message and then breakpoint on error wit...

1 month ago | 2 answers | 0

2

answers

Answered
Find non unique string in a table
T.Ticket(groupcounts(T.Alpha)>1)

1 month ago | 0

Question


Find non unique string in a table
Hi! I have a table "TT" which I want to return the "Ticket" of non unique string in the "Alpha". TT = 8×2 table Ti...

1 month ago | 3 answers | 1

3

answers

Answered
Removing weekends and holidays from a TimeTable
Hi! This works and remove the weekends from a TimeTable, but still gaps showed up on the plot! TT = TT(~isweekend(TT.Time),:);...

5 months ago | 0

Question


How to remove weekend from a TimeTable Plot
Hi! I want to plot CandleStick pattern based on a TimeTable I have. In this case, I want to remove the gap on my chart caused b...

5 months ago | 0 answers | 0

0

answers

Question


ismember 0×0 empty logical array to logic
Hi All, I have an array "A = [1 2 3 4 5 6]" which its length reduces in a loop if ~ismember(A,ID) do this else do t...

5 months ago | 2 answers | 0

2

answers

Question


How to merge a datetime array with a table
Hello all, I have a "datetime array" and a table which I want to merge. DT = 173×1 datetime array NaT ...

7 months ago | 1 answer | 0

1

answer

Question


Indexing on array !
Hello! I have an array (a) which has 1M values. Array (b) should be calculated based on array (a) and last value in b. b(20)= ...

8 months ago | 1 answer | 0

1

answer

Answered
Make Candle chart more Readable.
Hi! This does not work anylonger. Is it possible to define colors for Bullish/Bearish candles? In addition, is it possible to...

8 months ago | 0

Answered
how do i check if line in plot exists and if yes delete it otherwise nothing
Hi! I want to do the same, delete a line if exist in a plot in a fuction. I used the suggeste code if ishandle(line_handle) ...

8 months ago | 0

Question


How to replace space with zero in a table?
Hi! I want to replace space with zero in the H4.Time without loop. K>> head(H4) ans = 8×7 table Date Ti...

8 months ago | 2 answers | 0

2

answers

Question


Error in histogram plot including datetime
Hi! I want to plot a histogram in a plot which x-axis is a datetime vector. However i got this error: Error in histogram (line...

8 months ago | 1 answer | 0

1

answer

Question


MACD(50, 90,9)
Hi! I want to calculate MACD(50, 90,9), however I don't know how to specifiy the "50" and "90" values. Matlab has default MACD ...

8 months ago | 1 answer | 0

1

answer

Question


find a string in a Date table column and return its index
Hello! I have a table containing a Date column as the following: DTM15.Date(1:10,:) ans = 10×10 char array ...

1 year ago | 1 answer | 0

1

answer

Question


How to clear only a part of the plot
Hi! I have a figure with multi lines plotted in different steps. plot(a); hold on; plot(b); plot(c); plot(d); I want to ...

1 year ago | 2 answers | 0

2

answers

Question


Import date, time together with candlestick data for Candlestick chart
Hello all. I want to import historical data in Matlab and later plot Candlestick chart. There are several examples available on...

1 year ago | 1 answer | 0

1

answer

Answered
movavg function lead and lag meaning
Hi! If one assign both lag and lead to for instance 20, then Matlab will give the same result as when one set EMA20 is most of ...

1 year ago | 0

Question


"SimulatedStock.mat" for Candlestick chart
Hello! I want to try the example on Candlestick chart that is available <https://se.mathworks.com/help/finance/candle.html he...

1 year ago | 1 answer | 0

1

answer

Question


How to Plot Horizontal errorbar
Does anybody knows how can I plot horizontal error bars in MATLAB? I am familiar with the errorbar function, which allows to plo...

6 years ago | 2 answers | 0

2

answers

Question


How to hold colorbar in contourf plot
Hello everyone I want to plot a contorf plot in logaritmic scale. first I want to plot in normal to provide colorbar, then ho...

6 years ago | 1 answer | 0

1

answer

Question


How to find "Enter" between the lines of a text and replace with "Alt+Enter"?
Hello everyone. I have a text file like below: " I am good. how are you? are you there? ok that's all ...

7 years ago | 1 answer | 0

1

answer