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

1 year ago | 0

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

1 year ago | 0

| accepted

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

1 year ago | 0

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

1 year ago | 0

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

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

1 year ago | 0

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

1 year ago | 0

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

1 year ago | 0

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

1 year ago | 0

| accepted

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

1 year ago | 0

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

1 year ago | 0

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

1 year ago | 0

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

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

1 year ago | 0

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

1 year ago | 1

| accepted

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

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

1 year ago | 0

| accepted

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

1 year ago | 0

Load more