Community Profile

photo

Bora Eryilmaz

MathWorks

Last seen: 5 days ago Active since 2011

Statistics

All
  • Knowledgeable Level 4
  • Knowledgeable Level 3
  • First Review
  • Revival Level 3
  • First Answer
  • Commenter
  • Solver

View badges

Content Feed

View by

Channel


Urban Informatics
IoT dashboard demonstration for the Urban Informatics course.

8 days ago

Answered
How to clear workspace from a function?
Functions do not keep their variables across calls to them unless a variable is specifically defined in the function using the "...

15 days ago | 1

| accepted

Answered
Comparing two curve fits (using AIC?)
The lsqcurvefit returns the residual norm of the fit. The model that has the least residual norm would be the "best" one by this...

19 days ago | 0

Answered
Multiply structure by a constant
You have to cycle through the individual fields of the structure: s = struct('a', [1 2 3 4], 'b', -1) for f = fieldnames(s)' ...

19 days ago | 0

Answered
Plotting date and time
tdata = { ... '04/07/2022 18:00', ... '05/08/2022 19:30', ... '06/08/2022 11:30' }; ydata = [10, 20, 15]...

19 days ago | 0

Answered
closest value to zero excluding the first one?
load('var.mat') [~,I] = sort(abs(dis_y), 'ascend'); % Closest value to 0: dis_y(I(1)) % Second closest value to 0: dis_...

19 days ago | 0

Answered
I am getting the message "execution of script matlabtb as a function not supported"
See the note in the documentation page: https://www.mathworks.com/help/hdlverifier/ref/matlabtb.html "Enter this command in the...

19 days ago | 0

| accepted

Answered
How to arrange input fields straight below each other using inputsdlg?
You won't get perfect alignment, but you can pad the prompt strings with empty spaces: prompt = {... 'ParticipantID'; ... ...

19 days ago | 0

| accepted

Answered
Unable to read data from text file in matlab
The file your are looking for is probably not there, or at least, not on the MATLAB path. See what fid is: if it is -1, then you...

19 days ago | 0

Answered
Why doesn't the for loop work?
p = isprime(p) gives you a logical vector, similar to p = [true true false true] When you try to assign i to p(i) it converts ...

25 days ago | 0

Answered
Error: Not enough input arguments
There are probably other array concatenation issues in your equation definitions, but regarding your current issue, remove the c...

25 days ago | 0

Answered
How to input corresponding data from separate matrices
A = [1 2 3 4 5 6 7 8 9 10]'; B = [ 2 3 1 7 9 10 4 6 5 8; 12 43 64 94 27 58 64 13 90 74]'; % Iterate over every element of A ...

26 days ago | 0

| accepted

Answered
Add one year to date
You can use the datetime and years commands to do what you want: date = '2022-01-05'; d = datetime(date) d1 = d + years(1) s...

26 days ago | 0

| accepted

Answered
How to pad zero in string using sprintf
This should work on both char arrays as well as strings: a = { '1010' '111' '010' '10' '101...

26 days ago | 2

Answered
How to implement a transfer function with variable coefficients?
The top part of your first diagram does not implement 1/(b+s). To confirm this, label the output of the top sum block as e. The...

26 days ago | 0

Answered
Scaled Step Response & Scaled Ramp Response of Transfer Function
Since responses of linear time-invariant (LTI) systems have the same shape for various amplitudes of a given input signal and ar...

27 days ago | 1

| accepted

Answered
Different tick values on same axis
You can generate a ticks vector, which should be sorted and with unique elements: a=0; b=4; c=0; d=6; g=1; dxs=0.2; dxf...

27 days ago | 1

Answered
How to change corrplot line and scatter dots properties?
Get the handle of the plot out and modify the desired properties: [~,~,h] = corrplot(rand(100,2)) h(1,2) h(1,2).Color = 'r'; ...

30 days ago | 0

| accepted

Answered
auto correlation time in matlab
"Autocorrelation time" most likely means the lag (in days, in your case) where the autocorrelation sequence of your data it at a...

1 month ago | 0

Answered
Trying to copy a column from a array into a tall array
Use tall() around the new data column: T = tall(rand(10,2)); t = rand(10,1); T(:,2) = tall(t);

1 month ago | 0

Answered
Why am I obtaining incorrect values for Lipschitz 1/2 norms using the central difference method?
Unless I misunderstodd something, the derivative of is . Within the domain of [0,1], the maximum absolute value of this is...

1 month ago | 0

Answered
I am trying to do a scatter plot with 2 different Y axes with different scales using imported data on a graph.
% Dataset in a table T = table((1:100)', cumsum(rand(100,1)), cumsum(rand(100,1)), 'VariableNames', {'Time', 'Data1', 'Data2'})...

1 month ago | 1

Answered
How can I visualize by frequency for frequency range 0 - 70.87Hz? (EEG_1=3.8088)
load('VEPdata1.mat') subplot(211) plot(EEGdata) subplot(212) pspectrum(EEGdata, fs) ax = gca; ax.XLim = [0 0.072];

1 month ago | 0

Answered
FSOLVE was working until enclosed in a function - difficult for me to interpret error
The variable pKb that you pass to the function is not initialized as global and assigned a value, so it is passed as [] to the f...

1 month ago | 1

| accepted

Answered
How to plot the phase margin?
The transfer function 20/(s+1) is your controller. As it is, it does not give you a 50-degree phase margin. You need to modify t...

1 month ago | 0

| accepted

Answered
Hello, I would like to convert this mathematical equation into MATLAB code.
x = rand(100,1); N = numel(x); num = (sum(x)/N)^2; den = sum(abs(x.^2)) / N; s = num / den

1 month ago | 1

Answered
Have title of plot change IF edit field has text, otherwise default
You are comparing the edit field object itself to 0, instead of the content of the edit field. Try if ~isempty(app.GraphTitleEd...

1 month ago | 0

| accepted

Answered
How to make lines at given angles?
Looks like you are actually looking for 4 lines since angles of 0 and 360 would produce the same lines. But here is the for-loop...

1 month ago | 0

| accepted

Answered
How to count the total number of blink?
You can use a peak detection algorithm such as the islocalmax() command: https://www.mathworks.com/help/matlab/ref/islocalmax.ht...

1 month ago | 0

| accepted

Answered
Retrieve the coordinates of the point from the graph
If you want to do it manually on the plot by clicking with the mouse at or near the intersections, and get their coordinates, yo...

1 month ago | 0

Load more