Community Profile

# Serhii Tetora

Last seen: Today Active since 2019

Research assistant at Otto-von-Guericke University Magdeburg

All

#### Content Feed

View by

Question

Substract fitted values from original data
I want to substract fit values from original data. Here is my code. What is wrong? Why Z and fitresult values are not equal? (se...

1 year ago | 1 answer | 0

### 1

Question

Error by creating video from images
I'm creating images from a data in parfor-loop. Then i want to create a video from this images, but have some error. I don't und...

1 year ago | 2 answers | 0

### 2

Storing results from for-loop
idx = []; for i = 1:length(grfcutl) a = grfcutl{i}; idx(end+1) = find(a<=0,1,'first') end

1 year ago | 0

| accepted

How can I insert a detail in the peak of the curve ?
use function axes for zommed peak. you can define those Position and Limits. and annotation('arrow') for arrow.

1 year ago | 0

How to read text file with float and string types into matrix
%% Import data from text file % Script for importing data from the following text file: % % Auto-generated by MATLAB on 26-Au...

1 year ago | 0

How to open .mpr data?
It's associated to a data file format of Visual FoxPro

1 year ago | 0

| accepted

Curve fitting with a constrained y value to Zero
clear;close;clc x = [4.4 21.1 37.8 54.4 ]; y = [2.367224698 0 -1.857318083 -3.276015126]; w = [1 1000 1 1]; [xData...

1 year ago | 1

Code for 'Reverse a Vector'
I had no this error with v = [ -75 -22 57 13 -34 2 -94 -49 -11] You can also use w = flip(v) It is same..

1 year ago | 0

How to display cfit data on plot
coeffs = coeffnames(fitresults); coeffvals= coeffvalues(fitresults); ci = confint(fitresults,0.95); str1 = sprintf('\n %s = %...

1 year ago | 0

How to choose data with three conditions to plot contour
x(x<0 & x>-25) = 0;

1 year ago | 1

| accepted

plot the month and year in X-axis
clear;clc;close all tab = xlsread('data_final'); Date = datetime(tab(:,1),tab(:,2),1); data = tab(:,3); [Date,I] = unique(...

1 year ago | 0

| accepted

peak finding of a graph
x=V1_1_new; y=y1_1_new; [pks, locs] = findpeaks(y); plot(x,y,x(locs),pks,'o')

1 year ago | 0

Taking values from a Matrix and Inputting into an equation, using Loops
A = [1 2 3 4 5 6 7]; for i = 1:length(A) x = A(i); y(i) = x^2; end y

1 year ago | 0

| accepted

how add Month label in x axis
clear; close all; clc month = {'apr19', 'may19', 'june19', 'july19', 'aug19', 'sept19', 'oct19', 'nov19', 'dec19', 'jan20', 'fe...

1 year ago | 0

| accepted

How to find the limit of a transfer function defined using tf?
sys1=tf([20 20],poly([-4 -3])); [Num,Den] = tfdata(sys1,'v'); syms s sys_syms=poly2sym(Num,s)/poly2sym(Den,s); lim = limit(s...

1 year ago | 1

| accepted

How to make a gif or video file from multiple *.dat* files using Matlab?
use getframe and writeVideo in for-loop

1 year ago | 0

Taking too long to get the output (Wilson theta method)
Without loops it runs faster. Please check it carefully clc;close all;clear; MA = [8070000,0,-629468070;0,8070000,112980;-6294...

1 year ago | 0

| accepted

How to plot multiple fitted curves in single plot with different colors and legends
You can predefine your colors for example as colors = {'r','g','b'}; % or colors = colormap(jet(3)); % etc. and than in lo...

1 year ago | 0

How can I insert two quadratic trendlines for two datatsets (one each) on the same figure?
clc; close all; clear; x = [0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0]; % x plot y1 = [1660.383 1665.397 1671.268 1678.238 1...

1 year ago | 0

| accepted

How to remove small indicator lines in the x and y-axis of a plot?
You can remove this small lines with axes property 'TickLength': set(gca,'TickLength',[0 0])

1 year ago | 1

| accepted