Resuelto


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

casi 5 años hace

Resuelto


to the 2 all elements
to the 2 all elements

casi 5 años hace

Resuelto


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

casi 5 años hace

Resuelto


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

casi 5 años hace

Resuelto


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

casi 5 años hace

Respondida
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 ...

casi 5 años hace | 0

Respondida
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

casi 5 años hace | 1

Respondida
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...

casi 5 años hace | 1

| aceptada

Respondida
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:...

casi 5 años hace | 1

| aceptada

Respondida
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.

casi 5 años hace | 0

Respondida
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...

casi 5 años hace | 0

Respondida
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');

casi 5 años hace | 1

Respondida
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...

casi 5 años hace | 0

Respondida
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...

casi 5 años hace | 0

Respondida
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...

casi 5 años hace | 0

| aceptada

Respondida
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...

casi 5 años hace | 0

| aceptada

Resuelto


Draw a '0' in a one matrix!

casi 5 años hace

Resuelto


Min-Max digit

casi 5 años hace

Resuelto


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 ...

casi 5 años hace

Respondida
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...

casi 5 años hace | 0

| aceptada

Respondida
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...

casi 5 años hace | 0

Respondida
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...

casi 5 años hace | 0

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

casi 5 años hace | 0

Respondida
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...

casi 5 años hace | 0

Respondida
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...

casi 5 años hace | 0

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

casi 5 años hace | 0

Respondida
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...

casi 5 años hace | 0

Respondida
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, %...

casi 5 años hace | 0

Respondida
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...

casi 5 años hace | 0

Respondida
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);

casi 5 años hace | 0

Cargar más