Answered
How can I get precise result?
a * sym(b)

6 years ago | 0

| accepted

Answered
Using characters for indexing in 2019b
charr1 = ':,:,1,1,1,1,1,1'; ix1 = regexp(charr1, '\,','split'); ix2 = str2double(ix1); ix1(~isnan(ix2)) = num2cell(ix...

6 years ago | 0

| accepted

Answered
why i m getting this error "Array indices must be positive integers or logical values. or min=min(dist);" please help me out?
clear all % at the very beginning, this clears the variable named ‘min’ MIN = min(dist); % change your line to this, me...

6 years ago | 1

Answered
Aid with Intercepter Latex for Xlabel
Use *overline* instead of *bar*

6 years ago | 0

| accepted

Answered
How to call a variable in the middle of an input
Use *sprintf(...)*

6 years ago | 0

| accepted

Answered
Extracting values from table/ matrices
TablE(TablE.a == x, 2:3) % x is a numeric scalar , use strcmp(...) if it’s a string or a char

6 years ago | 0

| accepted

Answered
Script that create all combination in a matrix
doc randperm

6 years ago | 0

Answered
How to pop the content of a matrix in a way like pop the content of a cell
aVector = [2 3 4 5]; aVector = num2cell(aVector); myFun(aVector{:}) % ;)

6 years ago | 1

Answered
How to randomize the row of a table directly ?
B = T(randperm(size(A,1)), :)

6 years ago | 1

| accepted

Answered
How to set the matrix of the .mat file to double or other types?
[pdaeye,th] = pulse2pda(pulse.pulse,100000,M,DC);

6 years ago | 0

Answered
Excessive Information in Output (LiveScript)
Suppress the output by adding ; (semicolon) at the end of each line.

6 years ago | 0

| accepted

Answered
How do I create a legend and include loop variable values in the labels while plotting a Matrix ?
m = rand(10,8); plot(m) legend(compose('s = %d', 1 : size(m,2)))

6 years ago | 0

| accepted

Answered
Unrecognized function or variable 'pulse2pda'.
pulse2pda introduced in 2020a and requires SerDes Toolbox.

6 years ago | 1

Answered
I need help adding previous values to a vector
dn=-0.05; radius=4:0.05:6; velocity=10; innerrad=4; outerrad=6; density=1000; P3=40; deltaP=(-dn*density*9.81/1/1000)-(...

6 years ago | 0

Answered
How can I find the column values ​​for a given row?
data = dlmread('mytext.txt'); % if you face memry issues use tall arrays data(4e5,:)

6 years ago | 0

| accepted

Answered
How can I update 2 separate figures without opening new figures?
figure(1) ... figure(2)

6 years ago | 0

| accepted

Answered
change char class to string class
doc string doc compose % after Stephen's comment , make sure to use "" - double quotes

6 years ago | 0

| accepted

Answered
HOW to write cos^2(t) in matlap
t = 0:pi:2*pi; cos(t).^2 % basic question , start with MATLAB Onramp course

6 years ago | 1

| accepted

Answered
how to reshape the matrix that has value
nonzeros(X.')

6 years ago | 0

Answered
How to change 'figure' title to wanted text
figure("Name","That's what i want")

6 years ago | 0

Answered
Solve the differential equation
doc ode45

6 years ago | 0

Answered
Not able to run a code given in documentation of tf function
clear tf

6 years ago | 0

| accepted

Answered
How to get the rightmost root in the interval?
max(fzero(y, 2))

6 years ago | 0

Answered
Why am I getting complex values?
I don’t know why you’re surprised: >> (-1)^1.85 % if the value is negative ans = 0.8910 - 0.4540i

6 years ago | 0

Answered
[DISCONTINUED] MATLAB Answers Wish-list #5 (and bug reports)
Just an opinion. It would be great to restrict fake biased account created to just to vote.

6 years ago | 0

Answered
First adjacent difference greater than a certain value
TabLE.Depth(find(abs(diff(TabLE.Temp)) > 1, 1) + 1)

6 years ago | 0

| accepted

Answered
create a matrix with a for loop
T = 60; phi = cell(numel(t),1); t = 60:60:12940; for k = 1:numel(t) phi{k} = [(n1(1,t(k)+T)-n2(1,t(k)+T)) / ... ...

6 years ago | 1

Answered
how to define a new variable in a table
TablE.even = [0; 1; 0]

6 years ago | 0

| accepted

Answered
How to do matrix equality testing for symbols?
syms a b [3 1] real assume([a, b] > 0) r1 = a*b'; r2 = b*a'; isAlways(r1 == r2) % indeed with a warning

6 years ago | 0

Load more