Réponse apportée
Combining Rows of a Table based on Matching first column entry?
Tcell ={'Air Force' 2011 13 7 6 'Akron' 2011 12 1 11 'Alabama...

plus de 4 ans il y a | 0

Réponse apportée
3d plots with multi inputs
There are may ways of volume visualization. Check the document site: https://www.mathworks.com/help/matlab/volume-visualization...

plus de 4 ans il y a | 0

Réponse apportée
Warning: Matrix is singular to working precision
Make sure your matrix "a" is full rank (rank(a) should be 6 instead of 5). a=[1, 0, 0, 0, -0.25, 0; 0, 1, 0, -0.25, 0, -0.25; 1...

plus de 4 ans il y a | 0

Réponse apportée
plot the surface using ezsurf for the surfaces 𝑧1 = 𝑥cos (𝑦), 𝑧2 = 𝑦𝑒^( 𝑥 2−5) and label the axes.
ezsurf(@(x, y) x .* cos(y)) % Leave the next one for you to try

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Making a look-up table periodic
theta = (-180:180); x = randn(size(theta)); % Look up table/interpolant F = griddedInterpolant(theta, x); % wrap the input...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Is it possible to concatenate columns of a tensor into a single column?
A =randn(10,1,10); B = A(:)

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
"find" is not finding what I want it to?
Try the following: AI=find(3.0<areas & areas<200); % AE=find(3.0>areas & areas<200); AE=find(3.0>areas | areas<200);

plus de 4 ans il y a | 0

Réponse apportée
Bar width according to a duration type data in a bar graph
x = 1:10; % x data y = randi(10, size(x)); % y data w = rand(size(x))/2; % width for i =1 : nume...

plus de 4 ans il y a | 0

Réponse apportée
How to factor symbolic equations
syms c SE1=c^2-2*c+1; SQ1=SE1==25; % you can factor a symbolic function but not an equation factor(SE1) factor(SE1-25)

plus de 4 ans il y a | 2

| A accepté

Réponse apportée
Error while reading image in loop to perform some operation on all images in folder
function recursiveFile() % Files=dir('D:\datasets\PRImA_LayoutAnalysisDataset\PRImA Layout Analysis Dataset\Images\*.tif'); fo...

plus de 4 ans il y a | 0

Réponse apportée
How to plot multiple audio files horizontally in MATLAB
n = 1000; t = (0:n-1)'*.0001; x = randn(n, 6); % 1000 samples 6 channels y = 0.2*x + (1:6); % scale the x by 0.2,...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
what to do when i get unrecognized function or variable
You need to define the function y(t). y = @(t) cos(t); % eg. y(t) = cos(t) tmin=-3;tmax=5;dt=0.02; t=tmin:dt:tmax; y...

plus de 4 ans il y a | 1

Réponse apportée
interpreting frequency vs phase plot in fft
The output of the FFT has zero values in most frequency bins(with some leaking effect due to the fact that frequencies of sinoso...

plus de 4 ans il y a | 0

Réponse apportée
How to change the color of singular bars on a bar graph if the value is below the lower limit of the error bar?
weeks = [12:24] weight = [0.128125 0.16125 0.205 0.258125 0.321875 0.39875 0.491875 0.601875 0.73 0.879375 0.948125 1.1 1.32];...

plus de 4 ans il y a | 0

Réponse apportée
(Important )How to generate numbers in matlab? Need help.
You can generate 2 random numbers in the given range and sort these 2 numbers out. img1 = imread('peppers.png'); data=5; %100;...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Why do upsample and downsample commands give wrong results in start of sequence?
All time axes start from 0. % Up/Down Sampler clear all close all clc x=[1 2 3 4]; % Input Sequence y=upsample(x,3); % Ups...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Plotting ellipses with parametric curves
% First ellipse t = linspace(0,2*pi,200); a = sqrt(2); b = sqrt(2/3); x = a.*cos(t); y = b.*sin(t); %plot(((1/2)*(x.^2)), ...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
How to convert Data from 'yyyyMMddhhmm' format to datetime format
dstr = ["202201010000.000" "202301010000.000"] t = datetime(dstr,'InputFormat','yyyyMMddHHmm.SSS')

plus de 4 ans il y a | 0

Réponse apportée
how to smooth the corners of a map
You can interpolate the data first before using contourf. For example, you can use scatteredInterpolant (with method "natural) ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Deleting certain elements from an array without looping
fileNames = {'ThisIsADummyFile', '012345678901234567891'} idx = cellfun(@(x) length(x)~=21, fileNames) fileNames(idx) =[]

plus de 4 ans il y a | 0

Réponse apportée
How to find pythagorean triangle's hypotenuse in a matrix?
a = [5 8 12 3; 8 12 63 20; 9 84 144 20; 24 11 15 180]; b = [12 6 5 4; 15 35 16 21; 40 13 17 99; 7 60 112 19]; c = sqrt(a.^2 + ...

plus de 4 ans il y a | 1

Réponse apportée
How can I make an animation out of contourf plots?
figure for t=10:10:100 % t is the percent number in the file name subplot(121) fn = "T_timestep_"+t"_precent"; ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
plot half Wave rectied sindus
t=0:0.01:1; y=10*sin(8*pi*t); y(y<0) = 0; plot(t, y)

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
Does intlinprog find a local minimum or global minimum?
MILP is NP-hard problem. All solvers require some heuristic rules and the global optimum can not guarenteed for larger problems...

plus de 4 ans il y a | 1

Réponse apportée
hw 2 solve this
y = (cosd(35) - secd(35)^2)/tand(70)

plus de 4 ans il y a | 0

Réponse apportée
How can I plot 'period' by using fft functoin??
Fs = 1000; % Sampling frequency T = 1/Fs; % Sampling period L = 1500; ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
envelope rms implementation review
"envelope" removes the mean first before doing movrms and it restore the mean offset in the end. If you nake sure the signal is...

plus de 4 ans il y a | 0

Réponse apportée
Why Does fplot() Show a Phantom Pole?
The default number of t points (23) is not big enough to show the details around t=0. Change it to a larger value. syms t real...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
Interpolating over a grid
Use scatteredInterpolant instead. tykkelse_002536 = readmatrix('https://www.mathworks.com/matlabcentral/answers/uploaded_files/...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How to create helical sinusoidal plot in matlab
Is this what you want? dh = 2; %0.5; % adjust this to see more detains a = 42; h = 20; R = 45; N = h/dh; m = 1; for n =...

plus de 4 ans il y a | 1

| A accepté

Charger plus