MATLAB Solutions & Expert Answers

Ask an expert. Trust the answer.
Academic and engineering questions answered by verified MATLAB professionals.

MATLAB expert answering student questions
Showing page 36 of 208 Ask a Question
cell array to char array?
raktim banerjee · Apr 28, 2023 · strings , text file , MATLAB , Language Fundamentals ,

Hello Sir!   How to convert a cell array to char array? I want to read 2 strings from a .txt file and want them in char type. if I do as follow those are cell type. The file conta…

How to change property behavior for a mocked object
TADA · Apr 20, 2023 · mocking framework , mock , test , Software Development Tools

I'm trying to use the mocking framework for unit tests   I'm trying to make the property of a mock object return another mock object, but the behavior object doesn't have the prop…

Want to insert a matrix in a for loop and change it with a variable
Ashi Khajotia · Apr 20, 2023 · for loop in a matrix , MATLAB , Language Fundamentals , Loops and Conditional Statements

Hello,   So, I have a variable phi(1x41) changing with lambda(1x41) and there is matrix (2x2) inside a for loop that needs to be changed with phi but the dimension of matrix shoul…

Detection of stars from the detected objects.
jyothsna chennareddy · Apr 17, 2023 · comet detection , remove stars , Computer Vision Toolbox , Computer Vision With Simulink

Sir, My project is "Comets recognition from satellite images".I detected the objects from the image and the objects that are dtetected in the order of thousands.I need to detect an…

Help increasing the speed of a piece of code
Simone A. · Apr 17, 2023 · improve , speed , matlab , code , matlab compiler , loop

Dear all,   Plain summary: I have a temperature matrix and I need to find the average temperature of the 8 pixels surrounding each pixel.   I need to subdivide my 134x134 matrice…

Select values based on datetime
stelios loizidis · Apr 17, 2023 · matrix , datetime ,

Hello,   I have the matrix Values (1X2100) and the corresponding DateTime matrix with datetime data (1x2100 datetime). The values in Values matrix are hourly. I want to categorize…

How can I add linspace in a For Loop
Edson · Apr 17, 2023 · matlab ,

Hello good day,I wish to have a 'for' or 'while' loop which keeps increasing the value of 'x' as the value of 'phi' keeps increasing from 0 - 77.3049 with 100 numbers. I attempted …

Get a Free Consultation or a Sample Assignment Review!