Answered
C++ structure naming
@Andrew, when generating C++ code from a Simulink model, you can control how the elements of bus signals are named in the genera...

1 year ago | 0

Answered
Changing parameter values after a code is generated using configuration file
@Sanket Mhadgut, to enable the flexibility of changing parameter values without regenerating the code, you can use a technique c...

1 year ago | 0

Answered
i want to connect different points on a 2d graph paper using matlab gui and want to show the result of total distance from a point to a different point what would be the possible way to do this in matlab gui
@mohit kumar, you can implement it using MATLAB App Designer , below I have provided a complete implementation using MATLAB App ...

1 year ago | 0

Answered
License Manager Error -9
@Molla, refer to this answer to resolve the issue you are facing.

1 year ago | 0

Answered
licence error -9: how do solve the problem more efficiently ?
@Wolfgang, refer to this answer to resolve the issue you are facing

1 year ago | 0

Answered
Integrating a function given multiple points
@jamie HUGGINS, to calculate the total value of ( M ) using the given function ( M = Q *c dt ), where ( Q ) is a constant and th...

1 year ago | 0

Answered
Error trying to publish code in PDF
@Chinonso Ovuegbe, refer to this MATLAB answer: https://www.mathworks.com/matlabcentral/answers/363977

1 year ago | 0

Answered
Error when trying to publish PDF
@Mark, refer to this MATLAB answer: https://www.mathworks.com/matlabcentral/answers/363977

1 year ago | 0

Answered
calculate monthly sum based on weekly data
@kim chan, to calculate the monthly sum from weekly data in MATLAB, you need to map each week to its corresponding month and the...

1 year ago | 0

Answered
How can I visualize a Matrix Data in Workspace in common Matrix notation, instead of with semicolon notation?
@Bidsitlov, to print or display the workspace variable(in your case the variable is a 3x3 matrix) in the format mentioned by you...

1 year ago | 0

Answered
Can I load an SQL Server database (.bacpac file) with MATLAB ?
@Kalthoum, to work with data in MATLAB, you'll first need to restore the .bacpac file to an SQL Server database, then connect to...

1 year ago | 0

Answered
how can i convert my .sql file into .mat file?
@VIVEK MEHTA , I assume that the .sql file you have is a dump of table data, you should first load it into a database using tool...

1 year ago | 0

Answered
Formatting rainfall grid data
Hey @Nikhil Sumer, to extract daily rainfall data for a specific set of coordinates from your grid data, you can follow these st...

1 year ago | 0

Answered
How to use logic operation with lookup table
Hey @Shreya Dutta, To compare values from a 24-hour time-series profile with a constant and generate a new time-series signal ba...

1 year ago | 0

Answered
How can I import data from plt file (in tecplot) into MATLAB?
Hey @Megha Goel, refer to the below answer to import tecplot into MATLAB: https://www.mathworks.com/matlabcentral/answers/19052...

1 year ago | 0

Answered
Rebuild time series to same size time series
Hey @Isma_gp , To achieve this, you can iterate over each cell in your 1x16 cell array, extract the time vector from column 34, ...

1 year ago | 0

Answered
How to wait for "notify" to call and execute all listeners in Matlab 2015b?
To ensure that all listeners in class B are executed before any other function of B is called, you can use a few strategies to m...

1 year ago | 0

Answered
create a matrix of combinations
To generate all possible combinations of selecting one combination from each period, you can use the concept of Cartesian produc...

1 year ago | 0

Answered
Can't open matlab2016a!
Refer to this answer : https://www.mathworks.com/matlabcentral/answers/474443

1 year ago | 0

Answered
how to convert struct on another variable
Let's address your questions one by one:Loading and Handling Images When you use uigetfile to select an image file, you typical...

1 year ago | 0

Answered
Nested Minimization Function Problem
To solve this optimization problem, you can use MATLAB's optimization toolbox ,below is the documentation link: https://www.math...

1 year ago | 0

Answered
Random Timeseries with Max and Min Delta
To create a reproducible time series with specific constraints on the gradient between consecutive values, you can generate the ...

1 year ago | 0

Answered
I have a variable in the workspace Bus type
If you have a bus object in MATLAB called out1 that contains multiple signals, you can access each of the signals using dot nota...

1 year ago | 0

Answered
Matlab to C code conversion
Converting MATLAB code to C code using MATLAB Coder can sometimes be challenging, especially when dealing with functions that ar...

1 year ago | 0

Answered
how to create a variable which is a function of state variable in matlab?
Solving value functions where the state variables are information sets typically arises in dynamic programming problems, particu...

1 year ago | 0

Answered
how to increment no. upto particular iteration so that total sum will be desired value.
To achieve the desired sum of 0.16 through a series of increments over 6 iterations, you can distribute the increments in a way ...

1 year ago | 0

Answered
Block Error Message Matlab
The error message you're encountering in your simulation suggests that there is an issue with the numerical stability or setup...

1 year ago | 0

Answered
how to change slope of the grid line in logarithmic scale?
To change the grid lines of the y-axis to match the slope of your equation on a log-log plot, you can use MATLAB's loglog functi...

1 year ago | 0

Answered
how to access design stdio file results from matlab
Please refer to the below documentation: https://www.mathworks.com/matlabcentral/fileexchange/72228-tcstinterface-cst-studio-s...

1 year ago | 0

Answered
replace sub-matrix values with zeros
To achieve this, you need to loop through all elements of the cell array C and set the values to zero for all indices except for...

1 year ago | 0

Load more