已回答
Map a surface plot to another if both the functions have same domain.
Hi @Prasanna Routray, I am assuming 'f2' maps to the same grid size as 'f1'. If so, then the size of the interpolated surface o...

6 months 前 | 0

已回答
How to configure number of CORDIC iterations used in Real Divide HDL Optimized Block?
Hi @Urvish, I see that you're using MATLAB R2022b, but the 'CORDIC maximum shift value' parameter was added to the 'Real Divide...

6 months 前 | 0

| 已接受

已回答
Dimensions error between data and bus definition when using "From File" block
Hi @Akash, The error you are receiving is because the datatypes of the signals in the 'anemoA.mat' file and in the bus definiti...

6 months 前 | 0

已回答
What function to use to calculate a vector of variance ratios
Hi @Jack Bratton, You can use the 'vratiotest' function that you've mentioned to get the variance ratios across a vector. Norma...

6 months 前 | 0

已回答
Question regarding the NMPC example of the pendulum
Hi @patr chri, The code provided is trying to calculate the states of the pendulum at time 'k+1' which is at time 'Ts'. The sta...

6 months 前 | 0

已回答
Why do we divide the variance by 255^2 when adding Gaussian noise in MATLAB?
Hi @jiang yutong, I went through the documentation of the 'imnoise' function to understand this, here's the link: https://www....

6 months 前 | 0

已回答
How do I convert a regular map image (jpg/png file) to a basemap in order to display using geoaxes?
Hi Barak, The basemaps used in displaying geoaxes are not simple images. They are made using vector and rasterized data with th...

7 months 前 | 0

已回答
Finite Element Analysis for Fixed Ended Beam with a Point Load example: I am getting this error: Error using * Incorrect dimensions for matrix multiplication. Check that the number of columns in the first matrix matches the number of rows in the se
Hi @Hamza Aboumaray, The error in your code is caused because the dimensions of the matrices ‘K’ (4X4) and ‘d’ (6X1) are not s...

7 months 前 | 0

已回答
PID controller - How can I get specific data about the output I receive
Hi @Gabriel Levit, I see that you want to iterate over the output values of your simulation to get Rise time, Settling time, et...

7 months 前 | 0

已回答
Change the material of th disque and the shaft
Hi @Amira, I assume you want to know how to programmatically change material properties of certain Simscape blocks. The ‘get_p...

7 months 前 | 0

已回答
How can insert a 'bodeplot' in an axes object of AppDesigner.
Hi @Victor Crespo, The support for ‘UIAxes’ handles in ‘bodeplot’ for App Designer was added from R2020b. I would suggest to up...

7 months 前 | 0

已回答
addlistener error - updating from handle.listener
Hi Kaden, According to the documentation of the ‘addlistener’ function, only properties whose class can set the ‘GetObservable...

8 months 前 | 0

已回答
I have to do a 3D plot for rotating disk but i am not getting a 3D plot
Hey @Noor, I ran your code and the final plot obtained is actually a 3d plot but looks 2d because it’s a top down perspective. ...

8 months 前 | 0

| 已接受

已回答
Handle.listener, how to update code?
Hi Kaden, To update code from using ‘handle.listener’ to ‘addlistener’, the ‘eventName’ or the third argument needs to be chang...

8 months 前 | 0

已回答
transferring data element between charts in stateflow
Hi @Ahmad Falih, To use input data in a Stateflow chart from other charts or Simulink blocks, the symbol (variable) for the da...

8 months 前 | 0

已回答
How to get Symbols list of stateflow chart through command window
Hi @Nikhil Boddula, To get the symbols used in a Stateflow chart programmatically, the ‘find’ function can be used to retrieve...

8 months 前 | 0

已回答
How to trigger an excel file download in chrome from Matlab. (403 with message "Forbidden" )
Hi @Ernesto Lopez Mondragon, The status code given in the error is 403 which means that the request was recognized by the serve...

8 months 前 | 0

已回答
Angle measurement from video discontinuity problem
Hi @AC, On running the code and trying to debug it, I found that the 'jump' in angle values is because of the values of 'x1','y...

9 months 前 | 0

已回答
How can I access Simscape Multibody solid properties calculated via geometry in a script?
Hi @Alejandro, Accessing the derived values, such as center of mass, moments of inertia, etc. that are calculated from geometry...

9 months 前 | 0

已回答
How to get rid of this error I get while linearizing a plant by simulating input/output data
Hi @KUNAPULI SRINIVAS, This error is caused due to the solver not being in single tasking mode. That means using a fixed step ...

9 months 前 | 0

已回答
I want to check this property with code in Simulink StateFlow. I found that there is no direct identifier. Is there any way to check this option? (Create output for monitoring
Hi @Fangping, To programmatically check the option “Create output for monitoring” in the Stateflow chart’s properties, you can ...

9 months 前 | 0

已回答
Need Help with the code. Why I am getting the zero value for V., G_V and K_V?
Hi @Nikhil, The reason for why the values of matrix “K_V” is coming out to be zero is because the values are being initialized ...

9 months 前 | 1

| 已接受

已回答
Can the Simscape DC Motor block be used to represent a BLDC motor?
Hi @Michael P, BLDC motors are just a more efficient DC motor because of their brushless design. The use cases and physics s...

9 months 前 | 0

已回答
Why does imagesc show different outputs for the same input matrix?
Hi @Sumit, From what I can tell, the reason the two figures are slightly different is because for figure 1 the colors are being...

9 months 前 | 0

已回答
Problem in creating physics engine for a bouncing spring-mass cube
Hi @Ahmed Ghazal, To calculate the net forces on the block at every time step, the forces need to be updated at every time step...

9 months 前 | 0

已回答
How do I phase shift a Simulink signal?
Hi Tevel, I see that you are creating an input signal by adding two sine wave signals, then splitting the input signal, one of ...

10 months 前 | 0

已回答
Copy Block Mask GUI from Model to MATLAB App
Hi Daniel, To programmatically get the mask of any block in a Simulink model, the ‘get’ function of the ‘Simulink.Mask’ class ...

10 months 前 | 0

已回答
Automatic Animation Playback Outside Livescripts
Hi @Sebastian, There's no direct way to include playback features for animated plots but I did manage to create a simple workar...

10 months 前 | 0

| 已接受

已回答
loop through columns,select three columns and surface plot, then do the same for next three columns
Hi @Abdul Rasyid Haron, To use data from a spreadsheet, the 'readtable' and 'readmatrix' functions can be used to extract the d...

10 months 前 | 0

已回答
Create shortcut to pushbutton
Hi @zeyneb khalili, To create a shortcut for push button in MATLB figures, the ‘KeyPressFcn’ and ‘KeyReleaseFcn’ callbacks of ...

10 months 前 | 0

加载更多