Community Profile

# Aakash Deep

48 total contributions since 2018

I am a B.Tech 4th year CSE student.

View details...

Contributions in
View by

Lists in matlab to store iterative data.
Hello Nilesh, From your question I understand that you are trying to add a new value into your pre-defined vector. So for th...

plus de 2 ans ago | 0

| accepted

Solved

Second Diagonal
Transpose the matrix from it's second diagonal.

plus de 2 ans ago

Readtable error: Index exceeds array bounds.
Hello, You can try dlmread command to read a .csv file If you think path is creating problem somewhere, you can k...

plus de 2 ans ago | 0

picking maximum difference across entries of row vectors, Part 2
Hello, In order to find out the maximum difference between two elements in a row vector, you can first sort it and then take ...

plus de 2 ans ago | 0

Convert unfolded tensor back to higher dimensional tensor?
Hey Rohit, Let's first see how we can unfold a tensor to matrix then you might get some insight how to unfold it back. Let's ...

plus de 2 ans ago | 0

Problem

Second Diagonal
Transpose the matrix from it's second diagonal.

plus de 2 ans ago | 0 | 34 solvers

MATLAB crashes if imshow is used.
If you have a valid license then you can contact support from the below link <https://mathworksservicerequest.secure.force.co...

plus de 2 ans ago | 0

convert matrix to tensor

plus de 2 ans ago | 0

how to make a tree
Here are some of the references which you can look at, <https://www.mathworks.com/matlabcentral/answers/35698-c4-5> <https...

plus de 2 ans ago | 0

3D plot of a matrix
Hello Anshuman, You can just use the surf command for this. It will take care of your axis and color contrast itself. A...

plus de 2 ans ago | 0

could anyone tell me how to save the values while the code is getting executed
Use save command to save the current value of the variable. save filename variable1 This will create .mat file (for this...

plus de 2 ans ago | 0

Save workspace output to a file
Hello Alpedhuez, You can use the save command to save multiple workspace variables in a single file. You can do this ...

plus de 2 ans ago | 0

Extract features from an EEG (single channel) signal
Hello Chiara, If you want to extract the alpha and theta rhythm of the signal, you can find the wigner-ville transform of the...

plus de 2 ans ago | 0

Matlab taking too much time to give output
Hey Pushkar, Solving a convex optimization problem is a big task. Yes, it can take a long time to converge. You can not minim...

plus de 2 ans ago | 0

how to make if statement repeat only once ?
Hey, From your question, I understand that you have a if condition inside a loop which you need to execute only once for a p...

plus de 2 ans ago | 3

change a script to function
Hey, In order to create a function in MATLAB, add a couple of lines to your code function [out_1, out_2, ....., out_n]...

plus de 2 ans ago | 0

| accepted

how to plot surface for this problem.
I am assuming that your matrix *X* has a dimension nx3 where n can be your iterations. After executing your function command *F=...

plus de 2 ans ago | 0

Converting a 1x1 Vector into a Scalar Number
I agree with Stephen Cobeldick comments that there is no data class as scalar/vector/matrix, it all depends on their dimensions....

plus de 2 ans ago | 0

Solved

Bullseye Matrix
Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

plus de 2 ans ago

Solved

Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...

plus de 2 ans ago

Solved

Target sorting
Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

plus de 2 ans ago

Solved

Return the largest number that is adjacent to a zero
This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

plus de 2 ans ago

Solved

The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

plus de 2 ans ago

Solved

Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

plus de 2 ans ago

Solved

Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

plus de 2 ans ago

Solved

Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

plus de 2 ans ago

Solved

Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

plus de 2 ans ago

Solved

Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

plus de 2 ans ago

Solved

Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

plus de 2 ans ago

Solved

Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

plus de 2 ans ago