Community Profile

3,165 total contributions since 2018

Communication through MATLAB is always better than arguing.

View details...

Contributions in
View by

importfile regexp thousands separator returns NaN when negative
str2double(regexprep(numbers,',',''))

9 hours ago | 0

| accepted

how to add one element in matrix?
A = [z,A]

3 days ago | 0

setting in command window in Matlab?

4 days ago | 0

how to write 12 digit after comma
format longg E=sscanf(D,'%f')

4 days ago | 0

| accepted

I need to create a cell array initializing each element in it to 3*1 null matrix.
Simpler without loop: F(:) = {zeros(3,1)}

4 days ago | 0

| accepted

Problem using ODE45 function
You haven't defined sigma anywhere , I suggest you use a different name for example Sigma because there exists a function named...

4 days ago | 0

| accepted

I need Personal Invoice
If you have bought any of the MATHWORKS product , you should be better of contacting Mathworks Support Team by click the Contact...

5 days ago | 0

How do I use two nested for loops to store the calculated values from a given equation in a 2 dimensional array?
% With Loop t=[0,0.1,0.2,0.3,0.4]; f=[0,0,10,15,20]; M = numel(t); N = numel(f); X=zeros(M,N); for ii = 1:M for jj = ...

5 days ago | 0

| accepted

Sum according to the values in another column
[u,~,idx]=unique(C1(:)); Wanted = [u,accumarray(idx,C2,[],@sum)]

7 days ago | 0

Error Using a loop: Conversion to double from cell is not possible.
Proj = cell(10,1); % outside loop Proj{w} = ... % inside loop , leave the rest unchanged

7 days ago | 3

How do i create an even space matrix
Wanted = Start:increment:End doc colon

7 days ago | 0

Question

What is crystal ball?
I have seen some comments by some of the answered referring to crystal ball, been bugging for days. Does it actually suggest you...

7 days ago | 1 answer | 1

### 1

Extracting numbers from array of cells
V = regexp(my_data_string,'\d+[\.]?\d*','match','once'); Wanted = str2double(V) % or Wanted = str2double(my_data_string) %...

8 days ago | 0

| accepted

Not enough input argumaents
https://in.mathworks.com/help/matlab/ref/function.html - I suggest you to read it for better understanding and further usage x ...

8 days ago | 0

Convert Column Vector to arrey matrix
Matrix = reshape(vector,20,25).'

8 days ago | 0

making sub arrays of first column depending on the second column number
Wanted = splitapply(@(x){x},a(:,1),findgroups(a(:,2))) % where a is your matrix celldisp(Wanted)

9 days ago | 1

| accepted

MATLAB Answers Wish-list #5 (and bug reports)
Whenever a text is edited by mobile [safari browser] , the click produces superfluous three letters " ltr " , which is really fr...

9 days ago | 0

Comparing two matrix elements summing third and storing them separately
T = array2table(A); t = groupsummary(T,{'A1','A2'},'sum'); x = t{:,[1,2,end]}

10 days ago | 0

How to stop matlab from truncating long decimal numbers
The decimals are not truncated it’s just the appearance in command window: doc format doc sprintf

10 days ago | 0

contour and contour plot 3 not working
.^

10 days ago | 0

how can remove the rows and columns which has ones in all
use *all()* for columns and rows separately , make a copy of A to B and finally remove the unwanted

10 days ago | 0

| accepted

how to to address a specific cell
Use *find()* to know their indices: doc find

10 days ago | 0

How to replace numbers in a column vector after certain elements?
X(600+1 : end) = 0;

10 days ago | 0

| accepted

Checking for conditions in Dataset
M = sort(matrix(:,specific_column)); top_5 = M(1:5); top_5_greater_than_50 = sum(top_5) > 50; There_exist = any(matri...

11 days ago | 0

Saving data from loops
What values are you going to store? The chosen_index is for sure a scalar because as soon as the condition is satisfied once the...

11 days ago | 0

remove Nan from a row vector using if statement only
*isnan()* would suffice your need doc isnan

11 days ago | 0

| accepted