I am Application Support Engineer at MathWorks.

Disclaimer: Any arlticles/ ideas/ opinions here are my own and in no way reflect that of MathWorks.

답변 있음

External Input Type Not supported

Hi, MATLAB supports the ufix16_Sp1 data type. You can check that using the following command: a = fixdt(0,16,0.1,0); name = a...

External Input Type Not supported

Hi, MATLAB supports the ufix16_Sp1 data type. You can check that using the following command: a = fixdt(0,16,0.1,0); name = a...

3달 전 | 0

답변 있음

How to calculate the CDF of y using U

Hi, you can use pdf and cdf functions to do this. See the documentation to understand the syntax. Hope this helps.

How to calculate the CDF of y using U

Hi, you can use pdf and cdf functions to do this. See the documentation to understand the syntax. Hope this helps.

3달 전 | 0

답변 있음

Problem with varargin and getting output

Hi, You can keep breakpoints at certain lines of the code and execute it. That way you can debug the code and see what data eac...

Problem with varargin and getting output

Hi, You can keep breakpoints at certain lines of the code and execute it. That way you can debug the code and see what data eac...

3달 전 | 0

답변 있음

How to implement a user defined recursive function which will update an array in its every call

Hi, You can find the implementation of shaannon fano encoding here. To update an array in the recursive function , you need to...

How to implement a user defined recursive function which will update an array in its every call

Hi, You can find the implementation of shaannon fano encoding here. To update an array in the recursive function , you need to...

3달 전 | 0

답변 있음

Electric Vehicle Thermal Management-Simscape

Hi, There will be so many dependencies for that slx file. It is better to update the MATLAB version. Hope this helps.

Electric Vehicle Thermal Management-Simscape

Hi, There will be so many dependencies for that slx file. It is better to update the MATLAB version. Hope this helps.

3달 전 | 1

답변 있음

Creating checkerboard image without inbuilt function and for loop

Hi, In the image matrix, 255 means highest intensity (white) and 0 means lowest intensity(black). First the white background is...

Creating checkerboard image without inbuilt function and for loop

Hi, In the image matrix, 255 means highest intensity (white) and 0 means lowest intensity(black). First the white background is...

3달 전 | 0

| 수락됨

답변 있음

How do I get a function in a for loop so it applies it to an entire table?

Hi, First, run a for loop over all the rows of data to take note of the indices of each year. For more info about table indexin...

How do I get a function in a for loop so it applies it to an entire table?

Hi, First, run a for loop over all the rows of data to take note of the indices of each year. For more info about table indexin...

3달 전 | 0

답변 있음

Matrix dimensions must agree error

Hi, You can keep breakpoints in the code and check the values in different variables. Hope this helps.

Matrix dimensions must agree error

Hi, You can keep breakpoints in the code and check the values in different variables. Hope this helps.

3달 전 | 1

| 수락됨

답변 있음

How to create a symbolic general (without explicit definition) function?

Hi, You need to specify that g is a function of x like this: syms x g(x) f = x*g; fdx = diff(f,x); Hope this helps.

How to create a symbolic general (without explicit definition) function?

Hi, You need to specify that g is a function of x like this: syms x g(x) f = x*g; fdx = diff(f,x); Hope this helps.

3달 전 | 0

| 수락됨

답변 있음

Problem Dependent parameter passing into slicesample

Hi, You can pass additional parameters such as c to the slicesample function like this: x = slicesample([1;1],N,'pdf',@(x) myf...

Problem Dependent parameter passing into slicesample

Hi, You can pass additional parameters such as c to the slicesample function like this: x = slicesample([1;1],N,'pdf',@(x) myf...

3달 전 | 0

답변 있음

How to solve first order inhomogeneous matrix equations.

Hi, You can use linsolve function to solve the equations in the matrix form. But You need to reorder the equations that you hav...

How to solve first order inhomogeneous matrix equations.

Hi, You can use linsolve function to solve the equations in the matrix form. But You need to reorder the equations that you hav...

3달 전 | 0

답변 있음

80+80 wifi vht signals, is it possible?

Hi, While creating the wlanVHTSIGA object using a config object, you can change the property of the conguration object to set t...

80+80 wifi vht signals, is it possible?

Hi, While creating the wlanVHTSIGA object using a config object, you can change the property of the conguration object to set t...

3달 전 | 0

답변 있음

Unable to obtain MAC information from MPDU of a packet from 802.11 Wifi frame

Hi, You are saying that MPDU decode status is FCS failed. This is a check to see if the frame is correctly received. That is th...

Unable to obtain MAC information from MPDU of a packet from 802.11 Wifi frame

Hi, You are saying that MPDU decode status is FCS failed. This is a check to see if the frame is correctly received. That is th...

3달 전 | 0

답변 있음

chart customization with interactive fitting

Hi, You can generate the code to reproduce the output by following these instructions. You can edit the the plot style of the l...

chart customization with interactive fitting

Hi, You can generate the code to reproduce the output by following these instructions. You can edit the the plot style of the l...

3달 전 | 1

| 수락됨

답변 있음

Creatin a matrix within values from a biger matrix

Hi, you can use import tool to import data from the spreadsheets. You can check if there are any NaN values too. Hope this hel...

Creatin a matrix within values from a biger matrix

Hi, you can use import tool to import data from the spreadsheets. You can check if there are any NaN values too. Hope this hel...

3달 전 | 0

답변 있음

Getting parts of string with for loop

Hi, As Stephen Cobeldick pointed out. fileparts function does exactly what you are looking for. the second output, name, is the...

Getting parts of string with for loop

Hi, As Stephen Cobeldick pointed out. fileparts function does exactly what you are looking for. the second output, name, is the...

3달 전 | 0

| 수락됨

답변 있음

Concept of the null operator question

Hi, As seen in this answer , it does remove the 3rd element. Hope this helps.

Concept of the null operator question

Hi, As seen in this answer , it does remove the 3rd element. Hope this helps.

3달 전 | 0

답변 있음

Need to calculate the power of battery

Hi, You can create arrays beforehand and try to fill it from t = 1 to 100. a = zeros(1,100); b = zeros(1,100); c = zeros(1,1...

Need to calculate the power of battery

Hi, You can create arrays beforehand and try to fill it from t = 1 to 100. a = zeros(1,100); b = zeros(1,100); c = zeros(1,1...

3달 전 | 0

답변 있음

Fit a function with respect to a cost function

Hi, Since you are not trying to minimise or maximise anything here, you do not need to use fmincon function. You want to find v...

Fit a function with respect to a cost function

Hi, Since you are not trying to minimise or maximise anything here, you do not need to use fmincon function. You want to find v...

5달 전 | 0

답변 있음

Repeated values in matrix

Hi, You can define a variable called freq, to store the frequency of the a number. Frequency of number is stored in index. Yo...

Repeated values in matrix

Hi, You can define a variable called freq, to store the frequency of the a number. Frequency of number is stored in index. Yo...

5달 전 | 1

| 수락됨

답변 있음

inputparser mistakes option for value

Hi, Adding to what ARK has said, You can see the difference between functions like addRequired , addOptional and addParameter i...

inputparser mistakes option for value

Hi, Adding to what ARK has said, You can see the difference between functions like addRequired , addOptional and addParameter i...

5달 전 | 0

| 수락됨

답변 있음

I want to mirror my signal over the y axis and make 4 repetitions of it

Hi, After calling the fft function, you are removing half of the values from variable X. That is the reason you are not seeing ...

I want to mirror my signal over the y axis and make 4 repetitions of it

Hi, After calling the fft function, you are removing half of the values from variable X. That is the reason you are not seeing ...

5달 전 | 0

| 수락됨

답변 있음

Index exceeds the number of array elements (30093)

Hi, In the 19th line that contains the below line in your code, field_data_stim = field_data(stim_start(i):stim_start(i)+499);...

Index exceeds the number of array elements (30093)

Hi, In the 19th line that contains the below line in your code, field_data_stim = field_data(stim_start(i):stim_start(i)+499);...

5달 전 | 1

| 수락됨

답변 있음

Dimensional Problem with simple coefficient equation

Hi, For two summations, you will need two for loops. Also , you are not accumulating the sum. Variable gini is getting new valu...

Dimensional Problem with simple coefficient equation

Hi, For two summations, you will need two for loops. Also , you are not accumulating the sum. Variable gini is getting new valu...

6달 전 | 0

| 수락됨

답변 있음

Change plot interaction mode on the fly

Hi, when you click on the mouse, you are selecting pan mode. So you have to click again for the callback function in the pan to...

Change plot interaction mode on the fly

Hi, when you click on the mouse, you are selecting pan mode. So you have to click again for the callback function in the pan to...

6달 전 | 0

| 수락됨

답변 있음

How can I sepearte these two spehrical Objects - Earth and Moon - to get one Moon and one Earth? So far I get two Moon's or either two Earth

Hi, When you are executing the below line, It is returning both the Earth's surface plot and Moon's surface plot. So you are ed...

How can I sepearte these two spehrical Objects - Earth and Moon - to get one Moon and one Earth? So far I get two Moon's or either two Earth

Hi, When you are executing the below line, It is returning both the Earth's surface plot and Moon's surface plot. So you are ed...

6달 전 | 1

| 수락됨

답변 있음

Using parfor to parallelyze finite difference scheme

Hi, parfor doesn't always speeds up the execution time. Sometimes the parallel overhead will be so big that it outweighs the ad...

Using parfor to parallelyze finite difference scheme

Hi, parfor doesn't always speeds up the execution time. Sometimes the parallel overhead will be so big that it outweighs the ad...

6달 전 | 0

답변 있음

I would like to draw a graph with the import of the date in abscisse

Hi, You can use import tool to import the data. Import it as a table. You can set the column names while importing. You can ex...

I would like to draw a graph with the import of the date in abscisse

Hi, You can use import tool to import the data. Import it as a table. You can set the column names while importing. You can ex...

6달 전 | 0

답변 있음

Integration of Known Dataset to specific value

Hi, You can use cumtrapz function for this. You can find the documentation for this function here. It basically gives you the ...

Integration of Known Dataset to specific value

Hi, You can use cumtrapz function for this. You can find the documentation for this function here. It basically gives you the ...

6달 전 | 0

답변 있음

Buttons in App Designer and User Prompt Input

Hi, You need to add buttons with appropriate labels and use the callback functionality of the buttons to take the input. Here...

Buttons in App Designer and User Prompt Input

Hi, You need to add buttons with appropriate labels and use the callback functionality of the buttons to take the input. Here...

7달 전 | 0