Community Profile

# Sulaymon Eshkabilov

Last seen: Today Active since 2019

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

All

#### Content Feed

View by

append (a row) to the end of an excel sheet
This is how you can get it: FName = 'DATA.xlsx'; for ii=1:5 writematrix(magic(3), FN, 'WriteMode','append') end

15 days ago | 0

My first fzero calculates just fine but the one after gives me an error eval: TRY must be a string
There are a few inconsistencies in your codes, i.e., f is a fcn not defined as a fcn handle or fcn file. What is fgraf() fcn? ...

15 days ago | 0

Drawing random lines in rectangular
Some of the loops can be substituted with vectorization operations, i.e.: ... numbLines=30; theta = 2*pi*rand(numbLines, 1); ...

15 days ago | 0

how calculate difference 5 adjacent pixels?
Here is the corrected code (see: row vs. col): for x=2:row-6 for y=2:col-6 difference_of_intensity = abs(m(x,y) -...

15 days ago | 0

I`m new to matlab and I need some help about poles and tf?
Use root locus plot and step response simulations that will answer to your questions, e.g.: Sys=tf([1,17],[1,10,17,114]); pzma...

15 days ago | 0

Solving PDE using pde modeler
Use: meshgrid() and del2()

15 days ago | 0

How could I remove outliers in really small data?
Linear interpolation might be good to use here, e.g.: x = [-9.0000 -8.0000 -7.0000 -6.0000 -5.0000 -4.0000 -3.0000 ...

15 days ago | 0

| accepted

Am I creating dynamic variable names?
What you are doing here is not dynamic variable naming. You're assigning a new variable name from your already assigned data. T...

16 days ago | 0

How to Call a function inside for loop?
Here is the corrected code, but still you should check the equation. The found roots are complex valued: hf = 75:20:350; NEFF ...

17 days ago | 0

Interpolation is wrong?
Here is the corrected code: x=dep_cal2012; y=wc_average; ix = linspace(1, max(x), numel(y)); WC_interp = interp1(ix, y, x,'ne...

21 days ago | 0

Help to transform math formula to matlab
Using the vectorization: format long m=5; jj=1:m; XSum1 = sum(log(jj).*exp(jj.^2)) % Or alternatively Xs = log(jj).*exp(...

21 days ago | 0

Why Does "clear all" Impact Prior Commands in a Script?
In such cases, it is best to use: clearvars instead of clear all

21 days ago | 0

How to solve laplace transform for ODE with initial value condition
Here is the corrected code: syms t s y(t) Y(s) Dy = diff(y,t); EQN = t*Dy+y== cos(t); LT = laplace(EQN, t, s); LT = su...

21 days ago | 0

I have to find the local minima and maxima corresponding to the "peaks" and "valleys" of a data file.
Have you worked with fminsearch() fcn of optimization toolbox: https://www.mathworks.com/help/matlab/ref/fminsearch.html

22 days ago | 0

How can I use Lorenz Attractor code?
You simulated the code incorrectly. Here is how you should run the code in one m-file: ICs=[5, 5, 5]; % Your data t=[0, 20]; ...

22 days ago | 0

How can I make my ODE system run faster
Use a variable step solver instead of the fixed step, e.g.: options = odeset('mass',BigM,'MassSingular','no','BDF','on','MaxOr...

24 days ago | 0

Import Data Fails to open excel file
Use readmatrix() or readtable() which are much more efficient and faster than uiimport() or importdata() fcns that you have used...

25 days ago | 0

Question

How to combine two profiles
Hello MATHWORKS staff, Could you please post a procedure how to combine two different mathworks profiles into one? Thanks mu...

25 days ago | 0 answers | 0

### 0

How to plot graph with multiple values of x in a function
You may also consider to display a legend showing the number of x values taken for calc and plot in every iteration: count=0; ...

25 days ago | 1

How to plot graph with multiple values of x in a function
A small (but crucial) err that is elementwise operation needed, e.g.: count=0; for i=[3,5,7,10,20,100] count=count+1; ...

25 days ago | 1

how can i fit curve for transfer function
Laplace transform (LT) formulation is already an anaytical form solution and if you would like to get a new fit (rational polyno...

25 days ago | 0

How to save/store/recuparate data from inside a nested loop.
This can be done: for X=1:N_aoa initial=[0;aoa(X);0;0]; Y=[initial,zeros(4,N)]; for n=1:N ... %Stuff happens here ...

25 days ago | 0

How to plot values at particular column or row in a 2D matrix
% A is 1024 - by - 256 plot(A(:,250))

25 days ago | 0

Solved

Change the sign of even index entries of the reversed vector
change the signs of the even index entries of the reversed vector example 1 vec = [4 -1 -2 9] ans = [9 2 -1 -4] example2...

25 days ago

Pasteing texts in Matlab script is not working

25 days ago | 0

| accepted

fmincon error occurs without details in Matlab
It is working ok. clearvars;clc; lb = [0, 0]; ub = [1, 1]; A = [1 1]; B = 1; Aeq = []; Beq = []; x0=[0.5, 0.5]; ...

25 days ago | 0

Combine data from 3 tables based on common datetime?
Here innerjoin does not work. It is better to employ a logical indexing approach, e.g.: % D1 is a first table array variable an...

25 days ago | 0

How to read data from excel to a cell?
You can get the data from *.xlsx with a few different data import fcns of matlab. Here are two most recommended data import fcns...

26 days ago | 0