Answered

What happens to a running program when my computer switches to Hibernate?

Hi! Is it possible to hiberation Win 10 with a Matlab code?

What happens to a running program when my computer switches to Hibernate?

Hi! Is it possible to hiberation Win 10 with a Matlab code?

ungefär ett år ago | 0

Question

append a text file to structure

Hi All. I have a structure generated from a matlab simulation which I want to append the txt. Any idea how should I do this?

ungefär ett år ago | 1 answer | 0

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...

ungefär ett år ago | 2 answers | 0

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 ...

ungefär ett år ago | 1 answer | 0

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 ...

ungefär ett år ago | 1 answer | 0

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 ...

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 ...

ungefär ett år 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...

ungefär ett år ago | 1 answer | 0

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

ungefär ett år ago | 2 answers | 0

Question

Approximately equal sign in matlab plot

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

ungefär ett år ago | 1 answer | 0

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...

ungefär ett år ago | 2 answers | 0

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...

ungefär ett år ago | 2 answers | 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...

ungefär ett år ago | 3 answers | 1

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),:);...

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),:);...

mer än ett år 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...

mer än ett år ago | 0 answers | 0

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...

mer än ett år ago | 2 answers | 0

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 ...

mer än ett år ago | 1 answer | 0

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)= ...

mer än ett år ago | 1 answer | 0

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...

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...

mer än ett år 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) ...

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) ...

mer än ett år 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...

mer än ett år ago | 2 answers | 0

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...

mer än ett år ago | 1 answer | 1

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 ...

nästan 2 år ago | 1 answer | 0

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 ...

ungefär 2 år ago | 1 answer | 0

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 ...

ungefär 2 år ago | 2 answers | 0

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...

ungefär 2 år ago | 1 answer | 0

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 ...

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 ...

ungefär 2 år 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...

ungefär 2 år ago | 1 answer | 0

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...

ungefär 7 år ago | 2 answers | 0

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...

nästan 8 år ago | 1 answer | 0