Respondida
How to plot a 3D cfit funktion in a 2d plot with isolines.
Hi @Christian Beigl, From what I understand, you are trying to plot contours of different values for the surface defined by ‘s...

3 meses hace | 0

Respondida
How to graph 'trapz' function
Hey @Max Payne, To visualize the trapeziums used for calculation by the 'trapz' function, you can make use of the 'xline' and '...

3 meses hace | 0

Respondida
2D steady heat transfer output returning NaN
Hi @Jai Harnas, I ran your code for heat transfer and did get the NaN values like you mentioned. On debugging I found that the ...

3 meses hace | 0

Respondida
Error in bessel code
Hi @Subha S, From what I understand, your plots are not matching the figure given in the research paper. This is because of a s...

3 meses hace | 0

| aceptada

Respondida
How to create position input for prismatic joint with DC motor ?
Hi @Fatih, I think you can use the 'Ideal Translational Motion Sensor' block to get the position. Let me know if this works. ...

3 meses hace | 0

| aceptada

Respondida
Wrong output with MATLAB S Function
Hi @AYYAPPA RUDRASIMHA, The simulation results using the MATLAB function block and S-function block are different because the C...

3 meses hace | 1

| aceptada

Respondida
Why is there no matching of timing data when trying to match participant timing data (separate file) with note onset data (one file)?
Hey Andrea, Like you mentioned, the issue is in fact in the data extraction from the participant data file. In the data file, ...

3 meses hace | 0

Respondida
Method for Measuring Forces Due to Mass in 6 Degrees of Freedom Motion
Hi 석준, As I understand you are trying to apply forces on your platform at certain points and then measure forces acting at ot...

3 meses hace | 0

Respondida
error in task 6 of robotic vacuum stateflow
Hi @andre, I understand that you are going through the ‘Stateflow Onramp’ course and facing this issue. I went through this...

3 meses hace | 0

Respondida
Cannot run Simscape code
Hi @Najla, The 'C code' tab appears when you want to generate code, either by using 'ctrl + b' shortcut or when you use any of ...

3 meses hace | 0

Respondida
Nozzle Design Error: Matrix is singular, close to singular or badly scaled. Results may be inaccurate. RCOND = NaN.
Hi, The reason you are getting this warning is because some matrices used in the code contain NaN values. On debugging the cod...

3 meses hace | 0

| aceptada

Respondida
Issue regarding a data plot
Hi Rahul, I think the reason your graph shoots up so suddenly is due to the way you have defined the ‘percentage_difference_gI’ ...

4 meses hace | 0

| aceptada

Respondida
Why isn't the numerical value assigned by matlab verified using == function.
Hi @Yogesh, the 'format' command does not change the precision of your variables. It only changes the format in which the output...

4 meses hace | 0

Respondida
Kindly guide how to add the single edit field for each RLC like [0.01, ...] and different time interval [10, 20, 30] in app designer and also the phase result on interfaces
Hi @Ehtisham, from what I understand you want to get a numerical vector from an edit field when you enter a string like “[10,20,...

4 meses hace | 0

Respondida
Invalid setting in 'Model' for parameter 'Gain'.
Hi @SM, from my understanding you are calling the ‘F3’ function iteratively and based on the output from the function changing t...

4 meses hace | 0

Respondida
calling function from separate document for fitting
Hi @Jack, the error that you are recieving is because you are passing 'x' as an argument of 'TA_fitting_function' but not defini...

4 meses hace | 0

Respondida
After upgrading Win11, MATLAB garbled characters
Hi @第四, it looks like you have opened a 'pcode' file (file with extension '.p'). 'pcode' files are MATLAB program files in a pro...

4 meses hace | 1

Respondida
How to create a dialog box in the plot window.
Hi @Ruben, you can use MATLAB’s ‘UIControl’ objects to build the user interface of your game. You can learn more about ‘UIContro...

4 meses hace | 0

| aceptada

Respondida
Trouble simulating an RC low and high pass filter with trapoziodal aproximation
Hi @Dayan, The reason your plot is not matching to the one in the lecture is because you are calculating ‘va2’ with old value...

4 meses hace | 0

Respondida
inverse kinematics (self made function) errors
Hi @Manuel, the reason you are getting constant values for ‘joint2’ is because in the definition of ‘cos_joint2’ the sum of ‘ter...

4 meses hace | 0

Respondida
Comparing difference in values between values in an array - Using For Loop
Hi @Ammar, the reason you are getting an error is because the distance variable is not pre defined as a vector so it is not able...

4 meses hace | 0

| aceptada

Respondida
How to save multiple figures generated from a single script?
Hi @yojitha etikala, Instead of saving figures from the scope, you could save the data from the scope into matlab workspace and...

más de 1 año hace | 0

Respondida
how convert field struct in cellarray
Hi @aldo Rank_DisplayIdxsis is already a cell array. When cell arrays are used as a value for struct field, then an array of st...

más de 1 año hace | 0

Respondida
Initializing UI Table App Designer
Hi Richard, This error is caused because you are converting the string arrays into cell arrays, because of which while concaten...

más de 1 año hace | 0

Respondida
How to solve the matrix P in the Lyapunov equation "A'P+PA=- Q" in Simulink
Hi LIULYAN, You can use a MATLAB function block and call the lyap function inside it to calculate P. Implement MATLAB Function...

más de 1 año hace | 0

Respondida
hi i have a function with 5 constraints , i need someone to help me write the 5th one
Hi Anwar, If your constraint is |S[k] - S[k-1]| > dSOCmin then the condition in the if statement should be if any(abs(dx)<=dS...

más de 1 año hace | 0

Respondida
Unable to Package App on App Designer
Hi Kuber, The import tool is not supported for code generation, so if you are using it in your app it will not work. Here's a v...

más de 1 año hace | 0

Respondida
How to code following equation in MATLAB ?
Hi Charu, There are a few issues with both your methods and I also have some doubts about the equation. Is B(m) a function of m...

más de 1 año hace | 0

Respondida
what ever follows "end" has error: parse error at time: usage might be invalid matlab syntax
Hi Yao, Functions always come at the end of a matlab script. So just put those commands before the function definition and it s...

más de 1 año hace | 0

| aceptada

Respondida
UAV package delivery flight starting point
Hi, I think your problem might be solved by changing the initial world position. You may try using this: set_param(Plant, "I...

más de 1 año hace | 0