Question

Locate max by clicking on 2D surface

Hello! I try to write some siple code that should find and mark maximum in defining area. I have some code, but I don't understa...

ungefär en månad ago | 0 answers | 0

Question

How can I plot around 1000 surfaces in 3D and with good speed?

Good day! I am plotting over 1000 surfaces with the command [x, y, z] = sphere; in one shape. Naturally, I end up with a very sl...

ungefär en månad ago | 1 answer | 0

Question

Share variable without global

My problem is follow: I have some complex code where I use more then 1 million factorial function. I have asked this question ea...

3 månader ago | 0 answers | 0

Question

How to save variable and use in future code?

Good afternoon! I have a problem using the factorial function. This function is called more than 1 million times during the enti...

3 månader ago | 1 answer | 0

Question

How can I optimize this code?

Good day to all! I have a snippet of code that is called very often. Since it is described through for loops, it is too slow. Ar...

3 månader ago | 0 answers | 0

Question

How do I set a class property?

Good afternoon! I'm bad at object-oriented and I need some advice. The situation is as follows: in one part of the code, I calcu...

3 månader ago | 2 answers | 0

Question

Replace elements in array

I apologize if the question is very stupid. I am quite familiar with the basic functions of matlab, but I do not know such a fun...

4 månader ago | 1 answer | 0

Answered

How do I fill in the required areas?

Currently, I have managed to get this type of diagram, but it requires quite a lot of computer power and was built directly thro...

How do I fill in the required areas?

Currently, I have managed to get this type of diagram, but it requires quite a lot of computer power and was built directly thro...

4 månader ago | 0

| accepted

Question

How do I fill in the required areas?

Hello everyone! I try to fill areas as show on picture (as example below). The code to construct this diagramm is next: n = 10;...

4 månader ago | 1 answer | 0

Question

Some difference between MatLab and VS calculation

Hello! The question is very simple. I try to calculate exp(-8.7) in MatLab and Visual Studio software. My simple code is fprin...

5 månader ago | 1 answer | 0

Solved

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

7 månader ago

Solved

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

7 månader ago

Solved

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

7 månader ago

Question

How can i calculate double integral?

Good afternon! I have the next problem: I try to calculate double integral, but I receive next error message: Error using in...

12 månader ago | 1 answer | 0