Community Profile

photo

Turlough Hughes


Last seen: 1日 前 2019 以来アクティブ

Spoken Languages:
English

Statistics

All
  • Knowledgeable Level 4
  • Pro
  • Community Group Solver
  • Solver
  • Personal Best Downloads Level 1
  • 5-Star Galaxy Level 2
  • Revival Level 1
  • GitHub Submissions Level 1
  • First Submission
  • 6 Month Streak
  • First Review
  • Thankful Level 1

バッジを表示

Content Feed

表示方法

回答済み
how do i store for loop values?
There's only one value because your code is working as follows: for ii = 1:3 A = ii + 1 end Matlab is not told where to ...

20日 前 | 0

| 採用済み

回答済み
Cannot obtain structure elements where both field and variable are indexed into
Try the following: students(1).name='john'; students(2).name='andrea'; arrayfun(@(x) students(x).name(1), 1:2).'

20日 前 | 0

| 採用済み

送信済み


MATLAB-Binance-API
Suite of functions for accessing the Binance API via MATLAB. Supports trading on spot accounts and most public endpoints.

22日 前 | ダウンロード 48 件 |

Thumbnail

回答済み
I wanted to 3D plot my data like shown in attached image.
Use <https://uk.mathworks.com/help/matlab/ref/surf.html surf()> or doc surf there are several examples at both locatio...

24日 前 | 0

回答済み
how to convert from grayscale to rgb by lightness method ??
You can do the following: I=imread('peppers.png'); newImage = uint8(( double(min(I,[],3)) + double(max(I,[],3)) ) ./ 2); im...

25日 前 | 0

| 採用済み

回答済み
evaluate rising edge sample of a signal
Is it just the local minima you're having trouble with? Edit: The rising edge is found where the slope of the original data ...

25日 前 | 0

| 採用済み

回答済み
How to marker a fplot(anonymous function) function on a specific point which user enters.
You can add it in at the end of your function using plot: function x=calcDisplacement(t) m=1100; k=570; c=430; x0=0.05; v0...

25日 前 | 0

| 採用済み

回答済み
how to select and save particulat part of a column in mat file?
columns = [2 3 5]; rows = 50:100; x = mydata(rows,columns); save('mydata.mat','x')

25日 前 | 1

| 採用済み

回答済み
How to save data in a vector for each loop indice?
x = 1:0.1:1.5; vec=zeros(size(x)); for ii = 1:numel(x) sol = x(ii)+1; vec(ii)=sol; end vec

25日 前 | 1

| 採用済み

回答済み
Random values in timetable
You can collect the data in the loop and then use timetable n = 1; for i = 1:5 Time(i,1) = datetime('now'); Conducti...

26日 前 | 2

回答済み
Insert values of one vector at specific places into another
a = [0 0 0 0 1 0 0 0 1 0 1 0 0 0 1 0 0 1 0]; b = [ 10 20 30 40 50 ]; c = zeros(size(a)); c(logical(a)) = b

26日 前 | 0

| 採用済み

回答済み
access data returned from a method of a class in other methods
You could make it a private property, the private property can only be accessed by the class (see property attributes). You're p...

26日 前 | 0

回答済み
How can I find the Y value on an X–Y plot that corresponds to the tangent of the flattest part of a curve?
How robust this is depends on the consistency of that initial pattern, i.e. the initial acceleration followed by a period of dec...

26日 前 | 1

回答済み
How to locate the x and y co-ordinate of minimum value from a contour plot automatically ?
Try: [min_e,index] = min(e,[],'all','linear'); x_min = x(index); y_min = y(index); hold on, plot(x_min,y_min,'ok','MarkerF...

27日 前 | 1

| 採用済み

回答済み
Set properties from Superclass in subclass
Set the Access attribute in the superclass: classdef food properties protein carbs end ...

29日 前 | 0

| 採用済み

回答済み
Repeat a 2D matrix at multiple places in 5D matrix
You could do the following: A(:, :, 2, :, :) = repmat(B,1,1,1,2,2);

29日 前 | 0

| 採用済み

回答済み
Unable to perform assignment because the left and right sides have a different number of elements.
Your vlookup is not returning a value when j = 634. You will need a condition to deal with this when it happens. For example...

29日 前 | 0

| 採用済み

回答済み
How to revert Editor window in MATLAB 2021A back to normal?

29日 前 | 0

| 採用済み

回答済み
add data information with scatter or plot
Personally, I would just use scatter3 and then look at the data from above (along the z-axis). So something like: scatter3(x,y,...

30日 前 | 0

| 採用済み

回答済み
Interchange dimensions of cell array and the matrices included in it
Here's one way temp = vertcat(originalData{:}); D = repmat({zeros(3,27)},1,1000); % preallocate for ii = 1:1000 D{ii} = ...

約1ヶ月 前 | 0

回答済み
rectangle invisible in matlab
The following works for me: roi.Visible = 'off';

約1ヶ月 前 | 1

| 採用済み

回答済み
How to extract points from a 3D plot that fall within a particular distance from the center coordinate?
The points which are within a radius, r, from the origin can be obtained as follows: index = sum(X.^2,2) < r^2; % X is an n by...

約1ヶ月 前 | 1

回答済み
connect Matlab to Binance API
Try my recent submission to the file exchange: MATLAB-Binance-API Then placing a limit order is simply: obj = spot.newOrder(...

2ヶ月 前 | 1

回答済み
Finding coordinates with image processing
You could use the regionprops function to get the centroids. See the following example: % This just sets up an image for demo ...

3ヶ月 前 | 0

回答済み
Extracting files of the same name only from the first level of subdirectories
Hey Bob, a single star will go down one level only, so try the following: list = dir(fullfile(Alevel,'*','filename.txt'))

4ヶ月 前 | 0

| 採用済み

回答済み
switch command on listbox value
You can get an index of the selected values as follows: idx = ismember(app.ListBox.Items,app.ListBox.Value); Then, make the pl...

4ヶ月 前 | 0

| 採用済み

回答済み
Reading values from xml file
You can now read XML files in R2021a using readtable (and readtimetable). For example: filename = 'students.xml'; T = readtabl...

4ヶ月 前 | 1

回答済み
How can I assign information to my array file?
You could make a table as follows: w = strings(size(mci)); w(mci<0.4) = "wheeze"; w(mci>=0.4) = "non-wheeze"; T = table(mci....

4ヶ月 前 | 0

| 採用済み

回答済み
Capture plot titles using getframe and writerobj
You can use the figure handle (instead of the axis handle) with the getframe function and that captures the entire interior of t...

4ヶ月 前 | 0

| 採用済み

回答済み
How to divide images from folder into 4x4 blocks
Hi Petrus, the mat2cell approach that Jonas pointed out can be done more generally as follows. Note, this handles the scenario w...

5ヶ月 前 | 0

| 採用済み

もっと読み込む