Solved


Longest run of consecutive numbers
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have a = [1 2 2 2 1 ...

28 days ago

Solved


Rescale Scores
Each column (except last) of matrix X contains students' scores in a course assignment or a test. The last column has a weighted...

28 days ago

Solved


Draw a '0' in a one matrix!

28 days ago

Answered
When using MATLAB operations on Fluent through ansys_aas, setting the wall temperature to a function of the Z-axis raises an error. Is there a solution?
Hi @耳, Saw your post about the MATLAB-Fluent temperature function issue and thought I could help out. That error you're runni...

29 days ago | 0

Answered
wlan imaging using ultrasound simulation in matlab
Hi @Imaging, I hope you’re doing well. After reviewing the MUST ultrasound toolbox documentation, the WLAN Toolbox example on...

29 days ago | 0

Answered
difficulty in modifying thermal liquid setting for air , water and oil
Hi @Oreoluwa, I saw your comment regarding the difficulty in modifying thermal liquid settings to have air, water, or oil wit...

30 days ago | 1

| accepted

Answered
MATLAB NFC Antenna Simulation
%Complete toolbox-free MATLAB simulation code (`nfc_basic_antenna_simulation.m`) that %solves your resonance detection problem a...

1 month ago | 0

| accepted

Answered
Require assistance in Modelling a Vacuum Pump
Hi @Anirudh, Following your comment, I've compiled a comprehensive blueprint for simulating a diaphragm vacuum pump driven by...

1 month ago | 1

| accepted

Answered
Implement data type propagation for custom block
Hi @Martin Ryba, Thanks for sharing the screenshot and your notes — they helped clarify exactly what’s happening in your mask...

1 month ago | 0

| accepted

Answered
Where can I find references for practical Channel estimation (nrChannelEstimate function)
Hi @Thien Hieu, Thank you for your inquiry regarding mathematical references for Pilot Average and Virtual Pilot approaches i...

1 month ago | 0

| accepted

Answered
How do I prevent motor from entering reverse generating region, and stay in forward motoring region?
Hi @Zachary, Looking at your simulation results, the issue is clear: your motor is operating in Quadrant 4 (negative speed, p...

1 month ago | 0

Answered
Six-Phase PMSM FEA Block Working as Motor
Hi @Ali, Thank you for your detailed question about implementing the dual three-phase PMSM using the Motor-CAD import example...

1 month ago | 1

| accepted

Answered
CAT12 Error using MATLABbatch system
Hi @Mia DeCataldo , Your " _Array indices must be positive integers_" error at cat_run.m line 526 is a known CAT12 parallel p...

1 month ago | 0

Answered
Unable to connect generated simscape model of TK22E10N1 from Simulink-PS converter to the node 2( Node 1 as Anode, Node 2 as Gate and, Node 3 as Source)
Hi @ Ajit Singh, I need to mention upfront that I *don't have direct access to Simscape or toolbox*, so this response is base...

1 month ago | 0

Answered
How to use Simulink 6DOF Block for Rocket Simulation?
Hi @Hugh, Great question about the Simple Variable Mass 6DOF ECEF (Quaternion) block! I should mention upfront that I researc...

1 month ago | 0

Answered
exportONNXNetwork and then importNetworkFromONNX is not the same
Hi @Darcy, I saw your post about the inconsistencies between your original network and the one you got back after exporting t...

1 month ago | 1

| accepted

Answered
When using Simlink real-time (MATLAB 2020a), the following error occurs. Does anyone know the solution?
Hi @子谦, I saw your post about the Simulink Real-Time error you're experiencing with MATLAB 2020a. The error message you're g...

1 month ago | 0

Answered
How to simulate reflection grating ray tracing
Hi @Liu, Your matrix approach for handling grating imperfections is clever, but I think there's a more efficient way to tackl...

1 month ago | 0

Answered
How can I expedite reinforcement learning training time in MATLAB?
Hi @Nida Ahsan, Your observation is correct and well-documented. Parallel RL training trades sample efficiency for wall-clock...

1 month ago | 1

Answered
Help me understand this PQ Controller Model (ABC to dq-reference using Park Transform) in Simulink
Hi @Timothy Joel, Thank you for your detailed question regarding the PQ controller implementation for BESS applications. I ap...

1 month ago | 1

| accepted

Answered
reduce mesh quantity in isosurface plot
Hi @Saurav and @Star Strider, I've read through the thread and appreciate both the original question and the thoughtful respo...

1 month ago | 0

Answered
Is it possible to use two or more GPUs with the UAV Toolbox simultaneously?
Hi @Jones, Thanks for your update. Noted that you're using UAV Toolbox for UAV simulation with HIL and integrating aerodyn...

1 month ago | 0

Answered
MATLAB won't invert a function in the Laplace domain...
Hi @John, I took a look at your gamma distribution Laplace inversion problem, and you've hit a classic limitation of MATLAB's...

1 month ago | 0

Answered
C2000 CMPSS to ePWM Trip Zone / Digital Compare connection
Hi @Valeriy, Thank you for your detailed question regarding overcurrent protection on the Delfino F28377S MCU using CMPSS and...

1 month ago | 0

Answered
blfread with CAN-frame and J1939-frame
Hi @Florian, Thanks for your question regarding reading J1939 frames using `blfread('myBLF.blf')`. I understand you're seeing...

1 month ago | 0

Answered
C Caller error when passing 2D array inside struct via Simulink bus
Hi @ 주형, I understand the compilation error you're encountering with the C Caller block when passing 2D arrays within structs...

1 month ago | 0

| accepted

Answered
create array and plot the function
Dear @SP, I'm writing to follow up on your MATLAB implementation from October 29, 2018, and to address the recent technic...

1 month ago | 0

Answered
How to correctly implement a pid control and fuzzy logic control on synchronous generator tied to ieee bus system?
Hi @Frans, I've conducted a thorough analysis of the latest MathWorks documentation and your Simulink model for implement...

1 month ago | 0

| accepted

Answered
Incorrect calculation between CRS coordinate transformation
Hi @Cristobal, I reviewed the workflow for converting coordinates from *EPSG:2084 (Hito XVIII 1963 / UTM 19S)* to *EPSG:32719...

1 month ago | 0

| accepted

Answered
Neumann boundary condition in a diagonal matrix
Hi @Hugo, Thanks for sharing your code and the detailed explanation of your approach. I see you're trying to increase the a...

1 month ago | 0

Load more