Solved


Vectorize the digits of an Integer
Create a vector of length N for an integer of N digits. x = 123045; x_vec = [1 2 3 0 4 5]; I happened upon a trick ...

2 years ago

Solved


Getting values from a vector
This exercise is for finding the values that meet your criteria. a = [-5 28 7 83 73]; b = 23 ; c = (a > b) Then : c = ...

2 years ago

Solved


Is it an Armstrong number?
An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself. Fo...

2 years ago

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'

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

2 years ago

Answered
How to convert signal data type by using function or code script
Hi 杰林, If I understand your question correctly, when working with Simulink Test Harnesses and the Signal Editor, there are wa...

2 years ago | 0

Answered
Different number of classes in training and testing data
Hi Jamil, When dealing with new test data that differs significantly from the training set, several factors need to be consid...

2 years ago | 0

Answered
I am working on a simulation in Simscape involving a three-phase rectifier fed by a three-phase synchronous machine (alternator with round rotor).
Hi Omar, When encountering issues with the input voltage to the rectifier being distorted or significantly diminished, despit...

2 years ago | 0

| accepted

Answered
How to Automatically detect MicrosoftVisual C++ 2019 v16.0 | nmake (64-bit Windows) toolchain in code generation setting ?
Hi Anup, To debug this problem, Open the System Properties window by right-clicking on "This PC" or "My Computer" and selecti...

2 years ago | 1

| accepted

Answered
Why did the parallel computing's task return the state of failure?
Hi X, When encountering errors in the gretna_permutation_ttest function, it is crucial to follow a systematic debugging appro...

2 years ago | 0

Answered
Why use 'delay' for estimating a path for ANC?[simulink]
Hi myeongsuk, To answer your question, delay plays a crucial role in accurately estimating the path for noise cancellation. W...

2 years ago | 0

Answered
How to continually clock in data during a simulation within Simulink
No problem, Dan. I do understand that you are facing difficulties and sometimes it causes frustration when reliable solution is ...

2 years ago | 0

Answered
What is wrong with my FFT code?
Hi Eshan, The proposed correction to the noise power calculation by subtracting the power of the signal tone and harmonics f...

2 years ago | 0

Answered
How to create a 3D world and simulate a virtual camera in MATLAB on MacOS?
Hi Yeray, Creating a 3D world and simulating a virtual camera in MATLAB can be achieved using various techniques. While Simul...

2 years ago | 1

Answered
What is wrong with my FFT code?
Hi Ehsan, You asked, I can't figure out which part of the code is wrong. it looks correct to me. please help me out; Upon ...

2 years ago | 0

Answered
Why is str2num not recommended when it is faster in certain circumstances?
Hi Darcy, That’s is a very good catch. You asked, Why is str2num not recommended when it is faster in certain circumstances? ...

2 years ago | 0

Answered
f = x^2024. Write a loop to find how many times f needs to be differentiated to get a result of zero.
Hi Paul, After reviewing your comments and taking your constructive criticism into account, I updated the code. Please check ...

2 years ago | 0

Answered
How to start Implementing matlab code in wsn
Hi Ahmed, I can concur with that statement if you did not follow the following steps throughly, Retrieve the energy consumpti...

2 years ago | 0

| accepted

Answered
f = x^2024. Write a loop to find how many times f needs to be differentiated to get a result of zero.
Hi Brian, To solve this problem, you need to understand that the nth derivative of a function is obtained by taking the derivat...

2 years ago | 0

Answered
I can't access to matlab anymore after reactivation of the license
Hi Demetrio, When encountering a "license checkout failed -9" error in MATLAB after reactivating the license, it is essential...

2 years ago | 0

Answered
Question: Does MATLAB have a function for separating the square root in the equation eqn=a*x^2 +b*x + c +sqrt((rc*x+1)/rc) of the rest?
Hi Hendrik, You asked, Does MATLAB have a function for separating the square root in the equation eqn=a*x^2 +b*x + c +sqrt((rc*...

2 years ago | 0

Answered
Colours inverted in a simulated transmitted image
Hi Liam, The cause of the issue is that the code does not account for the color inversion that occurs during the transmission...

2 years ago | 0

| accepted

Answered
How findsignal dtw option works?
Hi David, You asked how findsignal using dtw aligment works The findsignal function in MATLAB, when used with DTW alignmen...

2 years ago | 0

Answered
How to continually clock in data during a simulation within Simulink
Hi Dan, To resolve this issue, you have to create a new Simulink model named 'Simulink_Selector_Counter_Limited'. Then, add ...

2 years ago | 0

Answered
plotting Graph in 3D help
Hi Fareeha, You asked, i want to plot this graph in 3D, how can I? In order to do that, you can use plot3 function to achieve ...

2 years ago | 0

| accepted

Answered
How to remove the pseudo-defects of the contour after differential images
Hi Zoumin, I can help you to create a custom function that processes the edge image to identify and extract defects. Here's a...

2 years ago | 0

| accepted

Answered
Matlab not starting (Ubuntu 22.04) - hangs with CPU 100% and no error messages
Hi Joni, Okay that seems to be serious issue using Linux operating system. Sometimes corrupted preferences or settings can ca...

2 years ago | 0

Answered
Operate Robot Model in Simulink Multibodies via own Matlab MQTT Client in Matlab Code Block?
Hi Stefan, Please see my solutions to your questions. Question: There is a MQTT Library for Matlab. So i could write my o...

2 years ago | 0

Answered
I want to rotate matrix as well as image and want to show that output is invariant. Imrotate is effecting invariance so what should i do? % Generate a random 50x30 matrix A an
Hi Shafaq, You can use the imwarp function along with an affine2d object to perform rotation. This method allows you to specify...

2 years ago | 0

Answered
Matlab not starting (Ubuntu 22.04) - hangs with CPU 100% and no error messages
Hi Joni, Try updating your graphics drivers or changing the OpenGL settings in MATLAB. You can disable hardware acceleration ...

2 years ago | 0

Load more