Community Profile

photo

Dimitris Kalogiros


National and Kapodistrian University of Athens

115 total contributions since 2018

Contact

Dimitris Kalogiros's Badges

  • Speed Demon
  • Solver
  • Leader
  • 3 Month Streak
  • Thankful Level 1
  • Revival Level 2
  • Knowledgeable Level 3
  • First Answer

View details...

Contributions in
View by

Answered
Generate Random Number inside a closed area
Run your code many times and store the resulting point ( variable Point) into a file. Then every time you need a random point fr...

8 days ago | 0

Answered
Is there a way to choose what file to open in the command window using input(prompt)?
You can use uigetfile command: disp( "What is the file address to the first city?"); [firstcity,path] = uigetfile('*.txt'); ...

9 days ago | 1

| accepted

Answered
how to represent approximate equal symbol
A suggestion : while a > 4090 && a <5010 % your code end In fact "approximately" is something relative and depen...

9 days ago | 0

Answered
Undefined Function or Variable
I think there is a typo at the formula that calculates R : Something is missing there. Maybe a + or * mark By the way, ca...

10 days ago | 0

| accepted

Solved


Create a "+" flag
Given two odd numbers, [m, n], return a matrix of size m x n which has all elements of the centre column and centre row set as 1...

10 days ago

Answered
Compute probability of different states in a binary distribution
clc; clearvars % input data N=300; % always even x=randi([0, 1], N, 1); % two bits words % 00->0 , 01->1 , 10->2 , 11-...

12 days ago | 0

| accepted

Answered
Zeroing out particular frequency in audio signal
I'm giving you some tips: 1) Use high order FFT/IFFT . For example 8192 or even higher. 2) You have to filter out (by setting...

13 days ago | 0

Answered
Probability Density Function ??
First you have to import data from your excel file After that, you can calculate your PDF function, following this example: c...

13 days ago | 0

Answered
Filter with given group delay and frequency response
One choice is to use a block called Arbitrary Response Filter A second choice could be the usage of a simulink block called Dig...

15 days ago | 0

| accepted

Answered
problems with ifft of bandpass filtered white noise
Hi Anna. Pay attention to these lines of your code: n = 2^nextpow2(L); Y = fft(X,n); Because n>L, matlab adds some zeros at ...

16 days ago | 1

| accepted

Answered
Simple fixed-point iteration method
Dear John Put your function into the same folder with the program (m-file) that calls it.

21 days ago | 0

| accepted

Answered
How to compute the moving average of a signal with 6-hour window length and shifted 15 min at a time?
Hi Mohanad Bellow, you will find an example, where a moving average corresponding to a 6h window, is applied upon a signal take...

21 days ago | 0

| accepted

Answered
Transfer function from power delay profile (PDP)
You can use the following piece of code : % Sampling Rate Ts=1E-3; %Tsampling =1ms % Transfer function h=zeros(530+1); h(...

27 days ago | 0

Answered
Minus powers of a transfer function into Simulink
You can use "Discrete Filter" block , provided by simulink. You can find it here: DSP System Toolbox -> Filtering -> Filter ...

29 days ago | 0

| accepted

Answered
complex envelope in simulink
Sum of two sine signals is a real signal. So, its spectrum is symetrical around zero. A block diagram that produces a "complex ...

1 month ago | 0

| accepted

Answered
About Implementing a AGC
Dear Hari Here you are a simple version of a "feedback" structured AGC clearvars; clc; %% time instances dt=0.001 t=0:d...

1 month ago | 0

| accepted

Answered
How to delay signal input ?
Here is my suggestion:

1 month ago | 0

| accepted

Answered
matlab for beginners and books
Hello You can find many resources for learning matlab. Here you are a video-series on youtube: Learning Matlab on youtube

1 month ago | 0

Answered
matlab code help for equation solving
Hi A. Hossain Try this: clear; clc; syms w d k d=100 g=9.8 for w=0:0.01:10 fprintf('----- w = %f -----\n', w); ...

1 month ago | 0

| accepted

Answered
Moving average filter for large dataset
Hi Ajay You can try an iir filter like this clear; clc; %supose x contains your data. % here , for simplicity, x is a cons...

1 month ago | 0

Answered
Solution of this non-linear eqution
Hi A. Hossain Try this: clear; clc; syms w d k d=100 g=10 for w=0:0.1:20 fprintf('----- w = %f -----\n', w); ...

1 month ago | 0

Answered
From latitude,longitude, elevation to cartesian coordinates
I suggest to use deg2utm

11 months ago | 0

| accepted

Answered
Amplification correlation for signal processing
Suppose that you have two (discrete time) signals x[n] and y[n] where . You can make them "unity energy" by using the follow...

11 months ago | 0

| accepted

Answered
find the maximum value of a function
Hi Ken Use the following script in order to analyse your function: clearvars; clc; close all; syms x % definition ...

11 months ago | 1

| accepted

Answered
How can adjust the delay ?
If you want to insert "negative" delay (-0.002) at one signal x(t) , into your simulink model you can do the following: Add 0.0...

11 months ago | 0

| accepted

Answered
How to write the script file for the following questions.
clearvars; clc; close all; syms n % s=1/2 + 1/2^2 + 1/2^3 + 1/2^4 +... N=10; S=symsum(1/(2^n), n, 1, N) ...

11 months ago | 0

Answered
Plot an ellipse,whose length of major axis (a), length of minor axis (b) and center (h,k) in the domain of x->[0,1] in MATLAB
I suggest the following script : clearvars; clc; close all; syms x y a b h k % ellipse axis a=2; b=1; ...

11 months ago | 1

| accepted

Answered
how can i sample this code
clear all; clc; close all; a = 1.2; K =0.0017; Fs = 10E3; % sampling frequency 10KHz Ts = 1/Fs; % sampling ...

11 months ago | 0

Answered
how to get zero mean normalized input
If you already have produced an input signal xin, before using it, you must remove its dc component: xin=xin-mean(xin) b...

12 months ago | 0

Answered
transfer function in simulink
I suggest to use LTI system : <</matlabcentral/answers/uploaded_files/136275/tf.jpg>> But before you try...

12 months ago | 0

| accepted

Load more