Community Profile

# Abderrahim. B

### CES

Active since 2021

Abderrahim Belissaoui

Programming Languages:
Python, C++, Java, MATLAB
Spoken Languages:
Arabic, English, French
Professional Interests:
Signal Processing, Control Systems, Wireless Communications, Radar

All

#### Content Feed

View by

Converting 1d signal to 2d image
Hello! If i understood your question properly, you want to convert time series (signal is type of time series) to like-image to...

ungefär 2 månader ago | 0

I want to run my matlab script and dump that code into simulink
Hi! I understand that you have a script that you want to use within a Simulink model. I recommend that you use MATLAB Function ...

Finding unknow of equation
Hi! Matrix A is also unknown for us ^^ ! Workflow to find the unknowns is as follow: Derive equations A*B = C Create symbol...

How to make a m*2 matrix into n number of 2x2 matrices
Split A A = randi(10, 208, 2) ; % a mtarix of size 208x2 size(A) B = reshape(A, 2, 2, []) ; Access 2x2 matrices B1 = B(:,:...

How do I export 8 lists of S-parameters into one s2p file?
Hi! Using python I want to export the data into the s2p format . Assuming you wanted to say Using MATLAB..... Use rfwrite, che...

| accepted

Overwrite table data with 'Yes' or 'No' according to the logical index
Hi! Maybe this: load sample1.mat sampleinputarr = string(sampleinput.Variables) ; tvIdx = sampleinputarr(:,1) == "TV" ; sam...

| accepted

How to view saved matlab .fig file?
Use openfig

How to convert accelometer data voltage into accleration m\s^2?

How can I find the peak values of a curve?
Hi! Use findpeaks for each curve. Put findpeaks function in a for loop together with the plot function. Demo: randData = rand...

| accepted

Write file(s) with all properties of a MATLAB model
Hi! I prefer to use fprintf with fopen and fclose. Once you learn how to design formatSpecifications you will always use fprin...

How to plot two curves (created from curve fitting toolbox) on the same graph?
Hi! What I suggest is that you convert the code generated using the app to a function, modify it then use it within a for loop....

How to make data of equal array length?
Hi! Try this: N = 1:1:115 ; size(N) nL = length(N) ; FD = linspace(0,0.225399, nL) ; size(FD) AD = linspace( 0, 0.00404...

| accepted

Plot intervall function in Matlab
Hi! Use piecewise and fplot. syms t xThree = piecewise( t <= 2 ,1 ,(t > 2) & (t <= 4), t-2, t >= 4, 1) fplot(xThree) Hope t...

how can I draw bifurcation diagram for given code
Hi! MATLAB does not have a function to plot this kind of diagrams, but it has capabilities that you can use to write your own s...

How can I plot scatter triangle?
Hi! I don't think there is a ready in-build function in MATLAB that you can use. However, this file exchange has functions that...

I want to shift vector values one by one to the left
What about this: num = [1 1 1 1 1 0 0 0 0 0] ; for ii = 1: nnz(num) num = circshift(num, -1) end

Generate diagram in linear scale
Hi! See these 2 methods: P = [1 10 -13 -118 120] ; Method 1: figure plot(-100:100, polyval(P, -100:100)) Method 2: myPoly...

| accepted

get the data of dsp.spectrum Analyzer
Hi! To get data shown in spectrum analyzer, use getSpectrumData method. data = 2.*randi([0 1], 1e6, 1)-1; txFilter = comm.Ra...

| accepted

How can I select the "Neue Helvetica" instead of the default "Helvetica" as "fontname" ?
Hi! Use set: get(gca,'fontname') ; set(gca, 'FontName', "Neue Helvetica") ; get(gca, 'FontName')

| accepted

How to change only 1 bar in a graphic bar that is grouped
Hi! Try something like this: y = [2 2 3; 2 5 6; 2 8 9; 2 11 12]; barH = bar(y) ; barH(1).FaceColor = "flat" ; barH(1).CData...

Draw a 3D array containing only 0,1 into a 3D image
Hi! You have a volumetric data; I recommend that you use Volume Viewer to visualize it. An example below: M = randi([0 1], 10...

Heatmap plot temperature vs time
Hi! I know what is the issue. You have a timetable not a table and the first column related to time is not considered as variab...

| accepted

How to calculate the peak-to-peak amplitude of a waveform?
Hi! Use peak2peak function. Demo below: load('ecgSignals.mat') t = (1:length(ecgl))'; plot(t, ecgl) peak2peak(ecgl) ...

How to remove Noise using histogram In Matlab
Hi! Below is a workflow based on groupcounts function: clear load noisydata.mat figure subplot(211) plot(dataset, 'o') ti...

How can I store video of my for loop code?
I ve written the below code that you can refer to. clear t = 0:1/100:1-1/100; vObj = VideoWriter('AnimPPlot.avi'); open(vOb...

| accepted

How to write this in the for loop?
Try this -- for n = [1:100 200:300] continue % adding this just to demonstrate end

How can I add variables on the plot title
Hi! Pass the for loop index to num2str function then pass this to title. Something like this: time = 0:1/100:1-1/100 ; for ...

| accepted

How to apply color to histograms?
Hi! Not sure if this is what you want, but the concept is there. Work on the histogram handle and use colormap. websave("cible...