已回答
Question about gradient descent matlab
Hi, Here are some points which should help troubleshoot and fix the 'gradientDescent' function: Correct Syntax: Ensure the fun...

5 months 前 | 0

已回答
Simulink, receive data from Python Script
Here are some methods which can be leveraged to integrate data from a Python script into Simulink: 1) MATLAB Engine for Python:...

5 months 前 | 0

已回答
How to combine three different figures for three different vectors in one figure?
Hi @Atrolita afra, To combine multiple plots into a single figure for comparison, loop over the values of 'a' and 'b' and modif...

5 months 前 | 0

已回答
How does the method loadVariablesFromMATFile from Simlink.SimulationInput object work?
Hi @Hainan Wang, Here are some pointers that aim to answer the short questions. I hope you find them helpful: 1) Yes, using 'l...

5 months 前 | 0

已回答
How to change a parameter while the signal is running?
Hi, In order to dynamically change the magnitude of the output signal while the DAQ session is running, we need to modify the q...

6 months 前 | 0

已回答
I want to do interpolation. The interpolation is y=1/(x+y).i have to interpolate y. X varies from 0.1 to 0.5.The initial value of y at the beginning of each interpolation is 2/x
Hi @rakesh kumar, To perform interpolation for the function 'y = 1/(x+y)' with 'x' varying from 0.1 to 0.5, we can use a loop t...

6 months 前 | 0

| 已接受

已回答
Making graph for quadratic function
Hi @Julia, I understand that the goal is to evaluate and plot a quadratic function using a MATALAB script. Here is an example s...

6 months 前 | 0

已回答
wavelet2 function: Suggest an alternative
Hi @Sachin Motwani, The 'wavelet2' function is unavailable in the R2020a version of MATLAB, the Wavelet Toolbox can be utilized...

6 months 前 | 0

已回答
Convex Hull algorithm without built-in function
Hi Andrey, The 'find' function returns indices of elements that match a condition, but if the condition involves comparing enti...

6 months 前 | 0

已回答
About error"The function 'analoginput' is no longer supported. Use the session-based interface."
Hi @ZHU z, The error you are encountering is because the 'analoginput' function is part of the legacy interface for data acquis...

6 months 前 | 0

已回答
How to run the code by moving one column to next and repeat the algorithm
Hi @AS, I understand that you have a neural network with inputs of size 20x3 and a target matrix of size 20x900. You want to pr...

6 months 前 | 0

已回答
How to reset the load cell to zero condition before start running?
Hi @Azmi Mohammad, To zero the load cell reading before applying a vibration load, you can perform a tare operation. This proce...

7 months 前 | 0

已回答
Access model viewmarks and notes programmatically
Hi @Alexander Boll, I believe that viewmarks and notes in Simulink are part of the model annotations. The 'get_param' function ...

7 months 前 | 0

已回答
Frequency distribution of classes data
Hi @Ancalagon8, I understand that you have a dataset represented as a timetable and you want to analyze the frequency distribut...

7 months 前 | 0

已回答
DQN agent training error: "One or more futures resulted in an error."
Hi Muhammad, The error message you are encountering in MATLAB, 'One or more futures resulted in an error', is indeed referring ...

7 months 前 | 0

已回答
MATLAB on Linux crashes when importing Python module
Hi Michael, Here is an existing MATLAB answer post which talks about a similar issue and has workarounds to resolve it: https:...

7 months 前 | 0

已回答
Can NOT drag m/mat file when matlab launched from command line
Hi XGQ, The issue happens usually only when running MATLAB as an administrator. This is a Windows Security feature. 'Drag and ...

8 months 前 | 0

已回答
fatal error in matlab
Hi Guru, The header 'iostream.h' is a non-standard header and does not exist on all platforms. So any code using it might not c...

8 months 前 | 0

已回答
I am struggling to modify the "Highway lane change" example.
Hi Atulan, I understand that the error message indicates that the MATLAB Function block is expected to output a bus signal, but...

8 months 前 | 0

已回答
Can't use.dll library on the 2020 or later versions of Matlab
Hi, The 'loadlibrary' function is only able to load libraries that are callable from C and whose header files can be parsed by ...

8 months 前 | 1

已回答
Error using sub2ind: out of range subscript
Hi @BIANCA, I faced a similar warning message and error while working on a project. This behaviour occured sporadically. It tur...

8 months 前 | 0

已回答
.Net Framework assembly is not found at runtime, although it has been loaded.
Hi Frank, If 'NET.addAssembly' function is invoked with the name of the .NET assembly file and without the path to the file, th...

8 months 前 | 0

已回答
C Caller block *.dll error
Hi Ben, Here is an existing MATLAB answer which should prove helpful for this issue: https://www.mathworks.com/matlabcentral/an...

8 months 前 | 0

已回答
Draw a plane on a surface plot
Hi Paul, To visualize the intersection of a plane with a surface plot, it is important to ensure that the plane is properly def...

9 months 前 | 0

已回答
derive with fft and ifft
Hi Rabih, The discrepancy here might be due to the incorrect handling of the frequency components in the Fourier transform. Her...

9 months 前 | 0

已回答
Code generation with MATLAB while using simscape components
Hi, I tried to reproduce the issue you encountered but did not find any errors while generating and building code for an RC ci...

10 months 前 | 0

已回答
Custom memory section for subsystem not showing up in block
Hi Quentin, I observe that you have set the 'Function packaging' to 'Nonreusable function'. To enable configuration of memory s...

10 months 前 | 0

已回答
How to Generate S-Function Block of a model having a initialize block at the top level using rtwsfcn.tlc target?
Hi Rohit, To work around this error, consider generating a Protected Model from the Simulink model instead of generating an S...

11 months 前 | 0

已回答
Romberg integration method with Matlab
Hi Fausto, To ensure that only the final result of the Romberg integration is displayed, and not all the intermediate value...

11 months 前 | 0

已回答
How to modify this code from MATHWORKS website?
Hi Basmah! To simulate the radar altimeter example with a phase-coded waveform instead of an FMCW waveform, key modificatio...

12 months 前 | 0

加载更多