Answered
How to combine row matrices to form table?
table(matrix) % where matrix is of size 15e2 X 3

6 years ago | 0

Answered
using MarkerSize in plot3
<https://www.mathworks.com/help/matlab/ref/plot3.html#mw_e90f6fb5-050e-4dda-8f6d-e0eaab1d995e>. My suggestion is to use two *plo...

6 years ago | 1

| accepted

Answered
create array and assign the values to proper locations
clear all; clc; t=16; t_all=[8 0 0 0 0 0 0 8]; z_all = zeros(size(t_all)); % preallocate z_all(1) = -t/2; ...

6 years ago | 0

Answered
question regarding figures in ploting graphs or surface
Use *hold on* and use *plot(...)* inside *figure(1)*

6 years ago | 0

Answered
Parentheses in code to make code more readable
You can’t create a paranthesis like that in a code. I suggest you to make those two conditional statements as two separate funct...

6 years ago | 0

| accepted

Answered
index in position exceeds array bounds
nne-1

6 years ago | 0

Answered
Why there is a difference between sortrows(A) and sortrows(A,1)?
I get the same results? >> Matrix Matrix = 1 1 4 2 4 4 4 5 2 2 3 1 ...

6 years ago | 0

Answered
Store occurrences of an array in an equal sized array
[~,~,c] = unique(Input); Counts = accumarray(c,1); Output = Counts(Input)

6 years ago | 0

| accepted

Answered
Help with printing output
fprintf(' %.2f %.2f %.2f\n', [hours2(:).'; x(:).'; y(:).']) % Look documentation for adding spac...

6 years ago | 1

Answered
how can i move cell components to new line
a = cellfun(@transpose, a, 'un', 0)

6 years ago | 0

| accepted

Answered
error: invalid range ; What could be the reason for the invalid error in the code I wrote? If the reason is inf, will they explain ?
Replace inf with a very large finite number for instance 1e6 . Note: You haven't defined K. The reason is simple , imagine yo...

6 years ago | 0

Answered
Changing corresponding column based on condition, for a table.
T{ismember(T{:,10},'female'),9} = {'false'} % T your table

6 years ago | 1

| accepted

Answered
How to replace a missing value in a table with a string?
Grouped_Weights.Country(cellfun(@isempty,Grouped_Weights.Country),:) = {'OTHER'}

6 years ago | 0

| accepted

Answered
Why "-pi/8 <= 0.0099 < pi/8" return logical 0?
>> -pi/8 <= 0.0099 ans = logical 1 >> ans < pi/8 ans = logical 0 >> pi/8 <= 0.0099 ans = ...

6 years ago | 0

| accepted

Answered
Somone can help me with unique and find function?
[lo,ix]= ismember(A,B,'rows') B = B(~lo,:) vector = ix(lo)

6 years ago | 0

| accepted

Answered
Read and process multiple images
https://www.mathworks.com/matlabcentral/answers/7342-reading-multiple-images-in-a-folder-imread?s_tid=answers_rc1-2_p2_MLT

6 years ago | 0

Answered
Writing m function to be read by Livescript
https://www.mathworks.com/help/matlab/ref/function.html - you need to read more

6 years ago | 0

| accepted

Answered
Extracting values from a cell then converting to a matrix
A([1,2],:) = []; A(:,1) = []; Mat = cell2mat(A)

6 years ago | 0

| accepted

Answered
1st order fucntion with no zero
doc pzmap doc pidtune doc pidtuner

6 years ago | 0

Answered
i am not getting correct output for this sawtooth plot
T = 6; Fs = 1e3; dt = 1/Fs; t = 0:dt:T-dt; a = 4; x = a*sawtooth(2*pi*t); t = t*5; plot(t,x) grid on

6 years ago | 0

| accepted

Answered
How to calculate detivative of a function with respect to another function
syms u x subs(diff(u^2 - 1), u, cos(x))

6 years ago | 0

| accepted

Answered
Number the subplot quarter
https://www.mathworks.com/matlabcentral/answers/538831-number-the-subplot-quarter#comment_876123

6 years ago | 0

| accepted

Answered
Array indices must be positive integers or logical values.
f & df should be a function handle , can't see how you defined so it might be the issue.

6 years ago | 0

| accepted

Answered
Howto Replace Specified and Non-Specified Elements in Matrix with Strings
Wanted = repmat("neither",size(matrix)); Wanted(matrix == 0) = "zero"; Wanted(matrix == 1) = "one"

6 years ago | 0

| accepted

Answered
Can Matlab Livescript read function m files (not local functions) outside .mix file?
Ofcourse if it is under the working directory.

6 years ago | 0

| accepted

Answered
putting zero between sequence
y = [x, zeros(1, 92e2 - 74e2)]

6 years ago | 0

Answered
How to use for loop correctly and indexing my result?
Use *;* at the end of each line inside the loop. X1(3,:) % after the loop

6 years ago | 0

Load more