Answered
How can I plot longitude, latitude and egm2008 geoid height of about 1421 grid points using the color bar as the height
hello problem fixed - see the parameters used in importdata (delimiter and num of header lines) also I noticed the name of th...

5 years ago | 0

Answered
FIND function with multiple conditions
hello Nadia I have tried another approach , by looking at the 2 nearest points to zero crossing points of the vector defined as...

5 years ago | 0

Answered
Getting an error : In an assignment A(:) = B, the number of elements in A and B must be the same. with my multiple plotting code!
hello error is due to lack of indexing x on the right hand side of the equations x= 0:0.01:pi; n= length(x); y= zeros(1,n)...

5 years ago | 0

| accepted

Answered
why cant we use fourier series for non periodic signals?
Any repetitive signal in this world can be represented in terms of sine and cosine that 's the key point

5 years ago | 0

Answered
how to open an external text file, identify two strings and save the lines of the text file where the two strings appear
hello Hugo see below Filename = 'sample_text.txt'; [Pattern1_line, Pattern2_line] = extract_data(Filename); %%%%%%%%...

5 years ago | 0

| accepted

Answered
How to repeat a pattern on xticks?
hello this is an example for 20 repetition of the 5 letters pattern + 90° rotated plot(1:100,randn(1,100)); set(gca,'XTick',...

5 years ago | 1

Answered
Scatter point with matrix blocks
hello this coud do the trick example below : %% generate a test matrix A = round(10*rand(20, 20)); %% visualize the ...

5 years ago | 0

Answered
not geting the plot and my loop is not working
hello consider indexing your variables sigma=0.047193; V_tip=180; W=180; Cd_avg=0.01; R=2.235; Rv=8...

5 years ago | 1

| accepted

Answered
PD controller (Time domain)
hello again so this is a modified code : the integration process computes the velocity first (from acceleration) , then the ...

5 years ago | 0

| accepted

Answered
PD controller (Time domain)
a very simple and straigthforward simulation without much science behind : NB : controller and plant in series in the main pat...

5 years ago | 1

Answered
conditional data selection and saving back to file
hello this is my suggestion NB the input data I have changed the delta to 1 so that it works for the tasks you asked clc ...

5 years ago | 0

| accepted

Answered
Obtaining 2 highest peaks of spectrum in dB
hello again ! you should probably use findpeaks once the spectrum is in dB (my own preference) otherwise , you have seen in ...

5 years ago | 0

| accepted

Answered
Reduce Matrix size with interpolated data arrays
hello simply use a 2D interpolation with the appropriate new Xq and Yq vectors interp2 2-D interpolation (table lookup). ...

5 years ago | 1

| accepted

Answered
plot regression line through first 5 peaks
hello you can directly ask findpeaks to search only the 5 largest peaks : [...] = findpeaks(...,'NPeaks',NP) specifies t...

5 years ago | 0

| accepted

Answered
How can I plot a txt file in a GUI?
hello for each case, once you have loaded the data you can easily plot them like this : data1 = load('yk130505sk403.txt'); ...

5 years ago | 0

Answered
Is it possible to fill a vector with my iterative results?
hello simply index your output variable (C) - I also tweaked a bit the code in some other areas... clc clearvars C0 = 3;...

5 years ago | 1

Answered
Save matrix in for loop
hello why not simply store the T1 and T2 as cell arrays indexed with the loop index i ? for i = 1:429 ...code here .......

5 years ago | 0

| accepted

Answered
How can I calculate the Savitzky-Golay derivative at first/end points?
hello this could help you to create 1st and 2nd derivatives with better (less noisy) results vs diff clc clear all Fs = 1...

5 years ago | 0

Answered
Time domain and frequency domain signal generation and plot
hello here you are hope it helps clc %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % load signal %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...

5 years ago | 0

| accepted

Answered
fft is not matching with analytical solution
Hello I had to remove the heaviside as I dn't have the toolbox of it; Anyway this code gives the right plot of fft amplitude ...

5 years ago | 0

| accepted

Answered
How to generate multiple random combinations of word pairs with specific restrictions on avoiding repetition?
@ Abi this is the last iteration of the code Actions={'spin', 'pick up', 'push', 'touch', 'sh...

5 years ago | 0

| accepted

Answered
Slow for loop string comparison
hello for / if loops will make this very slow here my suggestion / demo code for faster method : t1 = datetime(2000,11,1...

5 years ago | 0

Answered
Filter a noisy signal
hello you can use many ways to lowpass filter your data existing matlab functions to smooth noisy data is smooth or movmean ...

5 years ago | 0

| accepted

Answered
How do I save the error data for each iteration?
hello simply put err computation in the main loop and index it function [x_i,err,yi] = bisect(f,x_l,x_r,delta) yl = feval...

5 years ago | 1

| accepted

Answered
How to conduct octave analysis on frequency domain siganal?
hello this is a code that does what you are looking for now this simply do a linear average of the spectrum amplitude between...

5 years ago | 0

| accepted

Answered
How to generate multiple random combinations of word pairs with specific restrictions on avoiding repetition?
Did I won the prize ? Actions={'spin', 'pick up', 'push', 'touch', 'shake',}; Objects={'yello...

5 years ago | 0

Answered
Is there a way to relate colorbar values to geodensityplot weight?
hello if you have the weights values , you can use them in the colorbar TickLabels some example below : figure(1) n = 32...

5 years ago | 2

| accepted

Answered
For loop with previous result
hello Jane this is it : at the k step : b(k) is 600 - sum of a from 1 to k for t=1:n a(t)=600+10^t; b(t)=600-s...

5 years ago | 0

| accepted

Answered
Extract data from HTML Table
hello Marcus here you are, simple code shipset : Filename = 'html_table.txt'; [myDate, myDiagnostic] = extract_data(Fil...

5 years ago | 0

| accepted

Answered
Perform linear regression to obtain k
hello here you are ; your "k" is my "b_sol" value : a_sol = -0.1108 b_sol = -2.1657e-04 c_sol = -9.5151e-04 d_sol =...

5 years ago | 0

Load more