Answered
How to convert binary sequence into phased waveform?
% Define the Gold sequence generator with the specified polynomials and initial conditions goldseq = comm.GoldSequence('FirstPo...

2 years ago | 0

Answered
whos - I can't capture the output
The whos command by itself displays the information in the command window, but it doesn't return that information directly to a ...

2 years ago | 1

Answered
How to split a matrix of absolute value in min and max?
% Dummy data for A A = randn(10,1,10000); % Normally distributed random numbers % Find absolute peaks across the third dimen...

2 years ago | 0

| accepted

Answered
Can't install Matlab Runtime even with root privileges - permission denied
Check Execution Permissions: Ensure that the 'install' file has execution permissions. You can set the necessary permissions usi...

2 years ago | 0

Answered
How to create block size of 512 bit from binary data and add padding to that block?
% Example binary data as a logical array totalBits = 1000; % Example total bits binaryData = logical(randi([0 1], 1, totalBits...

2 years ago | 0

Answered
printing nxnxn matrix into a file
% Your 3x3x2 matrix X = cat(3, [1, 0, 1; 1, 1, 0; 0, 0, 1], [0, 1, 1; 1, 1, 0; 1, 1, 1]); % Open a new text file for writing...

2 years ago | 0

Answered
creating nodes on an axis normal to a plane
As per my understanding what you want to achieve. I hope it helps. Calculate the Normal Vector: First, determine the normal vec...

2 years ago | 0

Answered
Extracting data from text file after a specified word
data = extractDataFromTextFile('Text.txt'); disp(data) function data = extractDataFromTextFile(filename) % Open the f...

2 years ago | 0

Answered
SIL testing through Process advisor
Using the Same Test Cases for SIL as in Simulation: It is often feasible to use the same test cases for both SIL and simulation...

2 years ago | 0

Answered
Why when I compile the HackRF library in matlab with the GitHub repository do I get an error in the MEX gateway?
Missing or Incorrectly Configured Compiler: MATLAB requires a supported C/C++ compiler to compile MEX files. Ensure you have a c...

2 years ago | 0

Answered
Create Timetable correspond to another timetable
% Original numeric data Reading1 = [0; 0; 3; 3; 2; 0]; Reading2 = [0; 0; 1; 1; 1; 0]; Reading3 = [0; 2; 1; 1; 2; 0]; T = tab...

2 years ago | 1

| accepted

Answered
overcome machine precision for picosecond scale time axis
% Define your parameters Nsymb = 1e4; % Number of symbols Nsps = 2; % Samples per symbol symbrate = 32e9; % Symbol rate [Symb...

2 years ago | 0

Answered
Unable to exchange encryption keys
Outdated SSH Software: Ensure that you're running the latest version of the SSH software on your system. Older versions might no...

2 years ago | 0

Answered
Where can i find more information regarding the predefined i/p parameters of the Equivalent Circuit Battery model present in simulink?
The predefined parameters in the ECM (Equivalent Circuit Model) of the Powertrain Blockset, like R0, R1, and C, are typically de...

2 years ago | 0

Answered
how this function of idtft works
Theoretical explanation: w (Frequency Domain Samples): These are the frequency domain sample points where the spectrum X is def...

2 years ago | 1

| accepted

Answered
Find peak values and locations in two matrices containing zeros
A = [1 3 -1 1 5 -1 0; 1 6 3 -2 0 0 0; 2 3 9 -2 1 11 -1; 4 1 -2 8 5 0 0; 2 -2 6 -1 0 0 0; -1 13 -2 0 0 0 0]; B = [1 1.5 2.5 3 3....

2 years ago | 0

| accepted

Answered
Generating a rather intricate loop with inequalities
Your current code does not correctly calculate k and r. Here's an adjusted version: m = 1; % Example values for m n = 2; % ...

2 years ago | 0

| accepted

Answered
How can I encode images to Base64?
@Laszlo Try this out and matches the online tool. To correctly encode a JPEG image to Base64 in MATLAB, the key is to read the ...

2 years ago | 3

| accepted

Answered
Where can I learn the HYSYS code applicable to MATLAB?
Finding study materials about the MATLAB and HYSYS link can be bit challenging as it's a specialized topic. However, here some r...

2 years ago | 0

Answered
AppDesigner in headless mode (without GUI)
Is a bit tricky, especially since AppDesigner is primarily designed for GUI-based applications. However, there are a few strateg...

2 years ago | 1

| accepted

Answered
Whats meaning of comands in matlab
str: This is not a default function or command in MATLAB. It might be a variable or a user-defined function in your workspace or...

2 years ago | 0

Answered
How can I incorporate both the x-axis and a reversed y-axis without altering the plot but only adjusting the orientation of the axes?
@Rabih Sokhen Try this. clear all; clc; a = [0 0 1; 1 1 0; 1 0 1]; x = linspace(-1, 1, 3); y = linspace(2, -2, 3); % Defin...

2 years ago | 0

| accepted

Answered
Why Does Format of Data Returned from readtable() Depend on Import Options that are Not VariableTypes?
Data Type Inference: MATLAB infers the data type based on the content of each column. If you don't specify a data type in delimi...

2 years ago | 0

Answered
Determine the coordinates of the nodes forming the outermost circle
% Load the nodes data nodes = importdata('nodes.mat'); % Define the desired radius R = 4; % Calculate the distance of ea...

2 years ago | 0

| accepted

Answered
Create a loop with doubling the previous number minus 1
% Initialize the starting number number = 2; % Loop until the number exceeds 66 while number <= 66 disp(number); ...

2 years ago | 0

| accepted

Answered
Reading a specific ASCII format file
% Open the file filename = 'New Text Document.txt'; % Change to your actual file name fid = fopen(filename, 'r'); % Initial...

2 years ago | 1

| accepted

Answered
Error: Failed to open the TCP port number in the license.
@Andreas Check for Running Processes: Make sure that no other process is using the port specified in your license file. The por...

2 years ago | 1

| accepted

Answered
How to overcome this error while using lsqnonlin for curvefitting??
you can set various options including the maximum number of function evaluations using the optimoptions function. If you're reac...

2 years ago | 0

Submitted


Mean and Standard Deviation Calculator for MATLAB
Calculate mean and standard deviation of a dataset.

2 years ago | 1 download |

0.0 / 5

Answered
"Error using horzcat, Dimensions of arrays being concatenated are not consistent."
Check and ensure that the dimensions of ax and [zeros(nrep, 1) y] are compatible for plotting. % Dummy data tsim = 10; % To...

2 years ago | 0

Load more