Réponse apportée
Trying to change the y axis range in fplot
syms s a b c d e f n10 = a + (b*s) + c*(s^2) + d*(s^3) + e*(s^4) + f*(s^5) n10_d1 = diff(n10,s) n10_d2 = diff(n10_d1,s) A = ...

presque 4 ans il y a | 0

Réponse apportée
How to find the maximum value between two indices in an array?
Without yor data and complete code, this is a guess: mode2a = 200; % frequency lower bound (Hz) mode2b = 600; % frequency uppe...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
How to add tolerance to iteration with if statement
x(1,1)=0; %Initial guess, x=0 y(1,1)=0; %Initial guess, y=0 z(1,1)=0; %Initial guess, z=0 R=0.3; %relaxation factor f...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Why is my plot blank
P0=300; %power of the heater n=50;% amount of gas (mol) M=28; % Molar mass of Nitrogen gas m=n*M;% m is the mass of the gas(g...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Bandpass power spectrum density issue
You need fs >2*f_upper. Try fs = 80GHz Wx = 50*10^6; % Signal bandwidth Tx = 1/Wx; % Symbol ti...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Assign variables from a solve solution
syms k_x Kr_x alpha_x c0=18.1499 alpha0=0.3491 g=9.81 omega=0.54 D2 = [1 2]; for i=1:length(D2) c_x=c0*tanh(k_x*D...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
How to add tolerance to iteration with if statement
% if a2(i+1,1)-a2(i,1)<0.1 % change the above to: if abs(a2(i+1,1)-a2(i,1))<0.1

presque 4 ans il y a | 0

Réponse apportée
How can I plot this function?
% parameters (use your values) lambdaR = 1; lambdaI = -1; d = 3; p = 2; x = -10:.1:10; w = sqrt(pi/2)*exp((-p^2-4*p*la...

presque 4 ans il y a | 0

Réponse apportée
spline interpolation between three values
P=[100 200 300]; T=[100 150 400]; density=[0.4,0.7,0.8]; Pq =100:300; Tq = spline(P, T, Pq); dq = spline(P, density, Pq)...

presque 4 ans il y a | 0

Réponse apportée
Named arguments in Matlab?
Use arguments block (additionaly for default value, type and size check. doc arguments for more details) self = Renderer(sampl...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Check for incorrect argument data type or missing argument in call to function 'int'
Break long line codes into shorter ones using ... int is not a builtin function. use fix/floor/round/ceil instead (find out th...

presque 4 ans il y a | 0

Réponse apportée
how to save the values of DelL(T)
Lo = 44.46; Do = 18.76; alpha = 0.0002178 ; T = 36:1:180; DelL = Lo*alpha*(T-35); whos

presque 4 ans il y a | 0

Réponse apportée
Acess all last array elements withtin cells
You can use cellfun: precipitate{1}=[1,2,3,4;1,2,3,4]; precipitate{2}=[1,2,3,4,5;1,2,3,4,5]; precipitate{3}=[1,2,3;1,2,3]; ...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
I can't figure out why am not getting a plot on my code
If you put the script and local function ga in the same file, then local functions should be placed at the end of the files as s...

presque 4 ans il y a | 0

Réponse apportée
Finding the z transform
syms n omega f(n) f(n) = sin(omega*n) ztrans(f(n))

presque 4 ans il y a | 0

| A accepté

Réponse apportée
inspection of linearity of data?
load(websave("check_linearity.mat","https://www.mathworks.com/matlabcentral/answers/uploaded_files/1167363/check_linearity.mat")...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Why am I getting this error "not enough argument"
The number of input arguments is 6: for r =1:m H_MMSE(: , r ) = MMSEesti(ReceivedPilots (: , r ), TransmittedPilots (: , r...

presque 4 ans il y a | 0

Réponse apportée
Creating 3D array from 2D with increment
A = randi([1, 10], [3, 5]) C = A + reshape(0:2, [1,1,3]) % increment 0, 1, 2 for example

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Change sequence of consecutive trues to falses, in logical array
x=[true;false;false;true;true;true;true;true]' output = x; dx = diff(x(1:end-1)) output1 = output(2:end-1); output1(output1 ...

presque 4 ans il y a | 0

Réponse apportée
Add indicative labels to vector values
A1 = [ 1 ; 2 ; 3 ]; A2 = [ 4 ; 5 ; 6 ]; A_labeled = [A1 ones(size(A1)); A2 zeros(size(A2))]

presque 4 ans il y a | 0

Réponse apportée
Compact way to plot data with relative colors and legend
% Input a = {'marathon', 1, 4; 'bank holiday', 3, 6; 'bank holiday', 2, 1; 'concert', 0, 4; 'regatta', ...

presque 4 ans il y a | 1

Réponse apportée
Bode Plot options to graph
H = tf([1 0.1 7.5],[1 0.12 9 0 0]); [mag,phase,wout] = bode(H); subplot(211); plot(wout, squeeze(mag(1,1,:))) subplot(212); p...

presque 4 ans il y a | 0

Réponse apportée
How to create a for loop to go through data arrays?
%data = load('file.mat'); data.laser1.pulse=randn(10,1); data.laser2.pulse=randn(10,1); data.laser3.pulse=randn(10,1); dat...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
How can i estiamte the local distance between two boundaries at each point ??
load(websave("bw1.mat", "https://www.mathworks.com/matlabcentral/answers/uploaded_files/1153258/bw1.mat")) load(websave("bw2.ma...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Interindividual distance from trajectories
% xy = randn(6,2); x = readmatrix("https://www.mathworks.com/matlabcentral/answers/uploaded_files/1153563/X_fragment1.txt"); y...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
how to create gray scale gradient image?
a = (-5:0.1:5)'; b = exp(-a.^2/2); x = repmat(b, [1 512]); imagesc(x); colormap(flip(gray(512)))

presque 4 ans il y a | 0

Réponse apportée
Structure that contain an array of points with string names and coordinates
Use array of structure % Define structure points_data = struct('PointID', [], 'Coordinates', [], 'Names',[]); % To have repea...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Structure of array: deletion of null elements
exp_value(exp_value.f_avg(:, 1)==0) = [];

presque 4 ans il y a | 0

Réponse apportée
How can I create a for loop?
n = 20; B = zeros(n, 1); C = zeros(n, 1); for i=1:n a1=1/((1+i/100)^1); a2=1/((1+i/100)^1); a50=(((1+i/100)^...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Convert RGB image into 8 bit rgb image
im = imread("https://www.mathworks.com/matlabcentral/answers/uploaded_files/1150855/my_image.jpg"); [x,cmap] = rgb2ind(im,256);...

presque 4 ans il y a | 0

| A accepté

Charger plus