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

7 månader ago | 0

Answered
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:...

7 månader ago | 0

Answered
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...

7 månader ago | 0

Answered
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...

7 månader ago | 0

Answered
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...

7 månader ago | 0

Answered
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...

7 månader ago | 0

| accepted

Answered
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...

7 månader ago | 0

Answered
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...

7 månader ago | 0

Answered
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...

7 månader ago | 0

Answered
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...

7 månader ago | 0

Answered
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...

7 månader ago | 0

Answered
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...

8 månader ago | 0

Answered
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 ...

8 månader ago | 0

Answered
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...

9 månader ago | 0

Answered
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 ...

9 månader ago | 0

Answered
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:...

9 månader ago | 0

Answered
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 ...

9 månader ago | 0

Answered
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...

9 månader ago | 0

Answered
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...

9 månader ago | 0

Answered
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 ...

9 månader ago | 1

Answered
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...

9 månader ago | 0

Answered
.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...

9 månader ago | 0

Answered
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...

9 månader ago | 0

Answered
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...

11 månader ago | 0

Answered
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...

11 månader ago | 0

Answered
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...

11 månader ago | 0

Answered
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...

11 månader ago | 0

Answered
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...

ungefär ett år ago | 0

Answered
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...

ungefär ett år ago | 0

Answered
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...

ungefär ett år ago | 0

Load more