A résolu


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

presque 7 ans il y a

A résolu


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

presque 7 ans il y a

A résolu


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

presque 7 ans il y a

A résolu


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

presque 7 ans il y a

Réponse apportée
What are the best free MATLAB resources for image processing?
You can find nice tutorials here: <https://au.mathworks.com/help/images/getting-started-with-image-processing-toolbox.html>

presque 7 ans il y a | 0

Réponse apportée
Help needed to decrease computational time by removing for loops
By the way, if you want to check the speed, just write: tic // code fragment for either for loop of vectoriaed version. ...

presque 7 ans il y a | 0

Réponse apportée
Help needed to decrease computational time by removing for loops
You can use the concept of vectorization. Here is an example: With for loop: for k = 1 : 10 a(k) = k ^ 2; end ...

presque 7 ans il y a | 0

Réponse apportée
I am not sure about the declaration of 4 variables..
In Matlab, you do not declare a variable. However, if you ask how to initialise four variables, here is the code: var1 = 0 ...

presque 7 ans il y a | 0

Réponse apportée
How to compare tables/cells/characters?
Does the following help? tf = strcmp(s1,s2) compares s1 and s2 and returns 1 (true) if the two are identical and 0 (false) ot...

presque 7 ans il y a | 0

Réponse apportée
Plotting a 3D graph, incorrect solution.
The problem is that after exiting the for loops, x and y are both equal to 100. So, they are scalars and cannot be used in surf....

presque 7 ans il y a | 0

| A accepté

Réponse apportée
xlswrite too large imput
I had the same issue and managed to fix it. I was trying to create a file that did not exist in the path. So, I created the file...

presque 7 ans il y a | 1

Réponse apportée
I can not create a matrix
Please note that curly brace ({i}) makes a cell array and not a matrix. You have to use square brackets instead: [] So: ...

plus de 7 ans il y a | 0

Réponse apportée
I need help writing a program to pick the largest number in a list
Try this: my_max = -inf; for k=1:length(y) % y is your array if my_max < y(k) my_max = y(k); end ...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
how to plot multiple 3d functions in one graph for x=0,z=0,x=2y,x+2y+z=2
Generally speaking, Matlab overwrites a plot when you draw something. If you with to draw multiple things, try to freeze the plo...

presque 8 ans il y a | 0

| A accepté