Solved


Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

4 years ago

Solved


to the 2 all elements
to the 2 all elements

4 years ago

Solved


the average value of the elements
Calculate the average value of the elements in the array

4 years ago

Solved


Double all elements in the array
Duplicate all elements in the array

4 years ago

Solved


calculate the length of matrix
input 1 array, calculate the length

4 years ago

Answered
I have a problem, i receive 'Error using input Cannot call INPUT from EVALC.' I'm not sure what it means or how to get the input to work. Thank you.
call this command at the beginning of your code: clear all It looks like, input has be used before to call another m-file and ...

4 years ago | 0

Answered
How to check if an array is empty without using any built in functions
x=[]; [R,C]=size(x) if R==0 & C==0 disp('Empty') else disp('Contains STH') end

4 years ago | 1

Answered
Can I open .mlx file in MATLAB 2013a?
It looks like to open .mlx in 2013a is not feasible. Probably you already know that if you can save it using newer matlab versi...

4 years ago | 1

| accepted

Answered
Call matfiles in a loop and save the graph without overwriting the former ones
You should start your code with clearvars, e.g: clearvars delete plot*.svg %% Then try this syntax: % then try this syntax:...

4 years ago | 1

| accepted

Answered
I would like an advise on how to model a 2 solenoid system in simulink?
Follow this MATLAB documentation that gives very concise modelling aspects of solenoids in Simscape.

4 years ago | 0

Answered
how to input table data in look up table from simulink instantaneously
It looks like that you have 1D look up table data imported from MS Excel. Thus, you'd need to use 1D lookup table and just conne...

4 years ago | 0

Answered
Call matfiles in a loop and save the graph without overwriting the former ones
% Try this ... filename = strcat(['plot',num2str(i),'.svg']) saveas(gcf,filename,'svg');

4 years ago | 1

Answered
How to plot shape preserving interpolants for multiple data variables in a single plot
Probably in your exercise, you can try one of the data smoothing filters, such as moving average or band-pass filters. Data sm...

4 years ago | 0

Answered
How to get the envelope of this picture
You can employ data confidence bounds in your data plotting. Here is the MATLAB doc: https://www.mathworks.com/help/matlab/creat...

4 years ago | 0

Answered
How can put the numbers in line eqution?
There are a few points can be fixed and improved in your code, e.g.: ... X=double(VF(1:length)); % Conversion to do...

4 years ago | 0

| accepted

Answered
How does one display the fit line in this plot in this situation?
T = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/717514/test.csv'); fit_model = polyfit(T.Visitor...

4 years ago | 0

| accepted

Solved


Draw a '0' in a one matrix!

4 years ago

Solved


Min-Max digit

4 years ago

Solved


Divisible by 2
This is the first problem in a set of "divisible by x" problems. You will be provided a number as a string and the function you ...

4 years ago

Answered
Calculation using matrix indexing for elements with a certain thresholds
There is a couple of small errs in your code and here is a corrected code: ... A2 = (A>5 & B>5).*A; % Picks up all greater th...

4 years ago | 0

| accepted

Answered
Backward prediction stock time series
In this case, you'd need to perform the followings in order to extrapolate backward: (1) Import data, e.g.: D = readtable('ht...

4 years ago | 0

Answered
How does one display the fit line in this plot in this situation?
You can use these additional steps to get the linear fit model and calculate its values, and then plot them. fit_model = polyf...

4 years ago | 0

Answered
Good book on linear algebra using MATLAB?
This book sounds a good one: Applied Linear Algebra and Optimization Using MATLAB by Rizvan Butt.

4 years ago | 0

Answered
Change MATLAB .mlx Live Script background and font colors
You can make some good changes via preferences, e.g.: >> preferences MATLAB -> Editor/Debugger -->Display ... MATLAB -> Fonts...

4 years ago | 0

Answered
how do you solve
% Scalars can be computed directly as they appear in the expression, e.g.: x=1; y=x^2+3/(x+1); % For vectors or matrices, USE...

4 years ago | 0

Answered
how to convert table to matrix?
T_mat=table2array(T);

4 years ago | 0

Answered
readmatrix command not working
Presumable that is happenign due to your OS - Linux. You can try: M=readtable('basic_matrix.txt'); M = table2array(M); % You...

4 years ago | 0

Answered
Formulas of Rise time, settling time, and other step-response characteristics for arbitrary-order transfer function
Use step(), e.g.: SYS = tf(1, [1 1 2]); step(SYS) % Move the cursor over the plot and use the right mouse button options, %...

4 years ago | 0

Answered
Curve fitting multiple parameters function
You can write a function file or function handle, e.g.: F=@(k, r, x)(2*r*k*exp(0.576*k*x)+c); % etc. % OR function F = MyFu...

4 years ago | 0

Answered
how do i randomly sample a sinewave?
An alternative solution is: N_samples = 20; y_rand = datasample(y, N_samples); % OR y_rand = randsample(y,N_samples);

4 years ago | 0

Load more