Answered
Error: Undefined operator './' for input arguments of type 'table'
If your using older version of matlab (prior to 2016b) use bsxfun to perform arithmetic operations. doc bsxfun % read it

7 years ago | 1

| accepted

Answered
Import and export excel files
Processing sequence of files

7 years ago | 0

Answered
Why have negative value in result
kseq(i) = (kseq(i-1))^alpha+(1-delta)*kseq(i-1)-cseq(i-1); ^^^^^^^^^---- if gre...

7 years ago | 0

Answered
How to decide the color on the legend
I am not certain what you want but try this example: c={'r','g','m','k','b'}; % store the colors option in a cell array for i ...

7 years ago | 0

Answered
Licence manager error-95
https://www.mathworks.com/matlabcentral/answers/95791-why-do-i-receive-license-manager-error-95#answer_105143

7 years ago | 0

Answered
How to get all possible arrays by randomizing in each cells with four items (1x6 array)
Use random indexing by using randi if you want the elements to repeat or randperm if you don’t want the elements to be repeated ...

7 years ago | 1

| accepted

Answered
Undefined function or variable 'I2Cdev'.
https://www.mathworks.com/help/supportpkg/raspberrypiio/ref/i2cdev.i2cdev.html - matlab is case sensitive i2cdev lowercase lette...

7 years ago | 0

Answered
Calculator mean of multi matrix?
a=cellfun(@mean,data,'un',0); mean_of_each_cell=cellfun(@mean,a); mean_of_total_cells=mean(mean_of_each_cell);

7 years ago | 1

Answered
Calculator mean of multi matrix?
a = [data{:}]; Result = mean(reshape(data,2880,1440,[]),'all')

7 years ago | 1

| accepted

Answered
How can I keep values of an array random.
Note : In your desired result A there appears a number 152 instead of 7 which I guess is perhaps a typo. Just use random indexi...

7 years ago | 0

Answered
Genetic Algorithm - Vectorized Mode - Reg
Your function requires only two inputs whereas you have stuffed in 3 .

7 years ago | 0

Answered
Subscript indices must either be real positive integers or logicals.
MV = (0.5*(sum(abs(W-(mu*E)))^2)) + alpha1*(sum(abs((G*W)-(H*F))))+ alpha2*(sum(abs(D*F))) % ...

7 years ago | 1

| accepted

Answered
Create vector from elements of other vectors
v = [a(:) b(:) c(:) d(:)] % no loops needed

7 years ago | 0

| accepted

Answered
how to convert cell to matrix
[yourcellarray{:}]

7 years ago | 2

| accepted

Answered
Separate Date and Time from csv file
doc ymd doc readtable

7 years ago | 0

Answered
Sym: The second argument must be a vector of symbolic variables
doc vpasolve % read the right usage of it [Sh,Sp,SMm,Sq,Sm,Sv,Sb,Sa,Sf] = vpasolve([dF_h==0,dF_p==0,dF_Mm==0,dF_q==0,dF_m==0,dF...

7 years ago | 0

Answered
How to load a file in a function
Just assign a variable as an output so that the datas are loaded in workspace : function A = tubeguide() % () doesn't need to b...

7 years ago | 0

| accepted

Answered
My script is not publishing figures even though i have used snapnow
doc publish % read it you can publish your code and figures as a pdf doc saveas % to save figure doc print % to save figure as...

7 years ago | 1

| accepted

Answered
Anyone know why I am recieving this error?
id is not defined if condition is superfluos though , always k is not equal to k + 1 y needs to be preallocated y can b...

7 years ago | 0

Answered
How can I show values on top of bars in plotyy
https://www.mathworks.com/matlabcentral/answers/40629-bar-plot-value-on-top#answer_50287 - might help lookup yyaxis

7 years ago | 0

| accepted

Answered
i have one cell V of order 1X3 and each cell has matrix of order 500X5 and i want to create matrix V of order 500X5 .please give me solution
Best way is to store them in a 3D matrix: V{1} = rand(500,5); % an example V{2} = rand(500,5); V{3} = rand(500,5); v=[V{:}]...

7 years ago | 0

| accepted

Answered
undefined function or varaible
The function has to be save in a separate file with the same name of a function if your using prior 2016b but since 2016b a scri...

7 years ago | 0

Answered
Unable to paste the excel data into the editor.
Just use readtable() as mentioned in your previous question to read the file ??

7 years ago | 0

| accepted

Answered
multiplication of two 3*5 and 6*3 matrices in simulink matlab and display in worksspace
might help: https://www.mathworks.com/matlabcentral/answers/184056-matrix-multiplication-in-simulink Take an online simulink o...

7 years ago | 0

Answered
In an assignment A(:) = B, the number of elements in A and B must be the same.
size y1 x , Dx should be the same and why have you indexed c with k? also Iam if it‘s a scalar it‘s fine if not it should have d...

7 years ago | 0

Answered
How can I represent a transfer function interms of symbolic variables? Apparently tf(num, den) can only take numeric values.
Might help : https://www.mathworks.com/matlabcentral/answers/436037-i-want-to-use-inverse-laplace-with-tf-function-how-can-i-do...

7 years ago | 0

Answered
finding similar elements in two arrays
You may need to clarify by giving a certain example because the answer is assumed that A and B has same number of elements. You...

7 years ago | 1

Answered
loop to extract set of rows for .txt file
Just use readtable and index the table to partition: T=readtable('text.txt'); T{5:9,:} T{10:13,:} T{14:end,:}

7 years ago | 0

Answered
Ode 45 Line 115 odearguments line 113 Symbolic Solution
k and m should have a numeric value : syms r1(t) r2(t) r3(t) r4(t) r5(t) r6(t) m=1; % for simplicity k=3; % some data w=sqrt...

7 years ago | 0

| accepted

Answered
choose "up" axis in 3D
See https://www.mathworks.com/matlabcentral/answers/249304-set-y-axis-as-vertical-when-plotting-in-3d#answer_196530

7 years ago | 0

| accepted

Load more