Community Profile

# Sulaymon Eshkabilov

Last seen: Today 2019 年からアクティブ

research interests: vibrations, optimal control, system modeling and simulation, mechatronics... coding

All

バッジを表示

#### Content Feed

why am i getting error with this code?

How do I plot the trajectory of an object given time (s), initial velocity (m/s), and angle?
Heres is a nice code proposed by Jan: https://www.mathworks.com/matlabcentral/answers/308853-how-do-i-create-a-projectile-motio...

How to Plot a 3D Waterfall Plot given X, Y, and Z datasets
Use meshgrid() and waterfall() fcns, e.g.: Length = (1:181).'; Steps = (1:556)'; [X,Y] = meshgrid(Length, Steps); Z = X.^2+Y...

Plot Different Line Styles using a for loop plot
Here is how you can get this plot: clf; close all L=0:100; L_bar = 25; sigma_d = 0.25; %[0.25, 0.5, 0.75, 1.0]; % How the di...

| 採用済み

How to make a line-plot? Time series
Here is one of the possible solution codes: table_a = readtable('Data1.xlsx'); table_a.schoolyear = table_a.year; table_a.sch...

I have simple divisions between integers and I always get another integer as the answer. But I want at least three decimal places. I am using MATLAB R2022b
Use format. E.g.: B = 1; C = 5; A=B/C format short A format long A format bank A format rat A format long g A

why is my ea not being recognized?
There are a few inconsistencies. (1) The simulation in [for ... end] loop never reached due to if condition f(xl)*f(xu) <0. Th...

| 採用済み

How to align multiple signals?
Here is one of the viable solutions to compute resonant frequencies of each signal and find out if their are coherent: S1 = loa...

1日 前 | 0

| 採用済み

Index in position 1 is invalid. Array indices must be positive integers or logical values
There are a couple of inconsistencies that cause this problem in the code: % currentColumn = currentColumn - 1; % Return to b...

1日 前 | 0

How to replace two symbolic variables with two (1x3) arrays and result in a (1x3) array?
There are a few different ways to get it done. One of the possible ways is the next one: % r and s arrays that will replace x a...

1日 前 | 0

How to align multiple signals?
One fundamental question for signal processing is a "must", that is "what is the data sampling time or sampling frequency?" Pl....

1日 前 | 0

How can I increase the size of matrices in cell arrays with each iteration of a loop?
There are a few different ways to create such as cell array. If to get it done in a loop: rng(1) % To replicate at any time an...

1日 前 | 0

How do I create a transfer function of a high order
It can be done this way: s = tf('s'); G = (14.14*s^2 + 318.2*s + 707) / ((s^2 +20*s+101)*(100*s+1)*(0.2*s^2 + 1.2*s+1)) % Sim...

1日 前 | 0

invalid use of operator
The corrected syntax of this is: function out = modfunc(x,a); out = a(1)*exp(a(2)*x);

2日 前 | 0

How can I set the AWGN simulink block to get like this m-file setting >>> awgn(x,SNR,'measured');
One of the possible ways of attaining this is to use MATLAB Fcn block and edit the MATLABV fcn. See the attached simple Simulink...

2日 前 | 0

How can I plot this date time graph?
Here is how you can get the plot: load('Years.mat') N = numel(Climatology.HeightSeries); plot(1:N,Climatology.HeightSeries), ...

2日 前 | 1

| 採用済み

phase portrait error when run
Here is the corrected code: clc; clear figure1=figure; axes1=axes('Parent',figure1,'FontSize',13); grid on; box(axes1,'on')...

2日 前 | 0

| 採用済み

x values when taking a numerical derivative
There will be some significantly different results from diff() and gradient() if the increment of x varies. See this simulation:...

2日 前 | 0

There are a few different ways to get this task done. One of them is this one if your data files have the same number of numeric...

3日 前 | 0

Convert Mat files to csv files
It can be done in three major steps: Step 1. Load data from *.mat file FN = input('Enter *.mat file name: ', 's'); D = load(...

3日 前 | 0

x values when taking a numerical derivative
Yes, you are right, e.g.: x = [0 .2 .3 .45 .65 .75 .96] y = [-3 10 11 12 13 12 9] dydx = diff(y)./diff(x) yyaxis left ...

3日 前 | 0

Error when importing data
Use one of these functions - readmatrix(), readtable(), readcell(), which are recommended. They are efficient and easy to handle...

3日 前 | 0

Code for frequency of a number of bins
This is how you can plot hist() or histogram(), e.g.: D = round(100*(randn(1000, 1)),0)+375; figure hist(D, max(D)) figur...

3日 前 | 0

How to find a gap in a table
If understood your qyestion correctly, you are trying to remove the rows of data in any row there is a missing data. If so, use:...

3日 前 | 0

can anyone please tell me what is this block
From you provided image, it looks a subsystem. The subsystem components can be adjusted using parameter values. Building a subsy...

3日 前 | 0

Count number of sheets in excel file
It is recommended to use: sheetnames() instead of xlsfinfo(), e.g.: clearvars D = uigetdir(pwd, 'Choose a folder to import XLS...

3日 前 | 0

what is the most efficient way to write multiple plots to the local drive?
In terms of time efficiency, exportgraphics() is faster than saveas().

3日 前 | 0

Area under the Peak
Here is the corrected code; clearvars; clc load('data.csv') X = data(:,1); Y = data(:,2); plot(X,Y) findpeaks(Y,X,'MinPe...

3日 前 | 0

| 採用済み

How do I convert ERA Interim precipitation to get total precipitation in area?
Here is how to compute annual and weekly averages of the data given in nc file. unzip('ep1.zip') vardata=ncread('ep1.nc', 'tp'...

3日 前 | 0

| 採用済み

How to display specific values in xticks?
Here is the corrected code: clearvars; clc;close all; figure; clf('reset'); %data1=[0.0982000000000000 0.10000000000000...

3日 前 | 0

| 採用済み