Respondida
Starting with the ramp signal r(t) and unit step signal u(t) given below, please write the codes to plot the following transformed versions (a-f):
t=-10:10; figure plot(t,t); grid on xlabel('Samples') ylabel('Amplitude') title('Ramp') figure t2=[zeros(1,100), on...

12 meses hace | 0

Respondida
unable to connect blocks in Simulink
Use Simulink-PS converter block: https://www.mathworks.com/help/simscape/ref/simulinkpsconverter.html

12 meses hace | 0

| aceptada

Respondida
how to plot two m.file in one plot
use plot(x, y), e.g.: x = [-5:5;2*(-5:5); 3*(-5:5)]; y = [3*x.^2+3*x-3; -5*x.^2+5*x-15; -2*x.^2-3*x-13;]; plot(x(1,:),y(1,:),...

12 meses hace | 0

Respondida
Inverse FFT of a matrix
Just looking at your attached figure, it is clear along x axis is time. inverse FFT gives back time domain data from freq domain...

12 meses hace | 0

Respondida
Why can't I run my code? (tfest function)
Here it is running ok: x = readtable('data_thermal_pulse.txt'); time = x.Var1; T1 = x.Var2-x.Var2(1); input = x.Var4; Ts = ...

12 meses hace | 0

Respondida
Why does this function not work for decimals?
Here is the corrected answer (Note abs(x)<=1): % x = input("Please enter the value of x (in radians): "); % Here "input" prom...

12 meses hace | 0

| aceptada

Respondida
How to find an area below the curve follwed by x and y axis having two different parameters?
That would be something like this: DATA = [53 100; 26.5 88.5; 9.5 64.95; 4.75 46.85; 2.36 25.34; 0.85 23.14; 0.425 0;]; ...

alrededor de 1 año hace | 0

Respondida
help understand the step size of the electrical engine dyno example
Click on Modeling Tab --> Model Explorer --> Base Workspace, and then you will see that the sampling time is 1E-5 in seconds. Se...

alrededor de 1 año hace | 0

Respondida
How to randomly sample output times in Simbiology?
To randomly generate values using MEAN and STD values, normrnd() fcn can be used: MEAN_val = 15; % Mean in minutes STD_dev ...

alrededor de 1 año hace | 0

Respondida
How to get rid of Noise in Simulink?
There are a few blocks can be used. E.g., Discrete Filter (Transfer Function), Discrete FIR Filter, etc., whcih can be found: Si...

alrededor de 1 año hace | 0

Respondida
Matlab Plotting command problem
Even though you have not mentioned any error, there is a tiny point linked with hold on command. It needs to be followed at the ...

alrededor de 1 año hace | 0

| aceptada

Respondida
How to ignore special characters and retrieve the data prior to the character
Here is one possible solution, to get the data correctly from the data file: % Open the data file for reading FID = fopen('tem...

alrededor de 1 año hace | 0

Respondida
Solve equations of motion containing matrices and partial derivatives
Your posted code has a few critical issues to be addressed before executing it. (1) epsilon_rp is undefined; (2) y(1) =4.3; bu...

alrededor de 1 año hace | 0

Respondida
Summing two signals should result in zero, but doesn't
Note that the matlab's PRECISION is not ABSOLUTE. See this example of Pythogorian theorem: a = -pi:pi/100:pi; F = 1 - (sin(a)....

alrededor de 1 año hace | 0

Respondida
how to convert a 3D surface into a 2D contour?
Note that it is clear from the colorbar scale (Figure 2 in your question) that there must be another operation before obtaining ...

alrededor de 1 año hace | 0

Respondida
Error in resampling function
If you want to use fs = 5000 Hz, then the command syntax has to be resample(x_siganl, time, fs_new) This is how it should be don...

alrededor de 1 año hace | 0

| aceptada

Respondida
How to compute forces in global reference frame?
Presuming that you are also using some blocks from SimScape toolbox in the Simulink environment, here are some points to conside...

alrededor de 1 año hace | 0

Respondida
How do I change the current directory in Simulink Onramp?
Even if you are working online, you can still go for "Save As" option (upper left corner) to select the directory where to save ...

alrededor de 1 año hace | 1

Respondida
how to convert a 3D surface into a 2D contour?
This is how it can be done: H = openfig('ds2.fig'); % This is the extracted plot figure h = findobj(gca, 'Type', 'surfac...

alrededor de 1 año hace | 0

Respondida
Use of interp2 in an arbitrary dataset
Is this what you wanted to obtain: % Given DATA: Data = [ 0.25 0.25 0.5; 0.50 0.60 1.5; 0.75 0.75 3.0];...

alrededor de 1 año hace | 0

Respondida
How to do bit-wise operations on symbolic variables that may be very long possibly larger than inter 64
Is this what you are trying to get: syms a b c n % Create symbols a = 12345; b = 9867; c = sym(0); n = 0; while a > ...

alrededor de 1 año hace | 1

Respondida
Plotting negative errorbar on semilogx
It looks like this is how to display the missing half of error bar values. The solution with the x- axis limit set up: D = read...

alrededor de 1 año hace | 0

Respondida
Plotting negative errorbar on semilogx
This is how the nagtive values can be displayed in the plot: D = readtable('file.xlsx'); IDX1 = log10(D.density)>0; semilogx(...

alrededor de 1 año hace | 0

Respondida
Invalid hardware message in Simulink
The error does not mean that the Simulink Instrument Control toolbox has an error. Your installed version of the toolbox may not...

alrededor de 1 año hace | 0

Respondida
Use regexp to find all letters in string except one
This how it can be done: inputText = 'abcd1 23 ,.@_'; EXPR = '[a-cA-Ce-zA-Z]'; result = regexp(inputText, EXPR, 'match'); di...

alrededor de 1 año hace | 0

| aceptada

Respondida
Cannot open the Distance protection example?
1st of all, make sure the spelling of the model name. 2nd, this is where you can see all available Simulink example models in S...

alrededor de 1 año hace | 0

Respondida
How can I record the sound produced after the LPC Algorithm?
If understood correctly, you are trying to record the filtered sounds. If so, audiowrite() can solve the task (to export the fil...

alrededor de 1 año hace | 0

Respondida
Linking markers in sequence of evaluated eigenvalue
Axis limits can be also adjust a bit more to get better display of the results, e.g.: a = -2.6152 + 5.0781i; b = -2....

alrededor de 1 año hace | 0

Respondida
Linking markers in sequence of evaluated eigenvalue
a = -2.6152 + 5.0781i; b = -2.6195 + 5.0785i; c = -2.6237 + 5.0789i; d = -2.6280 + 5.0792i; ...

alrededor de 1 año hace | 0

Respondida
cufflinks command not found
Do you have bioinformatics toolbox? This function is part of the toolbox - Bioinformatics Toolbox Software Support Packages ...

alrededor de 1 año hace | 0

Cargar más