matlab mathieu,Mathieu NOE

Answered

Plot data from while loop

hello

you have to index the error variables with Iteration

otherwise you're overwritting each time (and you get only a sc...

6 hours ago | 0

Answered

Colorize bar or line according to magnitude.

hello

it's unclear how you want to associate color with 2 parameters (magnitude and the distance)

fyi , this is one option : ...

6 hours ago | 0

Answered

Finding the ramp response to a transfer function

You can use lsim function for any input

t=0:0.01:10

slope = 2;

ramp=slope*t; % Your input signal

G = tf(poly([-2 -3]...

22 hours ago | 0

| accepted

Answered

Comparing two row vectors to find constant slope for steady state condition

Hi again

so I introduced the first and second derivative of c2 and plotted in figure 3

Attached is the function to do a finite...

23 hours ago | 0

Answered

Nested for loop for showing cooling of different thicknesses in a plot

hello Kenneth

simply moved the figure display before the last end

clc

clearvars

close all

%------------------------------...

1 day ago | 0

| accepted

Answered

FFT of single max sided from signal

hello

this is the code fixed :

FYI, the frequency in your code is 200 and not 100 kHz as in image , but you can easily change...

1 day ago | 0

| accepted

Answered

How to save to .txt using WRITEMATRIX ?

writematrix(num2str(M,'% .14e'),'M.txt','Delimiter','tab');

1 day ago | 0

| accepted

Answered

why does spectrogram of stft shows different magnitude while changing the window size?

hello

I was tired of not being able to understand why some matlab functions (mostly based on fft) would not scale the output a...

1 day ago | 0

Answered

how to convert ADC values of ADXL335 connected to a beam using ARDUINO UNO to FFT in Matlab

hello

attached one example to do fft (with averaging if needed) and spectrogram

you'll probably have to adapt the way you rea...

1 day ago | 0

Answered

Read Multiple Entries from Text File

so this is the code , maybe there is still room for improvement , but I tested it ok vs the data file provided

hope it helps

...

2 days ago | 0

| accepted

Answered

How to search a keyword in text files and if it is found,write the string next to it in an excel file under a column ?

hello

this is a first code to show the basic functionnalities (getting a 1 or 0 result depending of presence of "import from" ...

2 days ago | 0

Answered

DC/offset value

hello - simply by removing the mean value :

signal = signal - mean(signal);

2 days ago | 0

Answered

Read Multiple Entries from Text File

hello

you can concatenate datas and vectors of zeros like that :

a = [zeros(1,32) 0.237024 0.248206 zeros(1,...

2 days ago | 0

Answered

How to fit data when yaxis in log scale and plot the fit?

so this is my proposal - see the lines of your code I modified ; look for comments including :

% modified code

the origina...

2 days ago | 0

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...

3 days 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...

3 days 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)...

6 days 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

6 days 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);

%%%%%%%%...

6 days ago | 0

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',...

6 days 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 ...

6 days 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...

6 days 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 ...

6 days 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...

7 days 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

...

7 days 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 ...

7 days 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).

...

8 days ago | 0

| 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...

8 days 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');...

8 days ago | 0

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值