回答済み
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; ...

2年以上 前 | 0

| 採用済み

回答済み
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)

2年以上 前 | 0

| 採用済み

回答済み
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...

2年以上 前 | 1

| 採用済み

回答済み
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.:...

2年以上 前 | 1

| 採用済み

回答済み
Test Disappear from Chart
Try using '\\newline' instead of '\n' in sprintf: cat = 'Final Bump Road Obstacle'; method = {'WaveletScattering and SVM Tuned...

2年以上 前 | 1

回答済み
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 ...

2年以上 前 | 0

回答済み
import data from .dat file
fn = unzip('test.zip') T = readtable('test.dat','FileType','text','Delimiter','\t','MultipleDelimsAsOne',true)

2年以上 前 | 0

| 採用済み

回答済み
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...

2年以上 前 | 1

| 採用済み

回答済み
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...

2年以上 前 | 0

回答済み
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...

2年以上 前 | 0

| 採用済み

回答済み
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....

2年以上 前 | 0

| 採用済み

回答済み
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...

2年以上 前 | 0

回答済み
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...

2年以上 前 | 1

| 採用済み

回答済み
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...

2年以上 前 | 0

| 採用済み

回答済み
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...

2年以上 前 | 0

回答済み
When i Run the following code i got an error in app designer?
app.ForceEditField.Value = num2str(EEE); or app.ForceEditField.Value = string(EEE);

2年以上 前 | 0

回答済み
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...

2年以上 前 | 1

| 採用済み

回答済み
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...

2年以上 前 | 1

| 採用済み

回答済み
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...

2年以上 前 | 0

| 採用済み

回答済み
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 = ...

2年以上 前 | 0

| 採用済み

回答済み
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...

2年以上 前 | 0

| 採用済み

回答済み
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...

2年以上 前 | 1

| 採用済み

回答済み
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...

2年以上 前 | 0

回答済み
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;

2年以上 前 | 0

| 採用済み

回答済み
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...

2年以上 前 | 0

回答済み
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 ...

2年以上 前 | 0

回答済み
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...

2年以上 前 | 0

| 採用済み

回答済み
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;...

2年以上 前 | 0

| 採用済み

回答済み
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...

2年以上 前 | 0

| 採用済み

回答済み
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...

2年以上 前 | 0

| 採用済み

さらに読み込む