Answered
call all element inside cell (this cell contain another set of cells)
[cell_A{:}]

7 years ago | 0

| accepted

Answered
How to find pixel connect in column matlab
+any(pic)

7 years ago | 0

Answered
Link discontinuities in fplot?
The first endpoint is the next one’s starting point.

7 years ago | 0

Answered
Pairwise subtraction of rows in the same matrix
Aa= reshape(a',1,size(a,2),[])- a; % a your matrix , each page of Aa represents each row’s subtraction A=reshape(permute(A...

7 years ago | 0

| accepted

Answered
Passing a function as an argument when the function itself has been passed
Using anonymous function: f = @(x) exp(x); g = @(x) sin(f(x)); h = @(x) 2*g(x); h(1) % Evaluation % or by ...

7 years ago | 0

Answered
can anyone help me ?
See the code attached with few comments inside.

7 years ago | 0

| accepted

Answered
Hi , can anyone help me to do this , thank you
Z=permute(reshape(A.',8,4,[]),[2,1,3]); Wanted = reshape(sum(Z,2),4,[])

7 years ago | 0

| accepted

Answered
index exceeds matrix dimension
Last *x(5)* should be *x(4)* Also .^ .* ./ % to be taken care of

7 years ago | 0

Answered
how to convert datetime array to double
doc datevec

7 years ago | 0

Answered
Traversing through a matrix row by row extracting elements from mimimum to maximum values in each row
mink(arrival_schedule(1:10,:),2,2) % ^ n number of minimum elements

7 years ago | 0

| accepted

Answered
Double Intergral Over an Ellipse with Varying Radius
.* sin(...) ^ missed

7 years ago | 1

| accepted

Answered
could anyone help me to solve the issue
152 +.... still don’t know what a cell is , don’t know what compatibility of size does MATLAB allow A-B{1}(1:3,:)

7 years ago | 0

Answered
Matrix not displaying rows with minimum values
format longg doc format

7 years ago | 0

| accepted

Answered
Storing and retrieving mathematical equations
An example : syms x G = cell(3,1); for k=1:3 G{k} = matlabFunction(k*x^2); end G{2}(4) % 2 second e...

7 years ago | 1

| accepted

Answered
Delete rows from matrix
A=[ 1 2 3;... 4 5 6;... 7 8 9;... 10 11 12] b=2; A(b,:)=[]

7 years ago | 2

| accepted

Answered
Conditional approach in a matrix variables
find(Y>10,1,'first')

7 years ago | 0

| accepted

Answered
How to substitute by pairs in an equation
In each iteration X is a vector not a scalar resulting in multiple plots.

7 years ago | 0

Answered
How can I find the average of certain rows in a column depending on the value of another column?
Loop is a waste of time, try this: splitapply(@mean,A(:,1),findgroups(A(:,2)))

7 years ago | 2

| accepted

Answered
How can I integrate equations, with arrays? I seem to get 1x1 sym instead of numbers!
*double()* to get the results as decimal values

7 years ago | 0

| accepted

Answered
How to add/specify range of values for each variable in vpasolve?
*vpasolve()* not *solve()*

7 years ago | 0

Answered
How do I compute symbolic integrals
Wanted=zeros(size(t)); for k=1:numel(t) Wanted(k)=integral(f,0,t(k)); end

7 years ago | 0

| accepted

Answered
How can i use 'sum' for a 'cell array'?
sum(cat(1,A{:}),2)

7 years ago | 0

Answered
calculate sum of cell
Choose which of the below suits you the best: Jun=cat(3,JUN{:}); sum(Jun,3) %or squeeze(sum(sum(Jun))) % since 201...

7 years ago | 1

| accepted

Answered
delete empty cells from cell array
reshape(out,4,[])

7 years ago | 1

| accepted

Answered
Calculating an average if specific condition is fulfilled
<https://in.mathworks.com/company/newsletters/articles/matrix-indexing-in-matlab.html> - read the topic logical indexing once yo...

7 years ago | 1

Answered
saving values with variables in a matix
nodes=2; syms omega Pos=sym('pos',[1 nodes]); P=sym('p',[1 nodes]); H_d=sym(ones(nodes,nodes)); % if your ...

7 years ago | 0

| accepted

Answered
How to write plotting equation in matlab help please
x=start_value:0.1:endvalue; % fillup the missing values as is you homework , I suggest you to MATLAB onramp course y= 2*exp(......

7 years ago | 1

| accepted

Answered
Adding labels to a matrix number
T=array2table(T); T.CLASS=repmat(['b1';'b2'],3,1); T.Properties.VariableNames={'A','B','C','D','CLASS'}

7 years ago | 0

| accepted

Answered
Convert maple code to MATLAB code
More or less: h= 0.1; f= @(x,y) 1+x.^2+y; x= 0; y= 1; r = [x,y]; while x<1 F=f(x,y); x= x+h; y= ...

7 years ago | 0

Load more