답변 있음
e^x maclaurin serie
@Firuze Numerically: % Prompt the user to enter the value of x x = input('Enter the value of x: '); % Prompt the user to...

2년 초과 전 | 0

| 수락됨

답변 있음
how to adjust the simulation time of the parent model with the referenced model?
The MPC operates on a discrete time frame defined by its sample time (T_s), prediction horizon (T_p), and control horizon (T_c)....

2년 초과 전 | 0

답변 있음
Time Delay/S-Function: The specified delay time is smaller than the specified Sample time (Ts). This may cause inaccurate simulation results.
The warning message you are seeing suggests that the delay time specified in the Discrete Variable Time Delay block is less than...

2년 초과 전 | 0

답변 있음
Export surface plot as a vector
The issue you are encountering is a common challenge when exporting 3D surface plots as vector graphics in MATLAB. The Painters ...

2년 초과 전 | 0

| 수락됨

답변 있음
I'm dealing with Speech compression using CELP.
% Read the original audio file [originalAudio, fs] = audioread('path_to_your_original_audio_file.wav'); % Play the original ...

2년 초과 전 | 1

| 수락됨

답변 있음
Parameters for 180 FOV for Fisheye camera
@Maciej Jankowski I know a very long answer but hopefully it would be step towards the right direction. Some of the steps I foll...

2년 초과 전 | 1

| 수락됨

답변 있음
Readtable having problems with text files
Inconsistent Number of Columns: If some lines have comments (an extra column of text) and others don't, readtable might not know...

2년 초과 전 | 0

답변 있음
Can you create string variables to use in plots that use LaTeX?
% Define your LaTeX string variables for plot names namePlot1 = '$\bar{x}$ First measurement'; namePlot2 = '$\bar{y}$ Second m...

2년 초과 전 | 1

| 수락됨

답변 있음
How to find something like variable explorer on PLUS on HYSYS
Using the Shortcut Menu: Right-click anywhere within the Flowsheet window or on any object (stream, unit, etc.). Look for an o...

2년 초과 전 | 0

답변 있음
As a university assignment, I will compare audio files by compressing them with different algorithms. I need suggestion.
Some of the commonly supported audio compression formats include: WAV (Waveform Audio File Format): MATLAB can read and write W...

2년 초과 전 | 0

답변 있음
Using Matlab to send triggers via parallel port
The issue you are encountering with MATLAB and the Psychophysics Toolbox not being able to open the parallel port could be due t...

2년 초과 전 | 0

| 수락됨

답변 있음
getting error in mesh plot
@Ehtisham Try this: % Provided data KFmax = [20, 40, 60, 80, 100]; KBmax = [20, 40, 60, 80, 100]; KBmax100 = [43.50297072, 4...

2년 초과 전 | 0

답변 있음
Impulse function characteristics settling time
When you observe only the transient response and not the settling time in a system's response to an impulse function, it typic...

2년 초과 전 | 0

답변 있음
How can I specify the region of the contour plot ?
% Sample data (replace with your actual data) [X, Y] = meshgrid(-10:0.1:10, -10:0.1:10); Z = peaks(X, Y); % Replace with your ...

2년 초과 전 | 0

답변 있음
how to change latex default font in figure?
Install and Configure LaTeX: Ensure that you have LaTeX installed on your system, as MATLAB relies on LaTeX for rendering text ...

2년 초과 전 | 0

| 수락됨

답변 있음
SOC Recalibration using Matlab
To recalibrate the State of Charge (SOC) at the end of each Rest step in MATLAB, you can follow these steps: Load your SOC OCV ...

2년 초과 전 | 1

| 수락됨

답변 있음
Unwrap table made of doubles
writetable(yourTableName, 'output.xlsx'); Replace yourTableName with the variable name of your table. The file output.xlsx will...

2년 초과 전 | 0

답변 있음
Matlab crashes without any log files while checking for issues in MATLAB 2023b Coder.
MATLAB's "Check for Issues" feature in the MATLAB Coder app can sometimes close unexpectedly due to various reasons, such as mem...

2년 초과 전 | 0

답변 있음
How to insert a single element vector in a table ?
% Load your data from Excel file, assuming it is saved as 'TestF2.xlsx' filename = 'TestF2.xlsx'; % replace with your actual fi...

2년 초과 전 | 1

| 수락됨

답변 있음
Swap shape of cell array full of arrays
Approach 1 % Example input: an nxn cell array n = 2; m = 4; % changed from 5 to 4 to make it reshapeable to 2x2 inputCellArr...

2년 초과 전 | 0

답변 있음
How can i stop my data been imported from simulink to matlab workspace to be in cell array?
@richard uwagbale See this and my previous updated answer. If your Simulink model is exporting simulation data as a cell array ...

2년 초과 전 | 0

답변 있음
Find the 137th character in a file?
Approach 1 % Open the file in read mode fileID = fopen('yourfile.txt', 'r'); % Check if the file was opened successfully i...

2년 초과 전 | 0

답변 있음
How can i stop my data been imported from simulink to matlab workspace to be in cell array?
When data from a Simulink simulation is imported into the MATLAB workspace, it often comes in the form of a Simulink.SimulationD...

2년 초과 전 | 0

답변 있음
Maintain formatting while reading PDF document
If you want to preserve the formatting, MATLAB itself does not provide built-in functions to directly extract formatted text fro...

2년 초과 전 | 1

답변 있음
add internal parts of a vector
vectorA = [1; 1; 1; 1; 1; 3; 4; 8; 1; 1; 1; 2; 9; 1; 1; 1; 1; 4; 1; 1]; vectorB = sum_consecutive_ones(vectorA); disp(vectorB)...

2년 초과 전 | 0

답변 있음
Intel OneApi 2024 Support!
@Abdelrahman Disclaimer. Try/use at your own risk. If MATLAB does not officially support the Intel OneAPI Fortran 2024 compile...

2년 초과 전 | 0

답변 있음
How to set the number of sampling points when simulating using Simbiology APP
Open your model in the SimBiology app. Click on the 'Simulation' tab in the toolstrip at the top. In the 'Simulation Settings'...

2년 초과 전 | 1

답변 있음
Getting NaN after filtfilt function
Stability of the Filter: With high filter orders, like the 11th order you're using, the filter can become unstable, especially w...

2년 초과 전 | 0

답변 있음
How to find something like variable explorer on PLUS on HYSYS
In Aspen HYSYS, you can view and interact with variables using the "Data Browser" or "Variable Explorer" feature. This feature a...

2년 초과 전 | 1

답변 있음
minimzing the expression to find the variables
% Your given data a = [...]; % Define your array b = [...]; % Define your array reg1 = [...]; % Define your array reg2 = [.....

2년 초과 전 | 1

| 수락됨

더 보기