Community Profile

photo

Sulaymon Eshkabilov


Last seen: Today Active since 2019

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

Statistics

All
  • MATLAB Mini Hack Participant
  • MATLAB Central Treasure Hunt Finisher
  • Guiding Light
  • Revival Level 4
  • Commenter
  • Speed Demon
  • Draw Letters
  • Thankful Level 5
  • Leader
  • CUP Challenge Master
  • Knowledgeable Level 5
  • 12 Month Streak

View badges

Content Feed

View by

Answered
I am trying to disallow the user from inputting non-sense answers.
You can try using ischar(), e.g.: A = input('Enter square matrix: '); if ischar(A) error('Wrong entries') else dis...

ungefär 4 timmar ago | 0

Answered
what is magnitude of amplitude in real world?
Here in your exercise the amplitude is ~0.1 - see e.g.: fs=1000; % 1kHz fv=200; amplitude=0.1; t= 0 : 1/fs :10; y= amplitud...

ungefär 4 timmar ago | 0

Answered
I am struggling with letter b and keep getting this as an error. Variable b must be of size [1 1]. It is currently of size [3 4]. Check where the variable is assigned a value.
One typo B instead of b in computing max of log10(B): A = [11.3 25.4 -58.6 66.2 82.8 37.9 41.5 3.6 60.7 14.2]; B = [1.256 3....

ungefär 4 timmar ago | 1

Answered
Finding best fit function for a data set
You can try cftool - curve fitting toolbox, or use fit(), e.g.: D = readmatrix('Samples_Data.xlsx'); X = D(:,2); Y = D(:,3); ...

ungefär 4 timmar ago | 0

Answered
why am i getting error with this code?
Without looking at your data, it is diffiuclt to address your question properly. Thus, pl., post your sample data.

ungefär 11 timmar ago | 0

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

ungefär 11 timmar ago | 1

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

ungefär 11 timmar ago | 0

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

ungefär 11 timmar ago | 0

| accepted

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

ungefär 11 timmar ago | 0

Answered
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

ungefär 12 timmar ago | 0

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

ungefär 12 timmar ago | 0

| accepted

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

en dag ago | 0

| accepted

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

en dag ago | 0

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

en dag ago | 0

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

en dag ago | 0

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

en dag ago | 0

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

en dag ago | 0

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

3 dagar ago | 0

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

3 dagar ago | 0

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

3 dagar ago | 1

| accepted

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

3 dagar ago | 0

| accepted

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

3 dagar ago | 0

Answered
reading an combining excel files
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 dagar ago | 0

Answered
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 dagar ago | 0

Answered
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 dagar ago | 0

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

3 dagar ago | 0

Answered
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 dagar ago | 0

Answered
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 dagar ago | 0

Answered
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 dagar ago | 0

Answered
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 dagar ago | 0

Load more