Solved

Matrix multiplication across rows
Given matrix m, return matrix n such that, rows of n are result of multiplication of the rows of the input matrix Example ...

16 días ago

Solved

Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...

16 días ago

Solved

Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

16 días ago

Solved

Converts numbers into characters
Converts numbers into characters

16 días ago

Solved

Find the max element of the array
Find the max element of the array

16 días ago

Solved

Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

16 días ago

Solved

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

16 días ago

Solved

to the 2 all elements
to the 2 all elements

16 días ago

Solved

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

16 días ago

Solved

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

16 días ago

Solved

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

16 días ago

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

16 días ago | 0

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

16 días ago | 1

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

16 días ago | 1

| accepted

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

16 días ago | 1

| accepted

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.

17 días ago | 0

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

17 días ago | 0

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

17 días ago | 1

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

17 días ago | 0

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

17 días ago | 0

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

17 días ago | 0

| accepted

How does one display the fit line in this plot in this situation?

29 días ago | 0

| accepted

Solved

Draw a '0' in a one matrix!

30 días ago

Solved

Min-Max digit

30 días 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 ...

alrededor de 1 mes ago

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

alrededor de 1 mes ago | 0

| accepted

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

alrededor de 1 mes ago | 0

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

alrededor de 1 mes ago | 0