Beantwortet
How to change the graph of frequency domain
% Create a square matrix of zeroes Z = zeros(99); origin = [round((size(Z,2)-1)/2+1) round((size(Z,1)-1)/2+1)]; % "center" of...

etwa ein Jahr vor | 0

| akzeptiert

Beantwortet
syntax error in if else if block
% Number of inputs: 3 % If expression (e.g., u1 ~= 0): u1 == 1 % Elseif expressions (comma-separated list, e.g., u2 == 2, u3...

etwa ein Jahr vor | 0

Beantwortet
Converting a cell array to can message timetable
Initial implementation: % Given cell array canMessageCell = {'Timestamp 1546909042', 'Interface ''can0''', 'ID ''0B9''', 'Data...

etwa ein Jahr vor | 0

Beantwortet
Matlab reading data using DLL and winsock2
Adjust as per your need: clc; clear; if libisloaded('udpfunc2') unloadlibrary('udpfunc2') end loadlibrary('udpfunc2.dl...

etwa ein Jahr vor | 0

Beantwortet
How to recover the original signal using ifft
clear; clc; close all; % Time step dt = 2.5e-9; % Frequency of the sine wave f = 10e6; % Number of points in the orig...

etwa ein Jahr vor | 0

| akzeptiert

Beantwortet
Thingspeak HTTP eror code: -210
1. Check API Key and Channel ID Ensure that the API Key and Channel ID used in your HTTP request are correct. An incorrect API ...

etwa ein Jahr vor | 2

Beantwortet
Why does the "Matrix dimensions must agree" error persists?
To give an initial idea: % Example MATLAB code to plot an audio recording % Sample rate Fs = 8000; % 8 kHz % Create a d...

etwa ein Jahr vor | 0

Beantwortet
How to add unknow parameter in matrix and solve it by use det() syntax for finding w
clc; % Clear command window clear; % Clear workspace syms w; % Define w as a symbolic variable % Define masses, damping coe...

etwa ein Jahr vor | 0

| akzeptiert

Beantwortet
Could not determine the size of this expression
Try this: function Yref = generateYref(n_y, Np, Rr, Vo_xy_ref) % Define the size of the output explicitly Yref = zero...

etwa ein Jahr vor | 1

Beantwortet
Measure concentration every 5 sec using Arduino
An initial idea: % Connect to Arduino a = arduino('COM3', 'Uno'); % Update 'COM3' with your actual COM port sensorPin = 'A0';...

etwa ein Jahr vor | 0

| akzeptiert

Beantwortet
Python script changes are not updated in MATLAB
py.reload(py.matlab_file); Try using py.reload() -----------------------------------------------------------------------------...

etwa ein Jahr vor | 0

Beantwortet
Accessing a vector form a matrix
% Dummy data for vectors x1, x2, and x3 x1 = sin(linspace(0, 2*pi, 100)); % Example data for x1 (a sine wave) x2 = cos(linspa...

etwa ein Jahr vor | 0

Beantwortet
how to solve my problem that i write
clc; clear; close all; % Constants and parameters lambda_sh = 0.775e-6; % SH wavelength nlithium_sh = 2.1784; lambda_ff ...

etwa ein Jahr vor | 0

Beantwortet
Find the variable inside the LCM argument
% Known values of B and nrt B = 120; % Example value for B nrt = 8; % Example value for nrt % Find all divisors of B div...

etwa ein Jahr vor | 0

Beantwortet
How to match matrix elements for a condition?
Assuming a 1-dimensional array. Will check for sums of three consecutive elements that are close to a given value (target_sum) w...

etwa ein Jahr vor | 1

Beantwortet
using if else statements to assign a value to a variable based on the value of a specific element in a matrix
An initial idea: % Example matrix M M = randn(10,10); % A 10x10 matrix with random values % Initialize matrix p with the s...

etwa ein Jahr vor | 0

| akzeptiert

Beantwortet
How to draw a streamline diagram in a circular area?
% Parameters radius = 2; % Radius of the circular area x = linspace(-2.5, 2.5, 100); y = linspace(-2.5, 2.5, 100); [X, Y] = ...

etwa ein Jahr vor | 0

| akzeptiert

Beantwortet
Given the coordinates (x, y) of a center of a circle and it's radius, write a program which will determine whether a point lies inside the circle, on the circle or outside
% Define the coordinates of the center of the circle xc = 0; yc = 0; % Define the coordinates of the point to check xp = 3...

etwa ein Jahr vor | 0

Beantwortet
How can I illustrate a sinusoidal plane wave in MATLAB?
% Define the domain x = linspace(-2*pi, 2*pi, 100); z = linspace(-2, 2, 20); [X, Z] = meshgrid(x, z); % Define the wave y...

mehr als ein Jahr vor | 1

Beantwortet
Why is my code not working?
f = @(final) average_f(final) - 65; % Define a function that should be zero initial_estimate = 70; % Initial estimate for fso...

mehr als ein Jahr vor | 0

Beantwortet
Find the number of regions and calculate the area of each region
clear; format short e; rng('shuffle'); %% Parameters export = 1; % Whether or not to save data for ABAQUS N = 1000; % nu...

mehr als ein Jahr vor | 0

Beantwortet
How to append Nested cell array to .csv file
@Karthik One of many possible approaches: % Example nested cell array nestedCell = { {1, 2, 3}, 'Text'; 4, {5, 'More...

mehr als ein Jahr vor | 0

Beantwortet
Why clearing memmapfile is taking too long?
function time = ReadDataStoreMapTime(filename) tic; chunksize = 2.5*1024*1024*1024; ds = fileDatastore(filename, ...

mehr als ein Jahr vor | 0

Beantwortet
Printing sentences using cell arrays
% Define cell arrays Names = {'Harry', 'Xavier', 'Sue'}; Verbs = {'loves', 'eats', 'throws'}; Nouns = {'baseballs', 'rocks', ...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
can someone please assist to make the square wave plot at 50Hz
fs = 1000; % Sampling frequency f = 50; % Frequency of the square wave % Time vector from 0 to 1 second, with step size o...

mehr als ein Jahr vor | 0

Beantwortet
MATLAB 'imread' function error.
This problem can arise due to several reasons, including path conflicts, shadowing issues, or a corrupted MATLAB installation. H...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
MATLAB coder has been running for a week
It is highly unusual for MATLAB Coder to take this long in the type inference stage. This extended processing time is not normal...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
Combining multiple rows from one matrix to another matrix
% Define the original matrix P P = [1 2 3 4 5; 6 7 8 9 10; 11 12 13 14 15; 16 17 18 19 20; 21 22 23 24 ...

mehr als ein Jahr vor | 0

Beantwortet
plotting time as legend values with filter as x and amplitude as y
close all; clear all; clc; % Initialization fs = 20e3; % Sampling frequency numFilts = 32; % Number of filters CenterFre...

mehr als ein Jahr vor | 0

Beantwortet
HTTP Request returns partial data
1. Server Closes Connection Prematurely The server might be closing the connection before all the intended data has been sent, ...

mehr als ein Jahr vor | 0

Mehr laden