답변 있음

How to drop small terms in symbolic expression?

Hi, You can use conditional indexing this a={1; 2; 3; 4; 5}; a(cell2mat(a)>3)={0} Hope this helps.

How to drop small terms in symbolic expression?

Hi, You can use conditional indexing this a={1; 2; 3; 4; 5}; a(cell2mat(a)>3)={0} Hope this helps.

약 1년 전 | 0

답변 있음

How to upload new values from Workspace to simulink in real time?

Hi, You can use from workspace block to do this. You need to build a variable with first column with time values and use other ...

How to upload new values from Workspace to simulink in real time?

Hi, You can use from workspace block to do this. You need to build a variable with first column with time values and use other ...

약 1년 전 | 0

답변 있음

How to reduce the Run time and improve the performance of my code

Hi, Instead of the last for-loop, you can do this: maxDev0_0=max(maxDev(RotSpeed(j) > 0.1 && RotSpeed(j)<= 1)); %this is for t...

How to reduce the Run time and improve the performance of my code

Hi, Instead of the last for-loop, you can do this: maxDev0_0=max(maxDev(RotSpeed(j) > 0.1 && RotSpeed(j)<= 1)); %this is for t...

약 1년 전 | 0

답변 있음

Balloon Ascent and Descent

Hi, You can introduce another variable for denoting time. let's say t is such variable. You can use while loop and increment ...

Balloon Ascent and Descent

Hi, You can introduce another variable for denoting time. let's say t is such variable. You can use while loop and increment ...

약 1년 전 | 0

답변 있음

Simulation of Dynamic Response (Aircraft)

Hi, You need to use state-space block and give the A and B matrices as the parameters for the block. Hope this helps.

Simulation of Dynamic Response (Aircraft)

Hi, You need to use state-space block and give the A and B matrices as the parameters for the block. Hope this helps.

1년 이상 전 | 0

답변 있음

Difference between lines coding

Hi, In the HW2W1.m file, you have (W1X,W1Y) and (W1xCI,WlyCL) variables(from HW2_P1_W1.txt). so you want to find the difference...

Difference between lines coding

Hi, In the HW2W1.m file, you have (W1X,W1Y) and (W1xCI,WlyCL) variables(from HW2_P1_W1.txt). so you want to find the difference...

1년 이상 전 | 0

답변 있음

Skipping data of an ECG signal

Hi, as from my understanding, you have a matrix of data and you want to select some rows based on some conditions. you can do t...

Skipping data of an ECG signal

Hi, as from my understanding, you have a matrix of data and you want to select some rows based on some conditions. you can do t...

1년 이상 전 | 0

| 수락됨

답변 있음

How do I isolate certain portions of my data in a time series?

Hi, there is a way to extract elements from the matrix based on some predefined conditions. please refer this answer for the s...

How do I isolate certain portions of my data in a time series?

Hi, there is a way to extract elements from the matrix based on some predefined conditions. please refer this answer for the s...

1년 이상 전 | 0

답변 있음

"Index exceeds array dimensions. Index value 2 exceeds valid range [1-1] for array" --How to solve this?

Hi, The error you mentioned occurs when you try to access an array element which is out of it's length. If you are trying to u...

"Index exceeds array dimensions. Index value 2 exceeds valid range [1-1] for array" --How to solve this?

Hi, The error you mentioned occurs when you try to access an array element which is out of it's length. If you are trying to u...

1년 이상 전 | 1

답변 있음

How to convert waveform in the binary raw format ?

Hi, you can export the waveform data raw binary format like this: fid = fopen('YourOutputFile.raw', 'w'); fwrite(fid, x, clas...

How to convert waveform in the binary raw format ?

Hi, you can export the waveform data raw binary format like this: fid = fopen('YourOutputFile.raw', 'w'); fwrite(fid, x, clas...

1년 이상 전 | 1

| 수락됨

답변 있음

Fill 2d array with serial data from an arduino.

Hi, you can assign the array data you are getting from arduino to a 16X1 array and use reshape function to change it to 4X4 mat...

Fill 2d array with serial data from an arduino.

Hi, you can assign the array data you are getting from arduino to a 16X1 array and use reshape function to change it to 4X4 mat...

1년 이상 전 | 0

답변 있음

How to segment/timestamp time series data based on GMT unix epoch values

Hi, let A= [ 1 10; 2 20; 3 30; 4 40;] if you want to select data values(2nd column) for time whic...

How to segment/timestamp time series data based on GMT unix epoch values

Hi, let A= [ 1 10; 2 20; 3 30; 4 40;] if you want to select data values(2nd column) for time whic...

1년 이상 전 | 0

답변 있음

Converting values in eigenvector to rational forms that include square roots

Hi, you need to use sym command to convert matrix A to a symbolic variable. you can find the examples of sym command usage and ...

Converting values in eigenvector to rational forms that include square roots

Hi, you need to use sym command to convert matrix A to a symbolic variable. you can find the examples of sym command usage and ...

1년 이상 전 | 1

| 수락됨

답변 있음

Algorithm to solve a system of two equations and a set of constraints

Hi, you can use solve function to do this. the documentation for this function and the examples can be found here. Hope this h...

Algorithm to solve a system of two equations and a set of constraints

Hi, you can use solve function to do this. the documentation for this function and the examples can be found here. Hope this h...

1년 이상 전 | 0

답변 있음

Difference Between Ackermann Kinematic Model and Bicycle Kinematic Model

Hi, There will be difference in the outputs of Ackermann Kinematic Model block and Bicycle Kinematic block. The working of ...

Difference Between Ackermann Kinematic Model and Bicycle Kinematic Model

Hi, There will be difference in the outputs of Ackermann Kinematic Model block and Bicycle Kinematic block. The working of ...

1년 이상 전 | 0

| 수락됨

답변 있음

Solve inequation not working with sqrt

Hi, It seems that you did not enable ReturnConditions parameter. So the function is returning only one solution solve...

Solve inequation not working with sqrt

Hi, It seems that you did not enable ReturnConditions parameter. So the function is returning only one solution solve...

1년 이상 전 | 1

| 수락됨

답변 있음

Different size error bar caps

Hi Lorcan, You can set the linewidth for both bar and error bar to 1. So that you won’t see the thickness on the bars that ...

Different size error bar caps

Hi Lorcan, You can set the linewidth for both bar and error bar to 1. So that you won’t see the thickness on the bars that ...

1년 이상 전 | 1

| 수락됨

답변 있음

How do I plot time intervals in weekdays?

Hi Asrorkhuja Ortikov, You can use T=readtable(filename) function to read the xlsx file into MATLAB. Then you can ret...

How do I plot time intervals in weekdays?

Hi Asrorkhuja Ortikov, You can use T=readtable(filename) function to read the xlsx file into MATLAB. Then you can ret...

1년 이상 전 | 0

| 수락됨

답변 있음

Evaluation of Volume under surface for tpaps interpolation

Hi Prathamesh Apte, There are several ways to calculate the volume under a surface. Check out this blog for more informatio...

Evaluation of Volume under surface for tpaps interpolation

Hi Prathamesh Apte, There are several ways to calculate the volume under a surface. Check out this blog for more informatio...

1년 이상 전 | 0

| 수락됨

답변 있음

Problem with Plot windows

Hi Hassan Sajjad, You can find the solution for this issue here. Hope this helps.

Problem with Plot windows

Hi Hassan Sajjad, You can find the solution for this issue here. Hope this helps.

1년 이상 전 | 0

답변 있음

Sync issues with MATLAB shortcuts?

Hi Jesper Nordling, OneDrive has some issue with syncing .lnk files. This issue arises because of permissions the user has ...

Sync issues with MATLAB shortcuts?

Hi Jesper Nordling, OneDrive has some issue with syncing .lnk files. This issue arises because of permissions the user has ...

1년 이상 전 | 0

답변 있음

time complexity for a given plot

Hi Mathematica, You can plot the graphs of Y=, Y= and Y= with your data (n vs time ) and compare which pattern it is followin...

time complexity for a given plot

Hi Mathematica, You can plot the graphs of Y=, Y= and Y= with your data (n vs time ) and compare which pattern it is followin...

1년 이상 전 | 0

답변 있음

Calculating distance for vertical circular motion using accelerometer data

Hi Alhamd Khan, This method of integrating acceleration is not that reliable and the errors accumulate when the device move...

Calculating distance for vertical circular motion using accelerometer data

Hi Alhamd Khan, This method of integrating acceleration is not that reliable and the errors accumulate when the device move...

1년 이상 전 | 0

답변 있음

How to create a contourf plot form a structure with 16 fields?

Hi Carolin Widmann, It seems that you are creating new figure for every iteration by calling figure function. Call this fun...

How to create a contourf plot form a structure with 16 fields?

Hi Carolin Widmann, It seems that you are creating new figure for every iteration by calling figure function. Call this fun...

1년 이상 전 | 0

답변 있음

What is the missing factor in the code attached for calculating the area of a 3D surface

Hi Anand S, It seems that 2nd and 3rd if conditions are cancelling each other in the above code. The second if condit...

What is the missing factor in the code attached for calculating the area of a 3D surface

Hi Anand S, It seems that 2nd and 3rd if conditions are cancelling each other in the above code. The second if condit...

1년 이상 전 | 0