
Les Beckham
Many years developing flight control algorithms and software
C
Statistics
RANK
203
of 260 371
REPUTATION
420
CONTRIBUTIONS
2 Questions
162 Answers
ANSWER ACCEPTANCE
50.0%
VOTES RECEIVED
54
RANK
of 17 896
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Content Feed
What is this center line when I create m file from mlx file?
I believe that what you are seeing (if you are viewing these in the Matlab editor) is the "Right-hand text limit" line. You can...
2 dagar ago | 0
| accepted
How to Extract 2048 values containing the maximum value?
Note that this plots the group that contains the maximum datapoint in all of the data. It does not "plot the largest 2048 value...
2 dagar ago | 1
| accepted
How to find the zero vaue of a plot?
X=[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20]; Y=[-0.88 -0.7489 -0.6178 -0.4867 -0.3556 -0.2245 -0.0934 0.0378 0.168...
2 dagar ago | 1
| accepted
Display time before the prompt arrows
See this utility on the File Exchange: https://www.mathworks.com/matlabcentral/fileexchange/26471-setprompt-set-the-command-win...
3 dagar ago | 1
| accepted
How to do the example below in MatLab? I am dealing with same sort of problem in matlab
Something like this should do what you want (using made up example data): % simulating read of csv file1 (replace by data1 = re...
14 dagar ago | 1
| accepted
Where is the error in my code?
You need to specify an increment size if you expect r to be a vector. Currently it is a scalar equal to zero. Q will not be a ...
23 dagar ago | 0
help on graph (w/o common matrix plotting built-in functions)
In that case, maybe something like this will get you close. A = randi(2,10,365)-1; x = 1:size(A,2); y = size(A,1):-1:1; for ...
ungefär en månad ago | 0
| accepted
help on graph (w/o common matrix plotting built-in functions)
A = randi(2,10,365)-1 str = repmat(' ', size(A)); str(A==1) = '-'; disp(str)
ungefär en månad ago | 1
Reveresing the order of columns in an array
% Note: use semicolons instead of commas for row breaks so you get 4 columns q = [1 2 3 4; 5 6 7 8; 9 10 11 12; 13 14 15 16; 17...
ungefär en månad ago | 0
Recognise specific pattern in timetable
One approach without requiring the Signal Processing Toolbox: load('answers.mat') % an approximation of your data x = data(:,1...
ungefär 2 månader ago | 0
Extracting 2 Far right characters
One approach that generates a cell array: tt= {'United Kingdom TR';'United Kingdom SR';'United Kingdom WR';'Worldwide TC'}; c ...
ungefär 2 månader ago | 0
How to Rescale X Axis in Plot
Since you didn't show the code you used to generate the plot or include the data, I'll have to guess what the problem might be. ...
ungefär 2 månader ago | 0
| accepted
calculate time from alarm (variabel x) to event (variable y)
Try this t = [0;10;20;30;40;50;60;70;80;90;100]; % in sec; variables are generated every 10 seconds alarm = [0;0;1;0;1;0;0;1;...
2 månader ago | 0
| accepted
Read txt file with no header
This should work for any number of columns and it automatically detects the number of header rows and the variable names. t = r...
2 månader ago | 1
| accepted
How do I resolve these two lines separately?
Another approach B=rand(3,5) A=[0 0 0 1 0;1 1 1 0 0;1 0 1 1 0] idx = B > 0.6 A(idx) = ~A(idx)
2 månader ago | 1
Count number of words per row in a string
In 2020b or later you can also use a pattern with a regex pattern to find (and count) words. It took some experimenting to get ...
2 månader ago | 0
Can yous tell me this block in Simulink
That looks like the XY Graph block, perhaps. It normally isn't orange, however.
2 månader ago | 0
Calculating u and v components from wind direction and speed
Actually, it is straightforward. v (North (y) component) and u (East (x) component) can be calculated from S (wind speed) and D...
2 månader ago | 0
| accepted
How do I calculate the acceleration using only 3D distances?
load acc_dist.mat xyz = cell_of_double_pre_ballsCopy{1}; dxyz = diff(xyz); % difference between adjacent points in xyz coordin...
3 månader ago | 0
| accepted
Plot is not showing anything.
Replace your loop with h= 0.1; %step size for loop t = 0:h:1; for i = 1:numel(t) xt(i) = X0*exp((-S)*wn*...
3 månader ago | 0
How can I use a variable for formatting?
You can also use %*d, like this for k = 1:5 fprintf('%*d\n', k, 2*k); % the first argument (k) is the field width, 2*k is ...
3 månader ago | 1
| accepted
Is there a bug in imread() or imfinfo() with multiframe GIFs in R2021a/b?
Output of your test script theonlymap = 1.0000 0.0824 0.9137 0 0 0 0 0 0 0 0 ...
3 månader ago | 0
| accepted
How to Create/Modify for matrices or matrix
K=5; matA = 1:K matB = repmat(matA, 1, K)
3 månader ago | 1
3D Profile Extrude
x = [82, 80, 65, 38, 82]; y = [82, 54, 36, 94, 82]; x = repmat(x, 10, 1); y = repmat(y, 10, 1); z = (1:10)'; z = repmat(z, ...
3 månader ago | 0
| accepted
Damping and natural frequency
The damping ratio that you calculated is greater than one, meaning this system is overdamped (non-oscillatory). It has two real...
3 månader ago | 1
| accepted
Matlab graph is not drawn
You aren't incrementing k or creating t in your loop. There are also other things wrong with your calculation of x. For one th...
3 månader ago | 0
Try and Catch for multiple conditions
Maybe something like this: if isfield(src, 'DeviceName') Name = src.DeviceName; else Name = 'unknown'; % or, just do...
3 månader ago | 0
Matlab is not recognizing the graph(...) function.
The graph function was added in release 2015b. See doc page here (the info on when it was introduced is at the bottom): https:/...
3 månader ago | 0
| accepted
Filling an array with color points
j = 34; g = 3; A = zeros(j,g); A(:,3) = 1; % put ones in the third column A(:,2) = ([0:j-1]/j).'; % fill in the second colum...
3 månader ago | 0
| accepted