Question

How to run the main program and function files as well as function files and function files in an m file?

How to run the main program and function files as well as function files and function files in an m file? the version is r201...

12 giorni ago | 1 answer | 0

Question

How to define variables in the main program instead of in the function file

I want to use a loop in the main program to make a the different value, and then get different graphics, but without defining...

20 giorni ago | 1 answer | 0

Question

Defining font size in legend does not work

i define the font size of the legend in this way,it doesn't work size=15; legend1=legend(',,,',',,,','FontSize',size)) bu...

2 mesi ago | 1 answer | 0

Question

Why doesn't legend distinguish colors?

when plotting the figures, figure 1 Legend distinguishes colors and the figure 2 legend doesn't,why? codes are as this clc; ...

2 mesi ago | 2 answers | 0

Question

How to use matlab to call c + function file and draw？

The following c++ function file is a formula that contains some piecewise functions. Let's first assume that Re=2320, so how to ...

2 mesi ago | 1 answer | 0

Question

Variable is in a function file, how do I use a loop to change the value of this variable?

If the variable is in the main program, I can compile a loop to change the value of a variable and get the result with the varia...

2 mesi ago | 2 answers | 0

Question

How to remove the connection between head and end？

Why is the data at the end of the first group and the beginning of the second group connected? using plot3 and codes are as ...

3 mesi ago | 1 answer | 0

Question

the cpoy and paste of matrix will change the rank?

i use the following codes to get the matri of A , and the rank of A is 10,but when i copy the A and recalculate the rank of a,i...

3 mesi ago | 1 answer | 0

Question

System is rank deficient. Solution is not unique.

when i use 'equationsToMatrix',the roots is so big,for example, a0 = - 3.709974539e221 + 1.690416187e223*i a1 = ...

3 mesi ago | 0 answers | 0

Question

If the integral decomposition solution is not obtained, what integral method can be used to get the closest value?

codes are as this, if all the value except the r are 1, what integral method can be used to get the closest value? syms d z r;...

3 mesi ago | 1 answer | 0

Question

‘’fprintf‘’ cannot be used in a loop？

i just want to use 'fprintf' to print some calculating results,can't it be exculated in the loop? codes are as this syms a...

3 mesi ago | 1 answer | 0

Question

the 'fprintf' problem

codes are as this name = 'Alice'; age = 12; X = sprintf('%s will be %d this year.', name, age) y= fprintf('%d will be %...

3 mesi ago | 1 answer | 0

Question

Why does the system of linear equations get a large solution, and the checking calculation is no problem?

omega=1.795200; m0=7.234737; m1=1.816835; m2=5.349043; m3=8.732933; m4=12.024736; m5=15.265388; m6=18.476340; m7=2...

3 mesi ago | 0 answers | 0

Question

How to accelerate the following code using 'equationsToMatrix'?

i just want to solve the 20 linear equations with 'equationsToMatrix',but it really runs out a lot of time,so how to accelerate ...

3 mesi ago | 0 answers | 0

Question

The difference between using and not using '' in the solve() function

what is The difference between using and not using '' in the solve() function? and should we use '' ? codes are as this clc...

3 mesi ago | 1 answer | 0

Question

How to improve the accuracy of drawing, especially for infinite functions？

in some plot assignments,we can use 'ezplot' to plot the more accurate figure but for infinite functions the 'ezplot' still can'...

3 mesi ago | 1 answer | 0

Question

The solution of the nonlinear equation obtained by ‘fzero’ is different from that of 'fsolve'.

i use the 'fzero' and 'fsove' to get the roots of the nonlinear equation,and the function figure is as this ,so we can see the ...

3 mesi ago | 1 answer | 0

Question

can you define an interval When you use 'fsolve' to define the initial value？

for one dimentional question, when use fzero to get the roots ,we can define the intitial value as an interval [x1,x2] but ...

3 mesi ago | 1 answer | 0

Question

the problem of using 'case'

i want to use a loop of omega and when the omega has diffreent value ,the m0,m1,m2...have the different value,so in the loop i u...

3 mesi ago | 1 answer | 0

Question

How to get the first Ten Solutions of nonlinear equations

how to get the only one root of f==0 and the first 10 positive roots of g==0, and when i change the value of omega it will...

3 mesi ago | 0 answers | 0

Question

why it can't be used as a number?

i get the two numbers,but why it can't be used as the number? codes are as this clc; clear all; close all; a_0k =... ...

3 mesi ago | 1 answer | 0

Question

why use the equationsToMatrix can get the precise result?

Why do you use equationsToMatrix to get the root and bring back the equation, which is not exactly 0? codes are as this clc;...

4 mesi ago | 1 answer | 0

Question

Which version can support the naming of m files in Chinese and the use of space naming?

excuse me,Which version can support the naming of m files in Chinese and the use of space naming? thanks a lot!!!

4 mesi ago | 1 answer | 0

Question

How to export the result as a picture

How to export the result as a picture. I use the biograph function that comes with matlab to get the roadmap, but I can't c...

5 mesi ago | 1 answer | 0

Question

Convert color images to binary images, which can be implemented in matlab 7 and not run in 2014a

codes are as this clc; clear all; close all; B = imread('1.jpg'); A= rgb2gray(B); [m,n]=size(A); for i=1:1:m for j=1:...

5 mesi ago | 0 answers | 0

Question

Ideal displacement source not found in simscape.

I want to use simscape to simulate the automobile damping system driving on a sinusoidal uneven road, so I need to add a sourc...

5 mesi ago | 0 answers | 0

Question

the simscape of mass-spring-damping system can't get the ideal result

in the simscape,the mass-spring-damping system, i set the signal builder build the force as this, and in the motion se...

5 mesi ago | 1 answer | 0

Question

the piecewise function runs out a queer figure

function codes are as this function f = myfun(x) if (x<1); f=x.^2 ; else f=x; end end main program code...

5 mesi ago | 0 answers | 0

Question

How to use a handle to define a piecewise binary function

How to use a handle to define a piecewise binary function that can express the definition of the following expression The...

6 mesi ago | 0 answers | 0

Question

How to easily define the following expressions

In this system of equations, I want to solve uppercase a (n, k) and b (n, k), everything else is known, because k is zero, s...

6 mesi ago | 0 answers | 0