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

10 mesi fa | 0

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

10 mesi fa | 0

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

10 mesi fa | 0

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

10 mesi fa | 0

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

10 mesi fa | 0

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

10 mesi fa | 0

| accettato

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

10 mesi fa | 0

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

10 mesi fa | 0

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

10 mesi fa | 0

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

10 mesi fa | 0

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

10 mesi fa | 0

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

11 mesi fa | 0

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

11 mesi fa | 0

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

12 mesi fa | 0

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

12 mesi fa | 0

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

12 mesi fa | 0

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

12 mesi fa | 0

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

12 mesi fa | 0

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

12 mesi fa | 0

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

12 mesi fa | 1

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

12 mesi fa | 0

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

12 mesi fa | 0

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

12 mesi fa | 0

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

circa un anno fa | 0

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

circa un anno fa | 0

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

circa un anno fa | 0

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

circa un anno fa | 0

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

oltre un anno fa | 0

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

oltre un anno fa | 0

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

oltre un anno fa | 0

Carica altro