Risolto

Vector creation

Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

oltre 5 anni fa

Risolto

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

oltre 5 anni fa

Risolto

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

oltre 5 anni fa

Risolto

Whether the input is vector?

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

oltre 5 anni fa

Risolto

Get the length of a given vector

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

oltre 5 anni fa

Risolto

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

oltre 5 anni fa

Risposto

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

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

oltre 5 anni fa | 1

Risposto

how to find local minima of a graph like shown in the figure?

Read findpeaks

how to find local minima of a graph like shown in the figure?

Read findpeaks

oltre 5 anni fa | 1

Risolto

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

oltre 5 anni fa

Risolto

Determine if input is odd

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

oltre 5 anni fa

Risposto

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

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

oltre 5 anni fa | 0

| accettato

Risposto

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

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

oltre 5 anni fa | 0

Risposto

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

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

oltre 5 anni fa | 2

| accettato

Risposto

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

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

oltre 5 anni fa | 0

| accettato

Risposto

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

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

oltre 5 anni fa | 0

Risposto

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

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

oltre 5 anni fa | 0

Risposto

How can I simplify my expression?

It only needs more time to simplify: I'm doing: simplify(4.0475406620140304336968591117778*Ua + 0.048633477607650367346402317...

How can I simplify my expression?

It only needs more time to simplify: I'm doing: simplify(4.0475406620140304336968591117778*Ua + 0.048633477607650367346402317...

oltre 5 anni fa | 1

| accettato

Risposto

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

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

oltre 5 anni fa | 0

| accettato

Risposto

How do I add numbers in a cell to another cell?

A{1}(B{1}==X) = B{1}(B{1}==X)

How do I add numbers in a cell to another cell?

A{1}(B{1}==X) = B{1}(B{1}==X)

oltre 5 anni fa | 0

Risposto

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

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

oltre 5 anni fa | 1

| accettato

Risposto

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

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

oltre 5 anni fa | 0

| accettato

Risposto

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

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

oltre 5 anni fa | 1

| accettato

Risposto

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

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

oltre 5 anni fa | 1

Domanda

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

oltre 5 anni fa | 1 risposta | 0