photo

Gayatri


Last seen: 14 days ago Active since 2024

Followers: 0   Following: 0

Statistics

  • Knowledgeable Level 3
  • 3 Month Streak
  • First Answer

View badges

Feeds

View by

Answered
How to apply Cross validation while using treeBagger
Hi Vedant, You can apply cross-validation to TreeBagger using the 'crossval' function. You can create a function for training ...

16 days ago | 0

Answered
Accumulate and store vecotr at the end of simulation
Hi Priya, You can use the 'To Workspace' block as follows: Connect the output of the MATLAB Function block to a 'To Workspace'...

17 days ago | 0

| accepted

Answered
button unresponsive while running loop
Hi Rohit, You can use 'drawnow' or one of its functional equivalents, such as 'pause(0)' inside of the while loop when it is ru...

18 days ago | 0

Answered
is there any way to append multiple json files into single files
Hi Anuj, You can use below script to append multiple JSON files into single file. %Read contents of File 1 st1 = fileread('la...

19 days ago | 1

| accepted

Answered
Transparency issue while adding secondary block
Hi Kamal, You can use 'parfeval' to avoid the transparency violation error. Here is an example: 1. Define a function to create...

20 days ago | 0

Answered
How to build secondary bus along with primary
Hi Sahaj, You can connect the output of the Primary Bus along with the additional signals to the input of the Secondary Bus. U...

20 days ago | 0

Answered
How do i find eigen vector corresponding to imaginery eigen value
Hi Lokesh, You can use 'imag' function to find the eigenvectors that correspond specifically to purely imaginary eigenvalues. ...

20 days ago | 0

| accepted

Answered
issue while setting mask parameter
Hi Anuj, To modify mask parameter values, use the 'Simulink.Mask' class. % Get the Mask of the Subsystem maskObj = Simulink....

26 days ago | 0

Answered
I am facing an issue while combining two stl.
Hi Vijay, Below is a MATLAB script that demonstrates how to combine two STL into one single geometry: % Read the STL files s...

26 days ago | 0

Answered
FMU issue while setting parameter
Hi Saurabh, You can modify the parameters using the following MATLAB commands: blockPath = 'model_name/block_name'; blockHan...

27 days ago | 0

| accepted

Answered
Error in Simulink Code
Hi Anuj, Execute the following command in the MATLAB Command Window to rehash the toolbox cache: rehash toolboxcache If it st...

3 months ago | 0

| accepted

Answered
In Matlab 2022b, how to import from guide to app designer
Hi Saurabh, To import the content from GUIDE to App Designer in MATLAB R2022b, MATLAB provides a tool called "GUIDE to App Desi...

3 months ago | 0

| accepted

Answered
Relative/ Absolute path in Baseline Text
Hi Saurabh, One way to handle this is by leveraging the ‘preLoadFcn’ property of your test cases. 1. Create a Preload Functio...

4 months ago | 0

| accepted

Answered
Is it possible to use the simulink model as a function in matlab?
Hi Marina, Yes, it is possible to call a Simulink model from within a MATLAB function. Here’s a step-by-step guide on how to do...

5 months ago | 0

Answered
dicomreadVolume 'Directory was not readable' error
Hi Hayley, Here are steps to load the files correctly: Ensure that the zip file is properly unzipped into a directory that MAT...

5 months ago | 0

Answered
Python Matlab integration error - Error using numpy_ops>init thinc.backends.numpy_ops
Hi Saswati, The error message you are encountering arises due to a mismatch between the version of numpy expected by one of the...

5 months ago | 0

| accepted

Answered
What are the factors to be considered while choosing one among the multi-objective optimization solvers - paretosearch() and gamultiobj()?
Hi Dhanesh, When deciding between 'paretosearch' and 'gamultiobj' for solving multi-objective optimization problems, consider t...

7 months ago | 0

| accepted

Answered
Designing Coffee vending Machine using Simulink MATLAB
Hi Maryam, You can refer the below documentation for Modelling a Vending Machine by Using Mealy Semantics: https://www.mathwor...

7 months ago | 0

Answered
`matlab.git.GitRepository` not existing in Matlab
Hi Chandler, The matlab.git.GitRepository object is designed to represent the currently active local Git repository. This funct...

7 months ago | 0

| accepted

Answered
drive space exist and not able to save txt file
Hi Omnia, Here are several potential causes and troubleshooting steps you can take: Ensure you are correctly closing file hand...

7 months ago | 0

Answered
Error using fft on code
Hi Matthew, When you load a MAT file using "load" function, assign it to a variable. Data inside the structure can be accessed ...

7 months ago | 0

Answered
Specialized Power Systems Multimeter Block
Hi Zbigniew, Here are few steps to extract numerical results from the phasor analysis of the multimeter block: Use the Simula...

7 months ago | 0

| accepted

Answered
How to write this block diagram into Matlab in feed forward control form.
Hi Jake, You have correctly defined the individual motors (G1, G2, G3, G4) as identical with the given transfer function. You ...

7 months ago | 0

Answered
error using parallel pool (parpool)
Hi Roee, The error message related to Failed to locate and destroy old interactive jobs and Unknown type: concurrentconcurrent ...

7 months ago | 0

Answered
Hi, I tried to divide my file into 2 parallel file: a main file and a function file. Can somebody help me with this?
Hi Phat, To divide your script into two parts : a main file and a function file, create a main script that handles user input a...

8 months ago | 0

Answered
When would dotListLength as part of matlab.mixin.indexing.RedefinesDot return something other than 1?
Hi Cole, "dotListLength" is specifically for handling index operations and determining the length of these operations. It's not...

8 months ago | 0

Answered
plotting data with different dimension in a 2d line plot
Hi Stefi, To plot data where the x-axis values are scalars and the y-axis data consists of an array with a different dimension,...

8 months ago | 0

Answered
creating a code to upload and read tif images
Hi Mario, To handle a series of TIF images in MATLAB, write a script that can iterate through all the TIF files in a given dire...

8 months ago | 0

Answered
Non linear optimisation using solver based approach
Hi Bibhudatta, Given the optimization problem and the MATLAB script, it appears that you have encountered a common issue in num...

8 months ago | 0

| accepted

Answered
meaning of "Scale" column in design variable set in Response Optimizer tool
Hi Nassar, The 'Scale' column specifies the scaling factor for each design variable. This is used to normalize the design vari...

8 months ago | 0

| accepted

Load more