Risposto
How to assign pair of values to a single aeeay in the matrix using two different vectors
Hi Yogesh The following code might help you: fsine=50e6:0.4e9:3e9 Vp=0:0.5:3 M=zeros(7,8); for idx1=1:7 for idx2=1...

circa 2 anni fa | 0

Risposto
Como obtener la función de transferencia en controles
Hi Jose, You can use the "tf" function in MATLAB to obtain a transfer function of a system. This function returns a transfer fu...

circa 2 anni fa | 0

| accettato

Risposto
How to change the spectrogram magnitude to linear?
Hello, The "spectrogram" function in MATLAB returns the Short-Time Fourier Transform(STFT) of the input signal. It is used to a...

circa 2 anni fa | 0

Risposto
Separate graph arrows for two y-axes on the matlab
Hello, You can try to acheive a similar result by using the "annotations" feature in MATLAB. The following code shows an exampl...

circa 2 anni fa | 1

Risposto
How do I mesh a matlab model
Hello There need not be inverted commas over the geometry type in the line where "femodel" is defined. I have increased the "Hm...

circa 2 anni fa | 2

| accettato

Risposto
How to correct the recording of a daamaged accelerometer in earthquake analysis
Hello, A possible solution can be to remove the mean over a small interval from the existing data to change the data to be cent...

circa 2 anni fa | 0

Risposto
Calculation of channel capacity
Hello Zaref, The above code you provided appears to be correct for plotting the graph of channel capacity in SNR(dB) provided t...

circa 2 anni fa | 0

Risposto
Why does the "Matrix dimensions must agree" error persists?
Hello Walter, When using "plot" in the format of "plot(ax,x,y)" the size of the variable "x" and "y" must be same. In your case...

circa 2 anni fa | 0

Risposto
I want to count the number of 0s in a binary sequence which occurs for n number of times, where n=1:25.
Hello Dwijraj, You can use "find" to locate the positions of "1" in the array and then the difference in position of 2 consecut...

circa 2 anni fa | 1

Risposto
Cannot find this component in Simulink
Hello Axel, The block might be a "Repeating Sequence Stair" block with [1,0] as the "Vector of output values" in the Block Para...

circa 2 anni fa | 0

Risposto
how to get basis vector from eigenvalues
Hello, You can get the 2 basis vectors by simply sorting the eigen values in decreasing order and then usig the sorted indexes ...

circa 2 anni fa | 0

Risposto
how can i solve eps y''+ mu a(x) y'-b(x)y=f(x) with boundary condition y(0)=y(1)=0
Hello Dhayalan, The equations of the above form can be solved by using "diff" and "dsolve" functions in MATLAB. The "diff" func...

circa 2 anni fa | 0

Risposto
Matrix does not want to multiply and gives an error when I multiply a 3x3 matrix with a 3x1 matrix
Hello Gihahn, In line 2 "mat1" is not defined. If you want to have the inverse of "A" replace it with A. Also the size of "B" i...

circa 2 anni fa | 0

Risposto
Average of a repeating array
Hello, You can pad some zeros at the end to make the array size divisible by 100 and then use the "reshape" command to divide i...

circa 2 anni fa | 0

Risposto
Plotting a Multiple Category Single Line Graph
Hello Milan, The following code might help you: baseline = 985; y1 = [0,115,1085,969]; y2 = [1034,846,1037,959]; y3 = [1054...

circa 2 anni fa | 0

| accettato

Risposto
How to plot four scatter diagram on a single page?
Hello, You can use the "tiledlayout" feature or "subplots" feature in MATLAB. It can be done as follows: x = linspace(0,30); ...

circa 2 anni fa | 1

Risposto
Determine data cells in Excel
Hello Erik, The following code might help you. I have used random data in the Excel file to verify the code. To get the timesta...

circa 2 anni fa | 1

Risposto
Time vs displacement plot of a Transfer function
Hello Hassan, The following code might help you: %% parameters R = 5e-6; zeta= 0.2308; iota= 1.3; rhom= 997; rhonu = 1....

circa 2 anni fa | 0

| accettato

Risposto
Errors in turbulent image analysis.
Hello, The error in line 5 is probably because you are trying to access indices that are beyond the size of the image "I". You ...

circa 2 anni fa | 1

Risposto
Convert syms struct to numerical values
Hello, To solve the ode with initial condition as (x,y)=(1,1). You can do the following: syms x(t) y(t) ode1=diff(x)==2*x+y; ...

circa 2 anni fa | 0

Risposto
The parkingSpotPath.mat example isn't showing up.
Hi Andrei, If you want to open the example "Perception-Based Parking Spot Detection Using Unreal Engine Simulation", run the fo...

circa 2 anni fa | 0

Risposto
Simulink circuit calculations of current etc
Hi Garry, The red line indicates that the connection is not possible. This is because you are trying to connect two blocks that...

circa 2 anni fa | 0

Risposto
Find the variable inside the LCM argument
Hi ali, If the LCM (least common multiple) of 2 numbers is known and one of the number is known then the value of the second nu...

circa 2 anni fa | 0

Risposto
How can I plot graph with lines of different color each using for loop?
Hi Szu, Firstly there are some errors to be corrercted. The variable "i" needs to be intialized to zero every time the outer lo...

circa 2 anni fa | 0

| accettato

Risposto
how can ı fixed
Hello Öner, I understand that you are trying to take variable "a" as input and then define variable "r" as an array with values...

oltre 2 anni fa | 0

Risposto
use struct in loop for
Hello Najafi, I understand that you are trying to create a struct "s" with field names "A1", "A2”, ... "A30" each having value ...

oltre 2 anni fa | 0

Risposto
파일을 찾을 수 없거나 권한이 거부되었습니다. 오류가 뜹니다.
Hello Yang, I understand that you are unable to read from a file due to permission related issues. The following actions could...

oltre 2 anni fa | 0

Risposto
Find maxima in proximity
Hello Raphael, I understand you are trying to find the maximums in “st_Q_exert” around known indices of maximums in “st_T_exert...

oltre 2 anni fa | 0

Risposto
error empty sym: 0-by-1
Hello Mattia, I understand that you are getting an “empty sym” when trying to solve a system of equations. For a system of equ...

oltre 2 anni fa | 0

Risposto
How to build a bilinear model in simulink, using in the simscape model
Hello HUANG, I understand that you want to connect the output of a MATLAB function to a Simscape block. It can be done as foll...

oltre 2 anni fa | 0

Carica altro