Answered
How to plot a line over a specific interval?
ix = (g1 >= -1) & (g1 <= -.5); % follow the same for the rest plot(x(ix), g1(ix))

3 días ago | 0

Answered
for loop with syms variable
% Newer versions syms th [1, 6] c = cos(th) %Older versions th = sym('th', [1, 6]); syms(th) c = cos(th)

3 días ago | 0

| accepted

Answered
Incrementally increase power of a matrix
n = 10; m = arrayfun(@(x) A^x, 0:n, 'un', 0) M = cat(1, m{:})

3 días ago | 0

Answered
Could anyone tell me what is wrong with the following code?
sprintf('%.32f',(6.6-5.5)/0.1) (6.6-5.5)/sym(0.1)

3 días ago | 1

| accepted

Answered
brace indexing not supported
d_A_3(9)

3 días ago | 0

Answered
How to clear a specific piece of output in a Live Script?
Make a *section break* of that lines of code.

3 días ago | 0

| accepted

Answered
매트랩 ezplot 사용시 오류
You made a file named ezplot.m please remove it from the path or rename. % Use fplot as the documentation suggests fplot(@(x...

3 días ago | 0

Answered
Is it possible to change the size of a table?
reshape(TabLe{:,:}, [], 2)

3 días ago | 0

Answered
How to create an underline in text
legend(' $\underline{Mepe}$ ','interpreter','latex')

4 días ago | 0

| accepted

Answered
Padding Zeros to an Array
n = 10; % an example b_up = reshape([b; zeros(n, size(b,2))],1,[]);

4 días ago | 0

| accepted

Answered
f(x,y)=(x^2+y^2)/x = 0
doc fimplicit

4 días ago | 0

Answered
How I can get number from a table?
https://www.mathworks.com/help/matlab/matlab_prog/access-data-in-a-table.html - to learn more qq(all(ismember(qq{:,:},2:6),2),:...

4 días ago | 1

| accepted

Answered
counting how many times a certain value is repeated in a fixed interval
According to your comment https://www.mathworks.com/matlabcentral/answers/555889-counting-how-many-times-a-certain-value-is-rep...

4 días ago | 0

Answered
For - While Loop Nested
R = 8.914; % I don't understand why you need a loop though? PCO = linspace(0, 1e2); T = linspace(1, 250); deltaG = -287500 + ...

4 días ago | 0

| accepted

Answered
Problems of convert decimal number to a string
You cannot do that.

4 días ago | 1

Answered
Skipping certain values in an array but still continuing the array
y = nonzeros(sin(1:1e2));

4 días ago | 0

| accepted

Answered
Multiplying elements of a vector
Use *prod()* to perform multiplication within a vector. function area = area_calculator(vector, num) switch num ...

4 días ago | 0

| accepted

Answered
How to map a matrix based on values from another matrix
You could *sort(...)* and use it’s second output to index (which satisfies the data points needed under needed tolerance) to get...

5 días ago | 0

Answered
What frustrates you about MATLAB?
The error message generated during a call to a specific function in a specific toolbox is misleading. If there’s an error messag...

5 días ago | 0

Answered
How can I make a new vector by applying operations from an old vector?
Simply use *diff(...)*

5 días ago | 0

Answered
Undefined function 'cos' for input arguments of type 'char'. Error in solution (line 14)
str2double(location_filename(:,2))

5 días ago | 0

Answered
MATLAB Answers Wish-list #5 (and bug reports)
It would be pretty useful to make *Release* field mandatory to submit a question.

5 días ago | 0

Answered
bar not more working
Remove x from *bar(...)* and use it as *xticklabels(...)*.

5 días ago | 0

| accepted

Answered
Why do I get an error with the fit function even though I'm following at MATLAB tutorial?
Works fine for me. Probably you made a custom file *fit.m* . which fit -all % what does it show?

5 días ago | 0

Answered
Invalid syntax for calling function 'db' on the path. CAN SOMEBODY HELP ME WITH THIS ERROR :(
Please use a different name for "db", you're shadowing the inbuilt function db(...) doc db

5 días ago | 0

Answered
How to put range limit in input Theta between 0 to 90?
for theta = theta % before if statement ... end % at the very end

5 días ago | 1

Answered
Add from different array's using for loop
Aix = [0, 40:40:120]; ; %120 is numel(A) Bix = [0, 30:30:90]; %90 is numel(B) n = numel(Aix); c = cell(n-1, 1); assert(isequ...

5 días ago | 0

Answered
I am trying to find the average of a 58 x 1000 matrix and the result should be a 58 X 48 matrix.
mean(...) along the rows of temperature matrix.

5 días ago | 0

Answered
matrix dimension mismatch problem
d = (1:4).';

5 días ago | 0

Answered
How can I set the range of inital value if there are more than one.
Loop the function for VI0. https://www.mathworks.com/help/matlab/math/parameterizing-functions.html Naming a variable times i...

5 días ago | 2

| accepted

Load more