Answered
evalfis with input data file in excel/txt format
Hello Muhammad, To evaluate your Mamdani Fuzzy Inference System (FIS) with a dataset stored in an Excel file, you can use MATLA...

3 months ago | 0

Answered
Fminsearch error: not enough input arguments.
Hello Giuliano, The error you are encountering, "Not enough input arguments," typically arises when MATLAB expects more inputs ...

3 months ago | 0

Answered
How do I increase the width of the connection "lines" between Simulink blocks for improved readability of the model
Hello David, In Simulink, it doesn't allow you to directly increase the thickness of the lines, there are several ways to impro...

3 months ago | 0

Answered
Can't change line style from plot browser in R2014b
Hello Elizabeth, The issue you are encountering with MATLAB R2014b likely stems from changes in the graphics system introduced ...

3 months ago | 0

Answered
Sorting data from text file
Hello Tyler, To solve this problem, you need to iterate through your data to find the lowest value, display it, and then find t...

3 months ago | 0

Answered
Pulling coefficients out of symbolic matrix to solve
Hello @B K, To automate the process of extracting coefficients and assembling them into a consistent matrix format, you can use...

3 months ago | 0

Answered
How to keep positions of node/element number labels consistent with various FE mesh resolution?
Hello @hmhuang, The figure you get with the parameters 100 and 50 is identical with the other one. Normally, the visual differ...

3 months ago | 0

Answered
system of 2 pdes
Hello Kostas, To solve a system of nonlinear parabolic partial differential equations (PDEs) like the one you described, you ca...

3 months ago | 0

Answered
Simulated Annealing for optimization
Hello Ana, To adapt your simulated annealing code from solving a backpack optimization problem to a task sequencing problem, yo...

3 months ago | 0

Answered
How can I plot a plane in a 3D space by using symbolic functions?
Hello Moein, To visualize a symbolic 3D function in MATLAB and plot its values on a defined plane, you can use symbolic math an...

3 months ago | 0

Answered
How to periodically change Simulink Output file name?
Hello Drew, You are encountering the error because changing the filename of the "To File" block during simulation in Simulink i...

3 months ago | 0

Answered
how to read a video in matlab?
Hello Vinay, The error suggests that MATLAB is unable to find the required file. You may check for the following to ensure thin...

3 months ago | 0

Answered
How to plot a function using gradient descent method?
Hello Bijoya, To plot functions in MATLAB using gradient descent, you need to follow a few steps. Gradient descent is an optimi...

3 months ago | 0

Answered
Slow performance using closures
Hello Lukas, The performance issue you are experiencing is likely due to the overhead associated with storing and accessing fun...

3 months ago | 0

Answered
Identify Grid Data Required during Intepolation
Hello Zach, To tackle the problem of identifying which grid points are queried during an n-D interpolation and potentially gene...

3 months ago | 0

Answered
Why is for-loop faster than range index?
Hello Konstantinos, The difference in performance between fun_A and fun_B can be attributed to how MATLAB handles array indexin...

3 months ago | 0

Answered
Pre-Allocate Space for a Cell Array
Hello Jessica, This error is occuring because of empty array initialization. Instead of initializing the cell arrays with empty...

3 months ago | 0

Answered
To improve results using GA toolbox
Hello Ravindra, For optimizing the result further in Genetic Algorithms, you can follow these steps: Try increasing the popula...

3 months ago | 0

Answered
hi..i am getting an error while using the "axis" function....the value that i gave was [0 255 0 1] ....0 to 255 are grey scale values of image on the x axis and 0 to 1 the cdf on the y axis....
Hello Vishwas, It looks like there might be a small syntax error in your use of the axis function. In MATLAB, the axis function...

4 months ago | 0

Answered
Undefined variable "dspdata" or class "dspdata.psd
Hello Jay, The reason behind this error is the unavailability of dspdata class in your MATLAB environment. This could be due to...

4 months ago | 0

Answered
Creating vertical temperature profile over complex terrain with animation
Hello Jamie, Creating animation of temperature data can be done by using the 3D contour plot. Here is a sample code for the sam...

4 months ago | 0

Answered
How to extract hyperspace of a n dimensions matrix
Hello Renaud, You can take the help of indexing cell array to perform extraction of hyperspace from a multi-dimensional matrix....

4 months ago | 0

Answered
What is wrong with my legend?
Hello @Stwiwi, The issue with the legend colors not matching the plotted lines in your MATLAB code could be due to the legend n...

4 months ago | 0

Answered
How to call VChooseK function?
Hello Ruini, You need to download vchoosek which can be found in MATLAB Central's File Exchange and then add it to MATLAB's pat...

4 months ago | 0

Answered
Eigenvalue and factor models: how to get the orthogonal matrix?
Hello Charles, You can use the eig function to get the orthogonal matrix in MATLAB. Here is a sample code for the same: % Samp...

4 months ago | 0

Answered
Multidimensional matrix multiplication elementwise
Hello @Raisul Islam, To perform an element-wise product between a 31x31 matrix and a 5139x31 matrix, you need to ensure that th...

4 months ago | 0

Answered
How to export CSV file from folder to MATLAB work space with their parent folder serial number ?
Hello Hari, While using dir command, the default sorting order is lexicographical order which results in the order 1, 10, 100, ...

4 months ago | 0

Answered
How do I show the following condition t>1 with help of for-loop?
Hello @Sergey Dukman, The code you have shared is indeed correct. It satisfies the condition t>1 while written in a for loop. A...

4 months ago | 0

Answered
error as input must be numeric
Hello @FIR, This error will occur when "month" is not numeric, since "hist" function expects a numeric argument. To resolve thi...

4 months ago | 0

Answered
Matlab logging problem.
Hello Mahesh, When using MATLAB's `diary` function to log messages, and it works locally but not in a GitLab CI/CD pipeline, fo...

5 months ago | 0

Load more