Answered
Creating a matrix using the colon function
No other fastest way , there’s arrayfun() I could think of but I don’t think any faster. I have also submitted feature request r...

6 years ago | 1

Answered
outputting the left side of pairs in array
y(2:end-1)

6 years ago | 0

Answered
Different results in symbol integration
Called int() 5 times instead of 4.

6 years ago | 0

Answered
\upvarphi Matlab / Latex character
No , you cannot.

6 years ago | 1

| accepted

Answered
What does A=A((x:y,:) mean?
x = 1 y = 2 A = [1, 2; 3, 4; 5, 6] A(x:y, :) % read about matrix indexing doc zeros % to create a zeros mat...

6 years ago | 0

Answered
cosd function not working
clear cosd

6 years ago | 1

| accepted

Answered
Display Interpreted Latex string outside a plot
sympref('TypesetOutput','default') f = str2sym('sqrt(abs(sin(x.^2)))') % gives the desired result in livescript

6 years ago | 0

| accepted

Answered
Implementation of a matrix
x(:).^(0:numel(x))

6 years ago | 1

Answered
How to Extend a Matrix Periodicly?
repmat(a, 1, PerioD)

6 years ago | 1

| accepted

Answered
Out of memory problem
doc tall

6 years ago | 0

Answered
Display or print char data
clear all It worked for me after removing *_* at the very end

6 years ago | 0

Answered
Calculating Specific Row in Matrix
1:3:128

6 years ago | 1

Answered
Need to create all possible sequences
perms(X)

6 years ago | 0

Answered
sum() function gives error
clear sum

6 years ago | 1

Answered
Data dimensions must agree
x = reshape(x, 1, []); y = reshape(y, 1, []); [xx, yy]=meshgrid(x,y); z = repmat(zz(:), 1, size(xx, 2)); mesh(xx, yy, z...

6 years ago | 0

| accepted

Answered
Understanding the output returned by anonymous function
f = @(S, K, r, sigma, Tmt,cmkt)deal(blackscholes (S, K, r, sigma, Tmt) - cmkt); [o1, o2] = f(S, K, r, sigma, Tmt, cmkt);

6 years ago | 0

Answered
extracting only real numbers (not real part) from a vector
vectors = [phi, psi]; vectors(4865:end, :)

6 years ago | 0

| accepted

Answered
pls i need help fast
<https://www.mathworks.com/help/matlab/math/parameterizing-functions.html> and loop through h and k

6 years ago | 1

Answered
Unrecognized function or variable
edges not defined

6 years ago | 0

| accepted

Answered
selecting rows from column vectors
mpw.hid=='103' With strcmp(mpw.hid,'103')

6 years ago | 0

| accepted

Answered
Hybrid Matrix (strings, double elements)
DifF = double(X(:,2)) - double(X(:,3)); % never name a variable diff!!

6 years ago | 1

Answered
Trying to remove all columns that have "_Units"
finalnbs(:,contains(finalnbs.Properties.VariableNames, '_Units')) = []

6 years ago | 1

| accepted

Answered
Substitute symbolic expression into matrix
sym(double(subs(B)))

6 years ago | 1

| accepted

Answered
Add rows to table
s = [1, 2, 3;... 4, 5, 6]; % an example T = array2table(s); T1 = array2table(repmat("",2,3)); T1.Properties.Variabl...

6 years ago | 1

| accepted

Answered
Pre-processing matrix in order to have a blank line for every change of x
You can’t have blank lines in a matrix, simply: s = [1, 2, 3;... 4, 5, 6]; % an example [m,n] = size(s); Wanted = ...

6 years ago | 0

| accepted

Answered
Vector sum by index
cumsum()

6 years ago | 0

Answered
How to change size of figure from rectangle to square?
axis equal

6 years ago | 0

Answered
Solving coupled ODE's by ode45 / exp input error
exp(

6 years ago | 1

| accepted

Answered
Matlab zeros function problem
clear zeros zeros(1, 10)

6 years ago | 0

| accepted

Answered
How to sort a cell array of chars in descending order
V = sort(array); Wanted = V(end : -1 : 1)

6 years ago | 0

Load more