Turlough Hughes
Followers: 0 Following: 0
Spoken Languages:
English
English
統計
All
Feeds
送信済み
MATLAB-Binance-API
Suite of functions for accessing the Binance API via MATLAB. Supports spot and margin trading and all public endpoints.
5ヶ月 前 | ダウンロード 21 件 |
回答済み
Code to assign correlation values from a correlation matrix to a column vector
You're almost there - use the loop variable, ii, to index into cors as follows: sz = 1000; iters = 10000; cors = zeros(iters,...
Code to assign correlation values from a correlation matrix to a column vector
You're almost there - use the loop variable, ii, to index into cors as follows: sz = 1000; iters = 10000; cors = zeros(iters,...
1年以上 前 | 0
回答済み
How to use dir function with customized number of folders
You can do the following: p = dir('C:\Username\myfolder'); dateStringFromFilename = regexp({p.name}.','\d{2}-\d{2}-\d{4}','mat...
How to use dir function with customized number of folders
You can do the following: p = dir('C:\Username\myfolder'); dateStringFromFilename = regexp({p.name}.','\d{2}-\d{2}-\d{4}','mat...
2年以上 前 | 1
| 採用済み
回答済み
what's the meaning of 'minprominence' in islocalmin or islocalmax function?
Given that I don't have your dataset, I'll use the following data to help demonstrate how prominence is calculated: x = 0:0.01:...
what's the meaning of 'minprominence' in islocalmin or islocalmax function?
Given that I don't have your dataset, I'll use the following data to help demonstrate how prominence is calculated: x = 0:0.01:...
2年以上 前 | 1
| 採用済み
回答済み
Sum groups of columns
Here's another option: a = rand(10,4600); b = mat2cell(a,height(a),repmat(50,1,width(a)/50)); result = cellfun(@(x) sum(x,'...
Sum groups of columns
Here's another option: a = rand(10,4600); b = mat2cell(a,height(a),repmat(50,1,width(a)/50)); result = cellfun(@(x) sum(x,'...
2年以上 前 | 0
| 採用済み
回答済み
App Designer Tab name xlsl
Have a look at your component browser in the app designer, and you'll see app.Tab1 or something similar (as shown above). Cl...
App Designer Tab name xlsl
Have a look at your component browser in the app designer, and you'll see app.Tab1 or something similar (as shown above). Cl...
2年以上 前 | 0
| 採用済み
回答済み
Can figures or menues open up without app designer's objects placed on the canvas?
Your figures will open up outside the app canvas - and if you're wondering, they will also generate outside the app's canvas wit...
Can figures or menues open up without app designer's objects placed on the canvas?
Your figures will open up outside the app canvas - and if you're wondering, they will also generate outside the app's canvas wit...
2年以上 前 | 0
回答済み
Accessing User Data in Standalone App
You can store image paths in a property in your app (see imageFiles in the attached .mlapp file) and then use that to load the i...
Accessing User Data in Standalone App
You can store image paths in a property in your app (see imageFiles in the attached .mlapp file) and then use that to load the i...
2年以上 前 | 0
| 採用済み
回答済み
What should go in a next-generation MATLAB X?
When using the debugger, I would love to have a button to Step (run the next line) and display output regardless of the ; being ...
What should go in a next-generation MATLAB X?
When using the debugger, I would love to have a button to Step (run the next line) and display output regardless of the ; being ...
2年以上 前 | 1
回答済み
Read data from text file. Tables with uneven number of rows
fid = fopen('t1.txt'); c = 1; while ~feof(fid) d = fgetl(fid); if ~isempty(regexp(d,'X.*Y.*Z.*Energy', 'once')) ...
Read data from text file. Tables with uneven number of rows
fid = fopen('t1.txt'); c = 1; while ~feof(fid) d = fgetl(fid); if ~isempty(regexp(d,'X.*Y.*Z.*Energy', 'once')) ...
3年弱 前 | 0
回答済み
How to image one text file from many
You could use imagesc or imshow(___,[]) as follows: dataImage = randi(1000,100,100,5); % example data you could have for dataIm...
How to image one text file from many
You could use imagesc or imshow(___,[]) as follows: dataImage = randi(1000,100,100,5); % example data you could have for dataIm...
3年弱 前 | 0
| 採用済み
回答済み
Graphing a For Loop Array
i can either be the index or a value that you use on the RHS of your equations but typically not both. To fix your code you coul...
Graphing a For Loop Array
i can either be the index or a value that you use on the RHS of your equations but typically not both. To fix your code you coul...
3年弱 前 | 0
回答済み
How can Windows 10 user account info be accessed through Matlab
You could try system as follows: [~,info] = system('whoami'); [~,info] = system('net user'); % another possibility
How can Windows 10 user account info be accessed through Matlab
You could try system as follows: [~,info] = system('whoami'); [~,info] = system('net user'); % another possibility
3年弱 前 | 0
回答済み
How to set names to each colunm and row using "writematrix"?
You can use writetable for this as follows: B = rand(100,13); Labels=["Irr", "SOC", "PVHarvest", "Mecons", "ElecEne", "PVen", ...
How to set names to each colunm and row using "writematrix"?
You can use writetable for this as follows: B = rand(100,13); Labels=["Irr", "SOC", "PVHarvest", "Mecons", "ElecEne", "PVen", ...
3年弱 前 | 1
| 採用済み
回答済み
Im trying to find the zeroes of the two lines on the graphs I've made
If you have the mapping toolbox then polyxpoly is very handy for this. For example: x = linspace(-1.5*pi,1.5*pi,1000); y = sin...
Im trying to find the zeroes of the two lines on the graphs I've made
If you have the mapping toolbox then polyxpoly is very handy for this. For example: x = linspace(-1.5*pi,1.5*pi,1000); y = sin...
3年弱 前 | 0
回答済み
Jump Discontinuity Functions Open and Close Circle
My preferred approach is to use fplot as follows: clc, clear figure(), hold on axis ([-10 10 -10 20]) fplot(@(x) x.^2, [-p...
Jump Discontinuity Functions Open and Close Circle
My preferred approach is to use fplot as follows: clc, clear figure(), hold on axis ([-10 10 -10 20]) fplot(@(x) x.^2, [-p...
3年弱 前 | 1
回答済み
I need help on finding the max & min values of a 3d array.
From the documentation for max: M = max(A,[],'all') finds the maximum over all elements of A. This syntax is valid for MATLAB...
I need help on finding the max & min values of a 3d array.
From the documentation for max: M = max(A,[],'all') finds the maximum over all elements of A. This syntax is valid for MATLAB...
3年弱 前 | 0
| 採用済み
回答済み
Find and remove equal element in 2 different cell with different size
% Your sample data A = {[100,103,104],[4,5,11],[66],[4,5,1],[85,88,89,77]}; B = {[40,41,41],[4,5,11],[68],[85,88,89,77],[31,66...
Find and remove equal element in 2 different cell with different size
% Your sample data A = {[100,103,104],[4,5,11],[66],[4,5,1],[85,88,89,77]}; B = {[40,41,41],[4,5,11],[68],[85,88,89,77],[31,66...
3年弱 前 | 0
| 採用済み
回答済み
How to add a new column in a table and then write on a file only some columns?
I like to use addvars and removevars for this: T = readtable('https://uk.mathworks.com/matlabcentral/answers/uploaded_files/887...
How to add a new column in a table and then write on a file only some columns?
I like to use addvars and removevars for this: T = readtable('https://uk.mathworks.com/matlabcentral/answers/uploaded_files/887...
3年弱 前 | 1
| 採用済み
回答済み
How can I average the vectors within the grid cell?
% code provided in the question [X,Y] = meshgrid(0:6,0:6); U = 0.25*X; V = 0.5*Y; [Xq,Yq] = meshgrid(0:0.25:6); Uq = interp...
How can I average the vectors within the grid cell?
% code provided in the question [X,Y] = meshgrid(0:6,0:6); U = 0.25*X; V = 0.5*Y; [Xq,Yq] = meshgrid(0:0.25:6); Uq = interp...
3年弱 前 | 0
| 採用済み
回答済み
How can I make a bar graph using only max/min values with std dev line on both ends?
x = rand(10,3); boxplot(x); Normally (at least for most other plot functions) you could do this sort of thing with a name-valu...
How can I make a bar graph using only max/min values with std dev line on both ends?
x = rand(10,3); boxplot(x); Normally (at least for most other plot functions) you could do this sort of thing with a name-valu...
3年弱 前 | 1
回答済み
How to find elements in an array faster / without using for loop?
In the example you provided you aren't actually storing any of the indices. It is also important to consider that you will get r...
How to find elements in an array faster / without using for loop?
In the example you provided you aren't actually storing any of the indices. It is also important to consider that you will get r...
3年弱 前 | 1
| 採用済み
回答済み
Open multiple timetables within an array into one matrix
Let's call the cell array data, then you can vertically concatentate as follows: oneBigTable = vertcat(data{:}); If you want i...
Open multiple timetables within an array into one matrix
Let's call the cell array data, then you can vertically concatentate as follows: oneBigTable = vertcat(data{:}); If you want i...
3年弱 前 | 0
回答済み
I am trying to display multiple lines of centered text
Here's one way: t = ["On a scale of 0 to 8, how much control did you have over the target circle?"; "0 = no control & 8 = ...
I am trying to display multiple lines of centered text
Here's one way: t = ["On a scale of 0 to 8, how much control did you have over the target circle?"; "0 = no control & 8 = ...
3年弱 前 | 0
回答済み
Assign NaN to specific rows(based on criteria) for multiple table variables
You can do that as follows: % Firstly some sample data T = array2timetable(randi(3,10,5),'Rowtimes',datetime() + seconds(0:9))...
Assign NaN to specific rows(based on criteria) for multiple table variables
You can do that as follows: % Firstly some sample data T = array2timetable(randi(3,10,5),'Rowtimes',datetime() + seconds(0:9))...
3年弱 前 | 0
| 採用済み
回答済み
How can I incorporate the angle of orientation in my colourmap?
To represent the orientations with arrows, you could a quiver plot as follows: %Import the data data = readmatrix('https://uk....
How can I incorporate the angle of orientation in my colourmap?
To represent the orientations with arrows, you could a quiver plot as follows: %Import the data data = readmatrix('https://uk....
3年弱 前 | 1
| 採用済み
回答済み
How do I juxtapose the two plots so that the circles indicating the peak amplitude is in contrast with the plot?
You need to include t in your call to findpeaks. For example: t = linspace(0,1,1000); Ca = t./exp(t).*(1-sin(2*pi*t*20)); p...
How do I juxtapose the two plots so that the circles indicating the peak amplitude is in contrast with the plot?
You need to include t in your call to findpeaks. For example: t = linspace(0,1,1000); Ca = t./exp(t).*(1-sin(2*pi*t*20)); p...
3年弱 前 | 0
回答済み
How to interpolate data in cells?
As follows: S_or_x_cycle2 = cellfun(@(x) interpft(x,100), S_or_x_cycle, 'uni', 0)
How to interpolate data in cells?
As follows: S_or_x_cycle2 = cellfun(@(x) interpft(x,100), S_or_x_cycle, 'uni', 0)
3年弱 前 | 0
| 採用済み