Community Profile

# Sulaymon Eshkabilov

##### Last seen: Today
419 total contributions since 2019

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

View details...

Contributions in
View by

How to replace string by double in cell array

7 días ago | 0

| accepted

How to replace string by double in cell array
use a command: double() To get back your strings use the command: char()

7 días ago | 0

Getting output as an array from while loop
Here is one of the viable solutions: a=0; x = input('Enter the number : ') ii=0; while x<100 ii=ii+1; if rem(x,2)==0...

8 días ago | 0

| accepted

Implement Module Predictive Control on Mathworks example
Launch Simulink, Open Library: Model Predictive Control toolbox/Automated Driving and drag and drop the block - daptive Crui...

8 días ago | 0

Automaticlly converting negative values to 0
Use a command int8() or int16() to store your processed data that resolves your task. e.g.: a= -89; b=int8(a)

8 días ago | 0

| accepted

How to convert 2d matrix to 4d matrix?
It is going to be something like that: X(:,:,:,1)=a; X(:,:,:,2)=b; X(:,:,:,3)=c; X(:,:,:,4)=d;

8 días ago | 0

Automaticlly converting negative values to 0
Store you data in int8 or int16

8 días ago | 0

Automaticlly converting negative values to 0
uint8 cannot store -89 and thus, 0 Thus, store your data in int8 or better int16.

8 días ago | 0

How do I split cells in an array and save data into a bigger cell array?
Here is the alternative solution: arr = {'hello i welcome you';'what is your name';'nice to meet you'}; for i = 1:length(arr...

8 días ago | 0

How do I split cells in an array and save data into a bigger cell array?
Here is one of the possible solutions: arr = {'hello i welcome you';'what is your name';'nice to meet you'}; output = { 'hel...

8 días ago | 0

dsolve error (simultaneous differential equations)
Here is the answer: clear all close clc m = 10; k = 1000; u0 = 0.01; syms y1(t) y2(t) Dy1=diff(y1); Dy2=diff(y2); D2...

8 días ago | 0

| accepted

How can I plot the signal in time domain before and after filtering?
See this example shows everything what you'd need: https://www.mathworks.com/help/matlab/ref/filter.html

13 días ago | 0

Poisson Process for 500 variates
Here is the alternative solution: T = 1; lambda = 12; t = linspace(0, T, 500); k=randi([1,10], 500); f = (lambda.^...

13 días ago | 1

Poisson Process for 500 variates
Why not to use MATLAB's built in fcn: poissrnd()

13 días ago | 0

How do I show which variable is being plotted while using hold?
Here is one of the possible easy solutions: hx = phi_t * B hy = C * phi_t * B hx1 = []; hx2 = []; hx3 = []; hx4 = []; h...

18 días ago | 0

How to draw a table?
use a command - array2table, e.g.: >>array2table(DATA, 'VariableNames', {'Mode_No','Intact','Damaged', 'Frequency'})

18 días ago | 0

discretize stae space model for Kalman filter - Runge-Kutta 4th order
Check your equation that has some sign (-,+) problem (s). Here is a much simpler code: Vin=10; w=2*pi; Ts=w/(2*pi*2000); t...

18 días ago | 0

| accepted

Why I got the error "Operator '-' is not supported for operands of type 'struct'."?
Answer: X= X.data(:,1); TempK = ((X1-32)*5/9)+273.15;

18 días ago | 0

Matlab workspace not showing the cell contents
Hi, It can be explained in a simple way. type in the following commands and try access the created cell array HG as shown in ...

18 días ago | 0

How to make a curve line through data points on surface 3D (curve line fitting in 3D)
Hi, Since you are plotting 3D plot of data, probably you're looking for a surface fit model. Then it is easy to use: cftool a...

18 días ago | 0

you are accessing to your stored created block names in strings via their index numbers. That is it.

18 días ago | 0

Matlab workspace not showing the cell contents
Hi, In the first picture you have accessed the matrix (variable called: f: 1x256 ) not a cell array see the hilighted. In the...

18 días ago | 0

How to print some text in a txt file in another folder?
use: cd('../') That moves one level up. Don't forget to hit accept :)

18 días ago | 0

| accepted

How to print some text in a txt file in another folder?
Please try this code: remove the created folder solutions: if ~exist('Solutions', 'dir') mkdir('Solutions') cd('./...

18 días ago | 0

How to print some text in a txt file in another folder?
Hi, You are almost there except for one missing point, see below: if ~exist('Solutions', 'dir') mkdir('Solutions') c...

18 días ago | 0

can u help me about square pliss, iam using matlab 2018a
use this command: s1=square(2*pi*5*t); % MATLAB is case sensitive!

alrededor de 1 mes ago | 0