Respondida
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...

más de 2 años hace | 0

| aceptada

Respondida
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)....

más de 2 años hace | 0

Respondida
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...

más de 2 años hace | 0

Respondida
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 ...

más de 2 años hace | 0

| aceptada

Respondida
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 ...

más de 2 años hace | 1

| aceptada

Respondida
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...

más de 2 años hace | 1

| aceptada

Respondida
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...

más de 2 años hace | 0

Respondida
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...

más de 2 años hace | 1

| aceptada

Respondida
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...

más de 2 años hace | 0

Respondida
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...

más de 2 años hace | 0

Respondida
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...

más de 2 años hace | 0

| aceptada

Respondida
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...

más de 2 años hace | 0

Respondida
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...

más de 2 años hace | 0

Respondida
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 ...

más de 2 años hace | 0

Respondida
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 ...

más de 2 años hace | 0

| aceptada

Respondida
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 ...

más de 2 años hace | 1

| aceptada

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

más de 2 años hace | 0

Respondida
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...

más de 2 años hace | 0

Respondida
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...

más de 2 años hace | 1

| aceptada

Respondida
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...

más de 2 años hace | 0

Respondida
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 ...

más de 2 años hace | 0

Respondida
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...

más de 2 años hace | 0

Respondida
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...

más de 2 años hace | 0

Respondida
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...

más de 2 años hace | 1

Respondida
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)...

más de 2 años hace | 0

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

más de 2 años hace | 0

Respondida
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'...

más de 2 años hace | 1

Respondida
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...

más de 2 años hace | 0

Respondida
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...

más de 2 años hace | 1

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

más de 2 años hace | 1

| aceptada

Cargar más