Réponse apportée
Enlarge the size of the image inside the plotted figure
Here's one way: RGB = imread('peppers.png'); figure image(RGB) set(gca(),'Visible','off') r1 = 236; r2 = 331; c1 = 185; ...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Merge 2 matrices "RxC uint8" into one matrix "RxCx2 uint8"
A = uint8(randi([0 255],41,41)); B = uint8(randi([0 255],41,41)); C = cat(3,A,B)

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
How to display a few xticklabels from a set of selected xticks?
selected_ticks = [2 3 4 5 6 8 11 1 19 29 53 119]; selected_labels = [4 53]; sorted_selected_ticks = sort(selected_ticks); s...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
Why are my plots for K values and initial conditions all the same colour even with hold on
They are all the same color because you have specified them all to be black when you plotted them. The 'k' means black in, e.g.:...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
Test Disappear from Chart
Try using '\\newline' instead of '\n' in sprintf: cat = 'Final Bump Road Obstacle'; method = {'WaveletScattering and SVM Tuned...

plus de 2 ans il y a | 1

Réponse apportée
How to import image CSV data into matlab and show it and make Calculation automatically
"I have nearly 100 csv Data sheet" Assuming each sheet is in a separate file, then in order to read all the files, you need to ...

plus de 2 ans il y a | 0

Réponse apportée
import data from .dat file
fn = unzip('test.zip') T = readtable('test.dat','FileType','text','Delimiter','\t','MultipleDelimsAsOne',true)

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Set functions, returned "too many input arguments"
fun1, fun2, and fun3 each take three inputs: fun1 = @(x,y,b) ln((sqrt(x^2 + (y-(b/2))^2)+(y-(b/2)))/(sqrt(x^2 + (y+(b/2))^2)+(y...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
How to find rows in table quickly based on time ranges specified in another table?
% input data construction (copied): timeStart = datetime(2023,1,1) + days(0:0.002:100)'; timeEnd = datetime(2023,1,2) + days(0...

plus de 2 ans il y a | 0

Réponse apportée
Correlation between 2 vectors give a matrix full of Nan
From the documentation for corr: rho = corr(X) returns a matrix of the pairwise linear correlation coefficient between each pai...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Dynamic Structure FieldNames in App Designer Properties
Make global_struct an app property, and refer to app.global_struct everywhere in your code where you refer to global_struct now....

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
How do I generate a random signal that follows normal distribution of mean value 0 and standard deviation 10 ?
% desired mean and standard deviation: my_mean = 0; my_std = 10; % number of points: n = 1000; % generate the signal, u...

plus de 2 ans il y a | 0

Réponse apportée
How can I add a second x-axis on top of the matlab figure for the same graph?
This creates text objects above the axes at the locations of the x-tick marks for the new x-tick labels, and another text object...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
Write a cell array which contains multiple cell arrays into an excel spreadsheet
% make up some data: % I have a 1x3 cell array that has my normalised data, however within this 1x3 cell array holds 3 differ...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
How to plot this function with 2 variables?
t = -2:0.01:2; z1 = exp(t); z2 = 2*(t+1 >= 0); z3 = 0.5*sin(7*t); hold on grid on plot(t,z1,'-','LineWidth',2) plot...

plus de 2 ans il y a | 0

Réponse apportée
When i Run the following code i got an error in app designer?
app.ForceEditField.Value = num2str(EEE); or app.ForceEditField.Value = string(EEE);

plus de 2 ans il y a | 0

Réponse apportée
how to replace a specific line in a text file with user data?
input_file = 'SampleFile.txt'; output_file = 'SampleFile_modified.txt'; dbtype(input_file) Messege = 'Hello'; old_messeg...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
How to add pairs of graphs (generated through a function) to adjacent subplots?
One way is to modify myfunction to take two axes as inputs and plot into those. figure(); for i = [1 3 5] ax1 = s...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
Appending objects based on link array
links = [1 6; 3 9; 4 8; 5 7; 9 10; 8 12; 10 11]; % make a copy of...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
How can i add fit line to a scatter that starts from y axis
Something like this? data = 2+rand(10,2); cfit = fit(data(:,1),data(:,2),'poly1'); plot(data(:,1),data(:,2),'.') xl = ...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Repeat coordinates (arranged on the same y and different x) over different values of y
load row_c load val I think this is what you're going for: r_add = []; r = height(row_c); r_new = row_c; for k = 1:numel...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Antenna Pattern delete axis and ellipses
Here's one way to do some of that: ant = helix; pattern(ant,2e9) f = gcf(); ax = findall(f,'Type','Axes','Tag','patternA...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
plot area with different collar.
VOLL = 1; lat = 0.82; DatI = 0.9; dat = 1; Dat = (-lat*DatI+VOLL*dat)/(VOLL-lat); xmax = Dat*1.15; ymax = VOLL*1.1; f...

plus de 2 ans il y a | 0

Réponse apportée
Right hand side of an assignment into a table must be another table or a cell array.
bias{1,4:10} = [1,2,3,4,5,6,7]; bias{1,4} = 5;

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
How to find the index of a one table when comparing two different tables using ismember()
Swap TT and signalList in your ismembertol calls: sig_RF = ismembertol(signalList.RF, TT.RF, 0.05); sig_PW = ismembertol...

plus de 2 ans il y a | 0

Réponse apportée
Creating a new matrix based on matching two columns
T1 = readtable('example1.xlsx'); T2 = readtable('example2.xlsx'); disp(T1); disp(T2); "I want to [...] take the [last] name ...

plus de 2 ans il y a | 0

Réponse apportée
How to transparently superimpose two images with two colorbars
Rec.Results.TFM = randi([0 255],21,31,'uint8'); Rec.Image.xRange = [0.05 0.08]; Rec.Image.zRange = [0 0.02]; cmap = jet(); R...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Tables: Inner Join using Key 1 or Key 2
i={'A';'B';'C';'D';'C';'D';'D';'B';'A'}; j={'B';'C';'D';'A';'B';'B';'C';'D';'C'}; i=categorical(i); j=categorical(j); v=[10;...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Need horizontal and vertical error bars to show on legend.
% random data: Cl = randn(3,10); Cd = randn(3,10); Cd_u = 0.1*randn(3,10); Cl_u = 0.1*randn(3,10); You can create an erro...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
how create graph in uitable in the app designer (using code)
You want to create an empty axes (with an xlabel, ylabel, and title) inside a specified tab? ax = axes(tab); % tab is the tab y...

plus de 2 ans il y a | 0

| A accepté

Charger plus