Answered
PID controller for m file
Hi @ mohammed hussein, To implement a PID controller in MATLAB for your specific scenario, we will follow these steps: Def...

1 year ago | 0

| accepted

Answered
that code does not work well and every time give the same number 5 times every time and not indexd to be used in an another place thank you
Hi @m.montaser sabry, The problem arises from the way the code is structured, particularly with the waitfor function. This fu...

1 year ago | 0

| accepted

Answered
Interpretation of warning message from fitglme: "Warning: Final linear predictor from PL iterations is not feasible."
Hi @Joseph DeCunha , After reviewing your comments, documentations and analysis of data contained in matlab data file <ht...

1 year ago | 0

Answered
MPT3 installation issue on a mac M1 pro platform
Hi @Xinzhou Gao, The errors you're encountering primarily stem from compatibility issues between the toolboxes and the ARM ar...

1 year ago | 0

| accepted

Answered
how can i convert pixels into cms,the code that is available online is giving error
Hi @Tejaswi, To successfully convert pixels to centimeters, you need to establish a clear relationship between the two units....

1 year ago | 0

Answered
Simulating salient pole synchronous generator runaway condition
Hi @Firat Nazar , To design a simulation for this scenario using tools such as MATLAB/Simulink and Simscape, you can follow t...

1 year ago | 0

Answered
simulitanously determination of two drugs
Hi @ruaa, To implement an artificial neural network (ANN) in MATLAB for analyzing spectra data, you can follow these steps. B...

1 year ago | 0

Answered
Saving both code and results to a word file or a pdf file
Hi @Left Terry , To achieve the goal of saving both your MATLAB code and its results into a Word or PDF file, there are sever...

1 year ago | 1

| accepted

Answered
How to wrap axes using geoplot
Hi @Sabrina Khan, I read your comments. To resolve the issue of visualizing a polygon that straddles the Martian meridian in...

1 year ago | 0

Answered
Code block to create optical phase tilt/wedge requested
Hi @Robert Stegeman, To address your query effectively, you need to incorporate the necessary mathematical principles that go...

1 year ago | 0

Answered
The dimensions keep changing so the for loop is failing. How to address this?
Hi @Manny, When working with LSTM networks in MATLAB, especially for time series forecasting, it is crucial to ensure that th...

1 year ago | 0

| accepted

Answered
Updating state to make predictions with a recurrent neural network
Hi @Enrico Gambini, I have reviewed your comments. When utilizing RNNs for time series forecasting, it is crucial to understa...

1 year ago | 0

Answered
How to synchronize two sine waves in Simulink and add them together?
Hi @Atefeh, After going through your comments and reviewing the mathworks simulink blocks documentations provided at the link...

1 year ago | 0

Answered
Vectorized code slower than loops
Hi @Alessandro, Please see “Recommendations for Performance Improvement” below 1. Avoid Large Temporary Arrays: Instead ...

1 year ago | 0

Answered
How to extract the term associated with a symbolic variable and assign to another symbolic variable?
Hi @Hemanth, The process involves identifying the terms in the expression that contain U_sr and then assigning them to a new ...

1 year ago | 0

Answered
Assignment of elements of vector inside for-loop with conditional logics
Hi @John, You have a specific condition-based logic that needs to update elements of a vector (Vector = [0, 0, 0]) during eac...

1 year ago | 0

Answered
Error using ls (line 47) zsh:1: no matches found: *pt*,I am trying to read multiple files for (nc data)but I get this error,and this is my code >>>
Hi @B, Let me explain the errors you have encountered. _No Matches Found:_ The error zsh:1: no matches found: *pt* implies...

1 year ago | 0

Answered
I have a txt. file used in a function. I need a variable in the txt. file to cycle through different values (for loop), and the function needs to run for each value.
Hi @Cornelia, I created a MATLAB script that reads the data from a text file, replaces the specified expression with a variab...

1 year ago | 1

Answered
What is Bus Clamp 60 and 30 Degree SVPWM Switching Sequence and Time ?
Hi @PANDIT DHANRAJ SURESH, You asked, “What is Bus Clamp 60 and 30 Degree SVPWM Switching Sequence and Time ?” Please see ...

1 year ago | 0

| accepted

Answered
Deploy app for a web site
Hi @Kostis Panagiotou , Yes, you can deploy your interactive MATLAB app on your website by using the MATLAB Web App Server. F...

1 year ago | 0

Answered
Controlling aspect ratio for tiled layout
Hi @AR , To resolve these issues, you can adjust the layout and the aspect ratios more effectively. Here’s a revised version ...

1 year ago | 0

Answered
So I wanna to make a 3x3 heatmap with all cells with a value of 1. I want the center grid to be a totally different color than the other grids without changing it's value
Hi @Haoyan, To create a heatmap for a 3 times 3 matrix filled with ones, while specifically coloring the center cell (which c...

1 year ago | 1

Answered
Wind Turbine Doubly-Fed Induction Generator
Hi @Arun Prakash, After reviewing your comments, you can resolve the error regarding the 'Gain' parameter in your Simulink mo...

1 year ago | 0

Answered
How to extract numerical values from a text in an array or table?
Hi @Rahul , To achieve the extraction of numerical values from your data table in MATLAB, you can utilize regular expressions...

1 year ago | 1

Answered
Preventing factor oursite matrix when using the disp() function.
Hi @David Cole, I do agree with @Voss comments. In MATLAB, when the numbers in a matrix are very large or very small, the def...

1 year ago | 0

Answered
Merging uniform boxes into larger ones
Hi @Pete sherer, To enhance your existing code for merging boxes more efficiently, you can consider a more sophisticated appr...

1 year ago | 0

Answered
Someone that can help me with 3D graph?
Hi @Pablo, To achieve the desired visualization and reviewing the documentation provided at the link below, please see the co...

1 year ago | 0

| accepted

Answered
Why can Matlab not determine the sign of the square root of a positive expression?
Hi @MaggieD, In MATLAB's Symbolic Toolbox, assumptions play a crucial role in how expressions are evaluated. They help define...

1 year ago | 0

Answered
How can I make the value in the workspace show more than 4 digits?
Hi @Suleyman Aliyev , The format command in MATLAB allows you to control the display format of numerical values. To display m...

1 year ago | 0

Answered
Can someone help to teach how i want to upload this file into matlab and try preprocessing ?
Hi @Muhammad, You asked, “Can someone help to teach how i want to upload this file into matlab and try preprocessing ?” Yo...

1 year ago | 0

Load more