답변 있음
Can we model a BLDC motor as a generator in MATLAB?
Yes, it is possible to model a BLDC (Brushless DC) motor as a generator in MATLAB Simulink. To do this, you can use the Simulink...

2년 초과 전 | 0

답변 있음
boundary conditions and solvepde
Based on your description, it seems like the issue is with how you are applying and updating the boundary conditions for differe...

2년 초과 전 | 0

| 수락됨

답변 있음
Need help in projected area of pipe along the direction of flow
It looks like there might be a mistake in your code while calculating the projected area of the elements. The issue seems to be ...

2년 초과 전 | 0

답변 있음
How to see all the windows at a time on a single display
In MATLAB, you can arrange multiple windows in a single display using the "Tiled" layout option. This feature allows you to orga...

2년 초과 전 | 0

문제를 풀었습니다


Given an unsigned integer x, find the largest y by rearranging the bits in x
Given an unsigned integer x, find the largest y by rearranging the bits in x. Example: Input x = 10 Output y is 12 ...

2년 초과 전

문제를 풀었습니다


Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

2년 초과 전

문제를 풀었습니다


Find out sum and carry of Binary adder
Find out sum and carry of a binary adder if previous carry is given with two bits (x and y) for addition. Examples Previo...

2년 초과 전

문제를 풀었습니다


Convert given decimal number to binary number.
Convert given decimal number to binary number. Example x=10, then answer must be 1010.

2년 초과 전

문제를 풀었습니다


Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

2년 초과 전

답변 있음
I need to adda legend to this code, as tried in the last three lines !
No, the code you provided has a few issues in adding legends. Here's the corrected version of the code: x = categorical({'Pre...

2년 초과 전 | 0

답변 있음
How can I export a table to the active Excel sheet?
To write data back to the active sheet in Excel without specifying the sheet name, you can use the "actxserver" interface to int...

2년 초과 전 | 0

답변 있음
Block least-squares parameters estimation
Estimating a(t) from the output y(t) in the presence of noise can be done using system identification techniques. One approach y...

2년 초과 전 | 0

답변 있음
How to simulate a counter current fixed Bed Reactor
Here's how you can modify your code for a countercurrent reactor: % Update initial conditions for countercurrent reactor nNa(1...

2년 초과 전 | 0

| 수락됨

답변 있음
How to get the TRUE PARETO data for test functions for multi-objective optimization?
Obtaining the true Pareto front typically involves using mathematical or analytical methods to compute the optimal solutions tha...

2년 초과 전 | 0

답변 있음
How can I code Finite element discretization of 2D for rectangular object ? .... The sample is attached on the picture.
check this one % Define problem parameters Lx = 1; % Length of the rectangular domain in the x-direction Ly = 1; % Length of ...

2년 초과 전 | 0

답변 있음
ddpg agent does not learn
Check this % Define the observation and action space numObs = 4; % Replace with the actual number of observation features num...

2년 초과 전 | 0

문제를 풀었습니다


Calculate Amount of Cake Frosting
Given two input variables r and h, which stand for the radius and height of a cake, calculate the surface area of the cake you n...

2년 초과 전

문제를 풀었습니다


Fix the last element of a cell array
Note: this is lifted directly from <http://www.mathworks.com/matlabcentral/answers/82825-puzzler-for-a-monday Puzzler for a Mond...

2년 초과 전

문제를 풀었습니다


String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values
<http://www.mathworks.com/help/matlab/characters-and-strings.html String array> and cell array are two types of containers for s...

2년 초과 전

문제를 풀었습니다


Cell Counting: How Many Draws?
You are given a cell array containing information about a number of soccer games. Each cell contains one of the following: * ...

2년 초과 전

문제를 풀었습니다


Remove element(s) from cell array
You can easily remove an element (or a column in any dimension) from a normal matrix, but assigning that value (or range) empty....

2년 초과 전

답변 있음
rt_round redefinition problem
It seems like you are encountering a conflict with the `rt_roundd` function in your MATLAB code generation for the Autosar platf...

2년 초과 전 | 0

답변 있음
How to regrid along latitude and longitude of a 3d mat file
% Load the original data from the mat file (assuming the variable name is 'originalData') load('your_data_file.mat', 'originalD...

2년 초과 전 | 1

| 수락됨

문제를 풀었습니다


Convert a Cell Array into an Array
Given a square cell array: x = {'01', '56'; '234', '789'}; return a single character array: y = '0123456789'

2년 초과 전

문제를 풀었습니다


Split a string into chunks of specified length
Given a string and a vector of integers, break the string into chunks whose lengths are given by the elements of the vector. Ex...

2년 초과 전

문제를 풀었습니다


Convert a numerical matrix into a cell array of strings
Given a numerical matrix, output a *cell array of string*. For example: if input = 1:3 output is {'1','2','3'} whic...

2년 초과 전

문제를 풀었습니다


Create a cell array out of a struct
Create a cell array out of a (single) struct with the fieldname in the first column and the value in the second column: in: ...

2년 초과 전

문제를 풀었습니다


Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

2년 초과 전

답변 있음
Different training results for neural network when using full dataset versus partial dataset
The difference in results between scenario 1 and scenario 2 could be due to the different order of data samples seen during trai...

2년 초과 전 | 0

| 수락됨

답변 있음
What is the difference between readall and read+hasdata?
The functions `readall` and `read` with `hasdata` are used for reading data from datastores. These functions are not exactly the...

2년 초과 전 | 0

더 보기