48 total contributions since 2018

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

Answered

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

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

Answered

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

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

Answered

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

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

Answered

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

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

Answered

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

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

Answered

convert matrix to tensor

I think this will help you. You can refer this <https://www.mathworks.com/matlabcentral/answers/27338-convert-matrix-into-the-t...

convert matrix to tensor

I think this will help you. You can refer this <https://www.mathworks.com/matlabcentral/answers/27338-convert-matrix-into-the-t...

plus de 2 ans ago | 0

Answered

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

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

Answered

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

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

Answered

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

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

Answered

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

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

Answered

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

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

Answered

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

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

Answered

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

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

Answered

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

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

Answered

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

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

Answered

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

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