Community Profile

##### Last seen: Today
3.500 total contributions since 2018

Communication through MATLAB is always better than arguing.

View details...

Contributions in
View by

How to fix mean resulting in nan
Shot in the dark: mean(slope2,'omitnan')

alrededor de 6 horas ago | 0

is there 'scope function' in Matlab?
No and you just have to use plot() where you could use the datas from Simulink using To Workspace block.

alrededor de 8 horas ago | 0

| accepted

How to extract a column numerical data as strings?
A = string(T.(n)); % have to use string(...) :)

alrededor de 13 horas ago | 1

| accepted

Combining vectors to make a matrix
guessi = guessrow.*guesscolumn

alrededor de 14 horas ago | 0

Multiplication with in a double arrray
Wanted = [A,B,A.*B]

alrededor de 14 horas ago | 1

How do I see which cell that the components of a vector land in, in a cell array??
c = arrayfun(@(y)arrayfun(@(x)(any(B(x)==A{y}).*y),1:numel(B),'un',0),1:numel(A),'un',0); Output = sum(cell2mat(cat(1,c{:})))

alrededor de 14 horas ago | 0

| accepted

Indexing into timetables with an array of logicals
It’s the simplest way you can do it.

1 día ago | 0

How to gte a whole column from a cell
Wanted1 = fieldarray(:,4); Wanted2 = ismember(fieldarray,{'Asia','Europe');

4 días ago | 2

| accepted

How to use ode45 for a row vector

9 días ago | 1

I'm having trouble with the differential equation example:
function dydt = lineary1(t,y) % should be saved as lineary1.m dydt = y(1); And in another file named "Experiment.m" [t,y] = o...

17 días ago | 0

"Non enough input arguments" to solve non linear equations
Name of the script should be different than that of the function.

17 días ago | 0

| accepted

How to add a constant to a symbolic array element by element?
They are not negative numbers but probably represented in scientific notations. format longg % at the beginning Because the a...

18 días ago | 0

Extracting values within a matrix
Use logical operators ">" "<" and "find()"

18 días ago | 0

make rectangular with vectors
plot(a,b,'-ok') % look here plot(b,c,'-ok') plot(c,d,'-ok') plot(d,a,'-ok')

19 días ago | 0

Problem with find string in array
Wanted = ismember(cellstr(Mfg),'bmw')

19 días ago | 1

| accepted

arc question about implementing angle using linspace
if you are looking to convert radians to degrees use the function rad2deg() function

21 días ago | 0

Custom Simulink IO block
According to the error message you need to have: MATLAB/SupportPackages/R2019b/toolbox/matlab/hardware/supportpackages/arduinoi...

23 días ago | 0

matlab give me error when i use fzero to calculate zero of function
Just go to the file location and rename the file as *myFzero.m* for example.

25 días ago | 1

| accepted

Error: too many outputs
function Y = ForwardSub(L,b) % you forgot to assign the output in the function definition

alrededor de 1 mes ago | 0

Raising a matrix to the power from 0 to 50
Wanted = arrayfun(@(x)A^x,0:50,'un',0); celldisp(Wanted)

alrededor de 1 mes ago | 0

not enough input arguments
<https://www.mathworks.com/help/matlab/matlab_prog/run-functions-in-the-editor.html>

alrededor de 1 mes ago | 0

Numbering table and selecting value
Try replacing Name==result with strcmp(crossSectionInfo.Name,result)

alrededor de 1 mes ago | 0

How to replace the 5 in my vector with decreasing numbers like 5,4,3,2,1
Z=num2cell(x); Z(cellfun(@(zx)zx==5,Z))={5:-1:1} celldisp(Z)

alrededor de 1 mes ago | 0

plotting with respect to time
C1=x0; C2=x_dot+Wn*x0; x = @(t) (C1+C2*t)*exp(-Wn*t) fplot(x,[0,10])

alrededor de 1 mes ago | 0

| accepted

How to combine two cell arrays?
newcellarray = [cellarray2,cellarray1]

alrededor de 2 meses ago | 0

| accepted

Storing double output into a single cell array
zeros() to cell() and A{n,k} = selectedlocal

alrededor de 2 meses ago | 1

| accepted

How to find the element of a number if that number were to be placed in an ordered list?
Between = [find(ismember(list1,fix(2.5))), find(ismember(list1,ceil(2.5)))]

alrededor de 2 meses ago | 0

How to solve for T2? it is giving an error when I try solve
syms T2 TempCumene = vpasolve ((((281.4749/3600)*Cp_b)*(T2-414.95) == Q_b),T2) %temp for cumene outlet in K

alrededor de 2 meses ago | 0

| accepted