Community Profile

# Sulaymon Eshkabilov

Last seen: Today Active since 2011

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

All

#### Content Feed

View by

How to get tangent line from a point not on the curve
Note that the point at which you're trrying to compute real valued tangent does not exist of the given y(x) fcn. Therefore, if t...

1 dag ago | 0

Loop through every nth row in a data frame in a function
The simpler and more efficient way would be using a logical indexing option or just use necessary indices, e.g.: % DATA input/g...

2 dagen ago | 0

How to use matlab to draw such a diagram？
What are your given parameter values and equation? You can use similar approach as shown in this example: [x,y]=meshgrid(linsp...

3 dagen ago | 0

Need help with the assignment from uni
You can try using fsurf() to get a cup like shape - see this DOC: R1 = 7.3/2; R2 = 5.5/2; T = asin(R2/R1); X = @(x,y) R1*c...

3 dagen ago | 1

Can we use standard deviation of color image as a contrast value?
Numerically to find the differences of the two imaes (of the same size) and then compute the std of the computed differences are...

6 dagen ago | 0

How can I open an Oxfor Instrument Pulsar .fid file in MATLAB?
If it is a binary data file, then you can use fread(). See this doc how to employ fread(): https://www.mathworks.com/help/matla...

7 dagen ago | 0

How do I loop over all columns in a cell array?
Use this code as given here then you will not get the errors which are shown in your message thread: load('balls_data.mat') ID...

7 dagen ago | 0

dlmwrite vs. writematrix: speed
If you run this simulation on the MATLAB desktop and shift the orders, their elapsed time will be similar. Anyhow it is interest...

8 dagen ago | 0

| accepted

can we make 3D mash plot from eq y(x)
You can consider the following code for 3D simulation of the projectile: % Projectile motion simulation for t = [0 : 25] second...

8 dagen ago | 0

How do I align my matrix elements
This displays ok here. In your case, change the font size of the command window or use live editor that will display correctly ...

8 dagen ago | 0

| accepted

Plotting streamlines in polar coordinates
Use quiver() plot function to plot vector fields -see this documentation: https://www.mathworks.com/help/matlab/ref/quiver.html...

8 dagen ago | 1

Curve Fitting with Complex Value
Use the nonlinear fit with least squares method lsqcurvefit() - see this documentation: https://www.mathworks.com/help/optim/ug...

8 dagen ago | 1

How do I loop over all columns in a cell array?
Here is the complete code to calculate all outliers: load('balls_data.mat') % Note balls_data is a cell array contains some...

8 dagen ago | 0

How to access data in my cell array?
If understood your question correctly, here is the corrected code: spx = [1*10^6; 1200; .08]; dpx = [10*10^6; 1500; .22]; frx...

8 dagen ago | 0

| accepted

Plot shows markers, but no lines, no matter what is being plotted
Here is the corrected code: x = linspace(0,10,100); y = exp(x/10).*sin(4*x); scatter(x,y) % In case, you want with lines: x...

8 dagen ago | 0

How to trim start and end of time series data?
Here is how it can be done using an index option: X1 = [0.978184526233207 1.09489935704680 1.59164669497844 1.04748369986280...

15 dagen ago | 0

| accepted

calculate differentiation with large coefficient
Here is a bit improved solution: omeganol=2.5; E=50; I=30; L=600; syms y(x) y(x)=vpa(omeganol/(120*E*I*L)*(-x^5+2*600^2*x^...

16 dagen ago | 0

How to display an image and a plot on the same figure while controlling axes
Here is how it can be attained: my_image = uint8(linspace(1,0,720)'*linspace(1,0,1280)*255); % some diagonal color gradient ...

16 dagen ago | 2

Please tell me the best way to load .Raw ct image into MATLAB?
Use image(), imshow(), imagesc(): % To view Tiff image: A = tiffreadVolume('TIFF_Image.tiff'); % image() image(A(:,:,1)) ...

16 dagen ago | 0

Unable to Join Tables and Timetables
Note that both tables should have identical variable names to concatenate them, see - your example 1 (corrected): Input = '2023...

18 dagen ago | 0

| accepted

I have a problem in the annexed excel file there are two tables, first table give the graph representing geological layers I need to get the second table with Matlab Code
If understood your explanations, here is how to collect the data from table to w.r.t xc range values and constant values of z1 ....

18 dagen ago | 0

Plot lines appear fuzzy
One quick solution is to enlarge (Maximize) the figure window and then to restore (Restore) it ints original size using the righ...

18 dagen ago | 0

I have a problem in the annexed excel file there are two tables, first table give the graph representing geological layers I need to get the second table with Matlab Code
Here is the solution. readmatrix() is option 1 and xlsread() is option 2: D = readmatrix('Salt Dome Interpretation.xlsx'); % D...

18 dagen ago | 0

How to set the simulink in fixed solver mode and ode4 by default, so that while opening a new blank simulink page, the solver is at fixed step solver and ode4 by default ?
First, see how to adjust the solver - DOC Then follow the steps - given in this thread

19 dagen ago | 0

what is NaN matrix?
It depends on what operation you have performed. The means of NaN and Inf are: NaN means not-a-number, i.e., 0/0 (also, missi...

19 dagen ago | 1

| accepted

all ODE function returns NaN
Note that the found numerical solutions of y(:,1), .. y(:,5) are in different scales and therefore, it is appropriate to polt th...

20 dagen ago | 0

How can I fix value of vector inside for loop ?
Your assignment is not quite clear but to the best understandinbg of mine. Note that repelem(A,1) if A is a scalar, the result i...

20 dagen ago | 1

| accepted

all ODE function returns NaN
There are two ways to address this issue. (1) Let ode15s to select appropriate step size; (2) make the step size much smaller th...

20 dagen ago | 0