Answered
i have data.mat file and I am working on load forecasting for solar power with CNN, I am facing issue in data preparation.
Hi @muhammad, The reshape function requires the total number of elements in the input array to be preserved in the output array...

1 year ago | 0

Answered
How to change the function "vision.TextInserter" to function "insertText" in this code ?
Hi Vitaliy, To use the insertText function in place of vision.TextInserter, lines of code that call vision.TextInserter and the...

1 year ago | 0

Answered
Error in 'DDS_compiler/IQ Demodulator/MixerI': Initialization commands cannot be evaluated. Caused by: Each RF Blockset system must have a RF Blockset Configuration block.
Hi Swathi, To run models containing blocks from the RF Blockset, a Configuration block from the "RF Blockset/Circuit Envelope/U...

1 year ago | 0

Answered
Add Internet Protocol Packet Decoder (Issue related to example and addUpperLayerDecoder) - V2022a
Hi @SummersEnd, The “Add Internet Protocol Packet Decoder to PCAP File Reader” example has been added in R2023a. If supported b...

1 year ago | 0

Answered
Is sampling rate 384kHz through direct sound playable in MATLAB?
Hi @哲史 伊藤, Audio features from base MATLAB, such as “audioplayer”, use the “DirectSound” audio host which is limited to 192kHz....

1 year ago | 1

Answered
I need to convert mutiple .nii files into one .nii.gz file.
Hi Ed, The “gzip” command is designed to compress individual files rather than creating a single archive containing multiple fi...

1 year ago | 0

Answered
How to Measure the Time Difference of Arrival(TDOA) between two receivers
@Ijjada Hari, Rectangular pulse waveforms can be generated using a “phased.RectangularWaveform” object. Here is sample code for...

1 year ago | 0

Answered
How does the creation path for 'slprj' in Embedded Coder work?
Hi Philipp, I was facing a similar issue when using Embedded Coder to perform SIL. A workaround for me was to change the ‘Check...

1 year ago | 0

Answered
PowerGUI and Rapid Accelerator: A new block names [...] cannot be added
Hi Marten, I was getting a similar error at the "Connect to Rapid Accelerator Process and Simulate" stage, when simulating my m...

1 year ago | 0

Answered
How to use two releases of MATLAB (R2017a and R2022b) simultaneously on my laptop?
Hi Sadiq, As I understand, you are getting license errors including a “Deactivation required” error when trying to use multiple...

1 year ago | 0

Answered
binomial model (in the context of stocks): doesn't work well
Hi Jan, The “OptionPrice” matrix gives the option value for each possible path in the binomial model, which is the price paid b...

1 year ago | 0

Answered
Over time reduce an input value linearly with a delay after each decrement, using a Simulink model
Hi Steve, This can be achieved using the “Signal Editor” block, which can create and edit input signals from user specification...

1 year ago | 0

Answered
Simulink orbit propagator: How do I pause and access data at each time step?
@Gökhan, As I understand, at every simulation time step, you want to save the position and velocity outputs of the “Orbit Propa...

1 year ago | 0

| accepted

Answered
Change asynchronous machine block parameter during run time
@Ryhze, I understand that you want to change the parameters of the “Asynchronous Machine” block at model runtime. However, as p...

1 year ago | 0

Answered
im unable to get the drive cycle block
Hi Khushal, This error message seems to indicate an issue with the “startup.m” file, which is a user defined script executed at...

1 year ago | 0

Answered
How to log out of matlab drive account?
@chao liang, MATLAB Drive Connector currently does not have a built-in function to log out of it. To sign out and change accoun...

1 year ago | 1

Answered
Reg. Scrambling in Simulink
@SS, The “Initial states” parameter for the “Scrambler” block needs to be a non-negative integer vector of length equal to the ...

1 year ago | 0

Answered
Seeing error-The block 'ABCblock/xyz' has a discrete sample time that does not match the sample time 0.02 of the If block 'ABClocl/xyx/IF'.
@yogi, Generally, setting “Sample Time” in “If-Action” subsystems is not recommended as it can cause sample rate transition to ...

1 year ago | 0

Answered
Receiving error "Unable to open csv file". What could be causing this issue?
Hi Norma, This error message indicates that the selected .csv file is not in the MATLAB path and is hence not accessible by the...

1 year ago | 0

| accepted

Answered
Can I use the fitcensemble function to create a Random Forest model?
Hi Junwoo, The primary characteristic of a Random Forest model is to use random subsets of predictors to train individual trees...

1 year ago | 0

Answered
Increase the font size of the interface menus/GUI of app designer
Hi Ali, The font size of the interface menus in App Designer can be changed through the “Font Size” option in App Designer pref...

1 year ago | 0

Answered
HDL Coder for powerlib library block
Hi Bobb, The “powerlib” library is now a part of Simscape Electrical libraries. You can view the list of blocks supported for H...

1 year ago | 0

Answered
why embedded coder report "fatal error: cstring: No such file or directory" when i trying to build the code
@瑶 王, From the question categories, I assume you are building code to deploy to TI C2000 board and encountering the specified e...

1 year ago | 0

Answered
When I installed it, it showed that it was not compatible with Windows. How should I solve it?
@浩 程, I was able to install offline documentation in R2023b without any errors. This issue might be caused by using a version o...

1 year ago | 0

| accepted

Answered
How to divide image datastore into training set, validation set and test set for training a CNN network with k-fold cross validation?
Hi Bipin, The “splitEachLabel” function can be used to initially split the image datastore into training and test sets. Followi...

1 year ago | 1

Answered
SIgned up for trial license. Followed install instructions (Debian 11). run "matlab", get "Licensing error: -9,57"
Hi Michael, From what I understand, you are getting a licensing error when trying to run MATLAB with a trial license. The "Lice...

1 year ago | 0

Answered
Shearlet transform for image decomposition
Hi Ankan, Starting from MATLAB R2019b, the “sheart2” function can be used to return the Shearlet transform of a real-valued 2D ...

1 year ago | 1

Answered
How to perform fuzzy c means clustering using custom initializations (initial fuzzy membership metric, datapoints, cluster centers.. etc)?
@MashalS, Starting from MATLAB R2023b, Initial estimate for cluster centers can be specified by creating an “fcmOptions” object...

1 year ago | 0

Answered
fuzzy c-means with no random initial centers
Hi Natasha, Starting from MATLAB R2023b, Initial estimate for cluster centers can be specified by creating an “fcmOptions” obje...

1 year ago | 0

Answered
Error:An error occurred during simulation and the simulation was terminated Caused by: Derivative of state '1' in block 'pro1/PV Array/Diode Rsh/Transfer Fcn' at time 0.0
Hi Rex, From the error message you have shared, I assume you are performing photovoltaic modeling using blocks from the “PV Arr...

1 year ago | 0

Load more