Solved


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

1 year ago

Solved


Create a vector
Create a vector from 0 to n by intervals of 2.

1 year ago

Solved


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

1 year ago

Solved


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

1 year ago

Solved


Find max
Find the maximum value of a given vector or matrix.

1 year ago

Solved


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

1 year ago

Solved


inner product of two vectors
inner product of two vectors

1 year ago

Solved


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

1 year ago

Solved


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

1 year ago

Answered
how i can change the explicit code to implicit code?
function [T,x] = example(c,k,p,dt,dx) alpha=k/(p*c); lamda=alpha*dt/dx^2; for n=1:4 T(n,1)=100; T(n,6)=25; end fo...

1 year ago | 0

Solved


Alphabetize by last name
Given a list of names in a cell array, sort the list by the last name. So if list = {'Barney Google','Snuffy Smith','Dagwood ...

1 year ago

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

1 year ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

1 year ago

Answered
find largest magnitude in array
A=[-0.1;1;-5;-0.8;-0.4]; tto=find(abs(A) == max(abs(A))) tt=find(abs(A) ~= max(abs(A)))

1 year ago | 0

| accepted

Answered
how can i use several loops
I will try to explain as best as I can. To do that, I will give values to the variables. nt = 4, nx = 5: for k=1:3 ( = [1,2,3...

1 year ago | 0

Answered
Correlation between two row matrices
Like that, each value of "a" is correlated to each value of "b", but applying the formula of the correlation, the correlation o...

1 year ago | 1

| accepted

Answered
Using function simple equation doesn't work
Next time, I ask you to add more info so people can help you easily and not only with a photo. The problem here is the block f...

1 year ago | 0

| accepted

Answered
How to display multiple images (non indexed images) with different sizes in a row?
I would use moon1, moon2 and moon3 as 3 images that can be different and with different size, but I will obtain them as moon1 =...

1 year ago | 0

Answered
Adding Dot For Linspace
You have two possibilities here: In the text file, you replace * by .* and / by ./ in all the document (there is an option in t...

1 year ago | 0

Answered
How can I simplify my expression?
It only needs more time to simplify: I'm doing: simplify(4.0475406620140304336968591117778*Ua + 0.048633477607650367346402317...

1 year ago | 1

| accepted

Answered
how to plot decaying exponential
Congratulation! You have your algorithm almost working, but you are using vector when you should be using scalars (As you have y...

1 year ago | 0

| accepted

Answered
How do I add numbers in a cell to another cell?
A{1}(B{1}==X) = B{1}(B{1}==X)

1 year ago | 0

Answered
Improving the speed!
I love this kind of problems. First of all, Matlab comes with a debugger that tell you in which part you are losing your time (I...

1 year ago | 1

| accepted

Answered
What does a value of performance in a neural network indicate?
If you look in the documentation of perform function (https://www.mathworks.com/help/deeplearning/ref/perform.html) it tells you...

1 year ago | 0

| accepted

Answered
Multiple Input Single Output Segmentation using Deep Learning
This question was asked here: https://www.mathworks.com/matlabcentral/answers/369328-how-to-use-multiple-input-layers-in-dag-net...

1 year ago | 1

| accepted

Answered
How to convert the color image into binary sequence?
I suppose you have a filter of color of [100,150,30], so to convert the image M you can do: sol = squeeze( M(:,:,1) > 100 & M(:...

1 year ago | 1

Question


Where do I have to tell if I found some error in the Help section?
I just have found that the translation of https://es.mathworks.com/help/signal/correlation-and-convolution.html is in korean in ...

1 year ago | 1 answer | 0

1

answer

Answered
Delete specific rows in a multidimensional matrix
The solution for your problem could be: Z=rand(800,1,100)*400; for(k=800:-1:1) if(or(Z(k,1,:)>=230,Z(k,1,:)<=330)...

1 year ago | 1

Answered
Hey please assist me with plotting this function, not sure why im getting indexing error
You are missing a multiplying symbol y1=(3/10)*(1-exp(-6*t) [.*] (cos(sqrt(14*t))+(((3*sqrt(14))/7)*sin(sqrt(14*t))))) ...

1 year ago | 0

Load more