matlab tag

28 questions


1 answers
82 views
0
matrix product for each element of a multidimensional array in MATLAB

I would like to achieve matrix product operations for each of the following elements in MATLAB that Python numpy.einsum can achieve.import numpy as npa=np.array([[1,2],[3,4]],[[1,3],[-3,1]]]])b=np.arr...

2 years ago

2 answers
114 views
0
Is there a way to create a powerpoint in Python?

Questions about how to create a powerpoint using Python.[MATLAB] Automate creating PowerPoint slides using templates: MATLAB Report Generator Edition - Qiita Like MATLAB, I would like Python to replac...

2 years ago

1 answers
80 views
0
a program that moves over matlab and bounces back at a certain point

I have a question about matlab.in an areaPlace the terminal randomly between (1,5) and (1,18) sides and I want to move it up and down.Therefore, the location of the wireless terminal is set to (xi, yi...

2 years ago

1 answers
97 views
0
Matlab error, pleaseㅠ E Error using ==> plot Vectors must be the same lengths.

```q0=input('initial angle=');qf=input('final angle=');tf=input('final time=');a=input('Desired Acceleration=');tb=tf/2-(sqrt(a2*tf2-4*a*(qf-q0)))/(2*a);V=a*tb;t1=[0:0.01:tb];q1=q0+V/(2*tb)*t1.2;dq1=a...

2 years ago

1 answers
97 views
0
Is there a way to get all two possible pairs of bundles?

Let me give you a simple example.I want to create a code that obtains all two possible bundles when A={1,2,3,4}.The answer to the above number is (1,2)(3,4): {1,2,3,4} and (1,3)(2,4): {1,3,2,4}B=[1,2,...

2 years ago

1 answers
98 views
0
[Python to C++] How do I get bitten by the for moon? Create a file name.

If you squeeze Python, it looks like belowfor i in range(0,10) CT_img = cv2.imread(r'D:\Remedi\Exercise\Xray\corrected images by CBCT/CBCT (' + str(i) + ').png', -1)I'd like to change it to C++ as bel...

2 years ago

1 answers
96 views
0
Matlab Matlab. I have a question about substituting Matlab.

a= [1;2;3;4;5;6;7;8;9;10];b= [1;3;4;5;6;9];There is a 10x1 matrix double called a and a 6x1 matrix double called b.The error is that the value cannot be substituted because the left side size is 10x1 ...

2 years ago

1 answers
68 views
0
To create a column in front of a matrix?

a=[2016;2016;2016;2016;2016;]; (5x1 double)b=[06;06;06;06;06;]; (5x1 double)From c= ([a,b]); (5x2 double)When you run the .But c(:, (-2,-1))= nan; If you do , 'The index at position 2 is not valid. Ar...

2 years ago

1 answers
79 views
0
To convert Matlab code fullfile('export', datestr(now)) to Python

Switching matlab code to Python.I'm having a hard time switching fullfile('export', datestr(now)),I only knew until datetime.datetime.now() to extract the current time.How can I change it to Python co...

2 years ago

1 answers
132 views
0
Matlab procession and text multiplication

I have a 5x1 ones matrix and I want to fill in the text 'tree'a= ['tree'*ones(5,1)]I want to multiply 'tree' by 'tree', so I want to make a matrix with five 'tree' vertically, but the dimension of mul...

2 years ago
« - 2 - »

© 2024 OneMinuteCode. All rights reserved.