Question

Why doesn’t livescript display the results in LATEX form?
When I was using 2017a the results of symbolic operations resulted in LATEX form but why does it not happening in 2018b? Is ther...

6 Tage ago | 0 answers | 0

### 0

How to make a variable an even number?
Is your question "How to check if a variable consists of even numbers?" Google "even number mod matlab"

6 Tage ago | 0

| accepted

How can i link same index of two vectors vectors?
[~,index]=max(V); Value = M(index)

6 Tage ago | 1

| accepted

storing data in a matrix from a nested loop
[m,n]=size(d1); [m1,n1]=size(d2); z = permute(reshape(d1.',1,n,m) - d2,[2,1,3]) d12 = reshape(z,n,[]).' % Or if you prefer...

6 Tage ago | 0

I don't know if matlab is calculating this properly
Result = mysum(2,10) % just call it like this doc function % to know how to use functions function SUM = mysum(...

6 Tage ago | 1

How to compute logs in MATLAB

6 Tage ago | 0

Count the number of same elements in an array
[~,~,ix] = unique(V); C = accumarray(ix,1).'

7 Tage ago | 2

| accepted

Index in position 1 is invalid. Array indices must be positive integers or logical values. Z=null(R,'r')
This is the exact reason why people shouldn’t name variables as the names of inbuilt functions!! clear null % to clear...

7 Tage ago | 1

| accepted

how to plot this function?
x=@(t)cos(t)+cos(2*t) y=@(t)sin(2*t) % you can use fplot() help fplot doc fplot

7 Tage ago | 0

| accepted

How to extract individual vectors out of a matrix and save them with different names?
What you're doing is not a good idea see https://in.mathworks.com/matlabcentral/answers/304528-tutorial-why-variables-should-not...

7 Tage ago | 0

| accepted

Filling gaps in time series with Nan
d = (data(1,1):data(end,1)).'; ix = ismember(d,data(:,1)); new_data = [d,nan(numel(d),1)]; new_data(ix,2) = data(:,2)

7 Tage ago | 0

| accepted

How to load data files from different folder using for loop?

8 Tage ago | 1

| accepted

apply condition on Matrix?
Just use logical indexing "==" to see the values equal 1 and use nnz() and then use >= T if you get 1 it's true else false. hel...

8 Tage ago | 1

| accepted

Removing char in a mixed string column so only numerical values are left?
Wanted = str2double(regexprep(LED,'LED','')) % ^^^--- is your columns of data containing mixed data

8 Tage ago | 1

How to plot a graph from matrix each row elements should start plotting from row number
I'm not certain what you want though , see if the below satisfies your needs: plot(matrix)

8 Tage ago | 0

Can somebody explain me this answer?
The code copies the third element of a as 2 by 2 matrix, see the below example: >> a a = 1 2 3 4 >>...

8 Tage ago | 1

| accepted

Why does setdiff answer depend on order of arguments?
bob not in bill (nothing unique all elements of bob belong to bill) help setdiff

8 Tage ago | 0

How do i plot this in matlab
y = -(sin(pi/2*cos(x))Operator missing here(-pi/2*sin(x))./cos(x)

8 Tage ago | 0

| accepted

How do I access a certain directory?
help cd

8 Tage ago | 0

remove row in A by referencing on another matrix, B, with true or false to produce another matrix c
Use the same approach shown in your previous questions! C = A(B==false,:)

8 Tage ago | 1

| accepted

remove specific rows by referencing on the first digit of each row.
B = A(~A(:,1),:)

8 Tage ago | 0

| accepted

Answer is not displayed on static text

8 Tage ago | 0

| accepted

How to find the full file path with only a folder?
s = what(Folder); s.path

8 Tage ago | 2

max matrix from 3D matrix
max(matrix,[],3)

8 Tage ago | 0

| accepted

How to find single index values in a matrix?

8 Tage ago | 1

| accepted

Separate numbers from text
C = str2double(regexprep(C,'[a-zA-Z^()]','')).'

8 Tage ago | 0

How to find several slopes
help diff % calculates the change between each instances

8 Tage ago | 0

| accepted

i want my graph to start from 0 after writing this code it starts from 1
% No loops needed: x=0:51; y=-0.0349*(exp(0.548*x*0.1))+8.549*(exp(-0.548*x*0.1))+0.119; plot(x,y) "plot(Y) plots the col...

8 Tage ago | 0

| accepted

Error "Undefined function or variable"
[maBar_1, wBar_1, alphaBar_1] = hcEqPt(22, 0.6, 0.095, 47500, 0.0026); fprintf('At v=22, ma = %d, w = %d, alpha = %d',...

8 Tage ago | 0