photo

Prateekshya


Last seen: 4 days ago Active since 2023

Followers: 0   Following: 0

Statistics

  • 6 Month Streak
  • Knowledgeable Level 2
  • First Answer

View badges

Feeds

View by

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

11 days 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...

11 days 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...

13 days 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....

14 days 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...

14 days 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...

14 days 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...

15 days 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...

15 days 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, ...

15 days 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...

15 days 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...

16 days 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...

18 days ago | 0

Answered
Hello! How I can use output data from one function as an input for another. And write it in one function
Hello Aknur, To pass the output of one function to another function as arguments, you need to define and call the functions cor...

19 days ago | 0

Answered
Generate an array with infinite values
Hello Matteo, It is not possible to generate an array consisting of infinite elements since there are storage limits. However, ...

19 days ago | 0

Answered
How do I plot an arc or parabola
Hello Peter, To plot a parabola or arc in MATLAB, you can use the respective mathematical equations to generate data points and...

20 days ago | 0

Answered
using the int i as output name
Hello Sobel, For this purpose, you can use sprintf() function. This function will use an integer to generate the name of the fi...

20 days ago | 0

Answered
Limited Number of Cores in Parallel Processing
Hello Ahmad, MATLAB's ability to connect to a certain number of workers is primarily determined by the type of license you have...

20 days ago | 0

Answered
How can I speed up a nested for loop without parfor or spmd?
Hello Radhika, Apart from the things you have already tried, you can use methods like pre-allocation, vectorization and profili...

21 days ago | 0

Answered
How to Plot Lines Between Coordinate Pairs
Hello Ricky, Replacing "i" with a colon works in the latest version of MATLAB. I assume you are using an older version. Please ...

22 days ago | 0

Answered
How to call matlab functions from a C/C++ project..???
Hello Anuj, MATLAB Engine API for C++ provides an interface for C++ to launch MATLAB, use MATLAB functions and exchange data. P...

22 days ago | 0

Answered
5 samples and 4 features, how to do direct linear discriminant analysisusing MATLAB package algorithm
Hello Dayun, You can use "fitcdiscr" function in MATLAB to perform Linear Discriminant Analysis. Here is a sample code: % Samp...

23 days ago | 0

Answered
How can I use from all of my RAM and CPU cores when I run M file?
Hello @A.R.G, MATLAB traditionally executes code in a single thread, which means it uses only one core of the CPU by default. H...

26 days ago | 0

Answered
How to load data from a .txt file to matlab in the form of a matrix???
Hello Avinash, As per my understanding, the dlmread() or readmatrix() function will read the data from a file and store it in a...

26 days ago | 0

Answered
How to add space between heading of txt file?
Hello Khurram, To format the headers of your text file with spaces between them, you can use MATLAB's fprintf() function with s...

26 days ago | 0

Answered
how to make an identifer for string variables
Hello Linden, Assuming that the variables are doubles, here is a small example to achieve value assignment by grouping the vari...

26 days ago | 0

Answered
How to access much data from excel sheet to matlab?
Hello Manish, The error indicates that there are 59 rows and 8 columns in the excel file however, you are trying to access 60th...

28 days ago | 0

Answered
Sateflow: Indexing an array of size 1
Hello Maciej, The error you are getting is due to invalid indexing. MATLAB follows 1-based indexing i.e. the first index is 1. ...

28 days ago | 0

Answered
Matrix dimension must agree
Hi Maria, The error you are encountering is due to the incorrect use of element-wise multiplication (.*) instead of matrix mult...

29 days ago | 0

Answered
Issues filling rounded numbers into MS Word
Hello @dweather, The issue you're experiencing is likely due to the way MATLAB handles numeric formatting when appending values...

29 days ago | 0

Answered
MATLAB crashes with no displayed error
Hello Kyle, The exit code -1073741819 (or 0xC0000005 in hexadecimal) typically indicates an access violation error, which means...

2 months ago | 0

Load more