답변 있음
Using boxchart, how can I get the boxes to align with my labels?
All this is the same as what you already have: roiindx = [1 4 7 8 10]; % pulling specific items from a larger dataset i=1; % u...

거의 3년 전 | 1

| 수락됨

답변 있음
Writing a table too large for MATLAB
If you don't mind the full table being in an xlsx file insted of a csv, you can use the 'Range' input in writetable to write eac...

거의 3년 전 | 0

답변 있음
How to take data column in a character vector?
vector = [ ... 'tangerang_lemi_raw_20230701.txt 01-Jul-2023 23:46 5049515'; ... 'tang...

거의 3년 전 | 0

답변 있음
Looping interpolation scheme has errors for some (but not all) datasets?
Notice that this: a_timestamps = 0:64:(64*length(a_data)) or equivalently this: a_timestamps = (0:length(a_data))*64 makes a...

거의 3년 전 | 1

| 수락됨

답변 있음
Reshape 2d Array into 3d Array
m = [1:150 ; 151:300]; m_new = reshape(permute(reshape(m.',10,[],2),[1 3 2]),10,10,[])

거의 3년 전 | 0

| 수락됨

답변 있음
plot in two side of x-axis with common y-axis
% rudimentary data vaguely similar to what yours might be: P = 0:3:15; phi = [ ... 0.03 0.02 0.01; ... 0.016 0.01 ...

거의 3년 전 | 0

| 수락됨

답변 있음
How to read/load text file without header?
readtable seems to work well on this file. t = readtable('Test Data.txt'); head(t) % check the first 10 rows -> looks ok % ac...

거의 3년 전 | 0

| 수락됨

답변 있음
How Do I Extract User Inputs From a UIFigure?
To save the state when the uifigure is closed, specify a CloseRequestFcn for the uifigure that gets the state of each checkbox a...

거의 3년 전 | 1

답변 있음
Reference to non existent field 'output' GUIDE GUI
You should always run the m-file (don't try to run the fig-file by itself). Therefore only error #2 is relevant. To fix error #...

거의 3년 전 | 0

| 수락됨

답변 있음
move cells (contained within a cell) to coordinates other than the starting coordinates
load matrix_complete load coord siz = max(check_1_valori_0,[],1); matrice_completa_new = cell(siz); for ii = 1:numel(m...

거의 3년 전 | 0

| 수락됨

답변 있음
surf plot is required
Like this? A = 1; M = 1; Da = 0.1; L = 0.1; Pr = 1; Nb = 0.1; Nt = 0.5; s = 0.5; Le = 2; Kc = 1;B = 0.5; xa = 0; xb = 6; Lv =...

거의 3년 전 | 0

| 수락됨

답변 있음
yyaxis plots ignoring plotting commands or even changes the command unprompted
Because fill is called after the UB/LB bounding curves are plotted, the patches created by fill are on top of the bounding curve...

거의 3년 전 | 0

| 수락됨

답변 있음
Perform action after set time with prompt
This uses a timer to play the gong sound after 5 seconds if the user has not entered a region yet. % Load gong sound gong = lo...

거의 3년 전 | 0

| 수락됨

답변 있음
Storage data in a harmonized matrix all values generated from a structure matrix with specific conditions
Here's one way. M1 = [ ... 158 -0.573800000000000 0.144935922330097; ... 171 -0.515800000000000 -0.145098543689320; ....

거의 3년 전 | 0

| 수락됨

답변 있음
vectorization in tensors, how to add vector and matrix
M = rand(3,4); V = rand(1,100); result = reshape(M,[1 size(M)]) + V(:); size(result)

거의 3년 전 | 1

답변 있음
How to make equally spaced symbols on a line plot
Do you want something like this? x = 1:100; y = sin(x/10); plot(x,y) % the whole line hold on plot(x(1:10:end),y(1:10:end),...

거의 3년 전 | 0

답변 있음
How to extract table with only numerical values from table
Use () instead of {} S = vartype('numeric'); tDatanum = tTest(:,S) % <- using () makes tDatanum another table

거의 3년 전 | 2

| 수락됨

답변 있음
How to create an intermediate surface model from 2 Excel files with x, y and z cordinates where the number of rows in the matrices is different?
data_model1 and data_model2 are character vectors containing the names of the files, not the contents of the files. Therefore m...

거의 3년 전 | 1

| 수락됨

답변 있음
why am i recieving a "parse error" at m=2? how do i fix it?
Function definitions in a script must appear at the end, like this: % Define the parameters for the Hermite-Gauss beam m = 2; ...

거의 3년 전 | 0

답변 있음
problem to convert string
I assume that the cell array of numeric 1's shown in the question is the result of the disp(app.UITable.Data(:,15)); line, and t...

거의 3년 전 | 0

| 수락됨

답변 있음
How to readjust a timestamp?
"the malab date is in a number format eg. 7.390905000610648e+05" The number format is the number of days since Jan 0, 0000 (se...

거의 3년 전 | 0

| 수락됨

답변 있음
Extract data from a struct matrix and plot data with condition
M7 = [ ... 158 -0.573800000000000 0.144935922330097; ... 171 -0.515800000000000 -0.145098543689320; ... 228 -1.22...

거의 3년 전 | 0

| 수락됨

답변 있음
How do I change colors for values above zero?
new_color = [1 0 0]; % red M = [(1:10).' randn(10,1)]; % random data x = M(:,1); y = M(:,2); h = bar(x,y); positive_bar...

거의 3년 전 | 0

| 수락됨

답변 있음
Error creating matlab pcolor
The error message indicates that the error is generated by this line: bottomTtest=ncread(fullfile(fp,'Temp_Q1(2020).nc'),'botto...

거의 3년 전 | 0

| 수락됨

답변 있음
How to do the following nested for loop?
format shortg P = [1 1 1 1 1 1]; P_orig = P; for ii = 1:numel(P) fprintf('outer loop iteration %d\n',ii); P = P...

거의 3년 전 | 0

| 수락됨

답변 있음
Skipping Iterations in a For Loop
Basically you have to put the continue before the stuff you want to skip. FEM = [-16 16 -18 12 -6 6]; for i = 1:6-1 if i ...

거의 3년 전 | 0

| 수락됨

답변 있음
Plotting issue: wrong plotting output when number of rows equals number of columns
Referring to the plot documentation - the "Multiple set of points (using matrices)" section of the table. "If all the sets shar...

거의 3년 전 | 0

답변 있음
How to multiply vectors not the same size to create 3d tensor?
One thing you can do is reshape your vectors as desired and use .*, for example: t_obs = [1 2 3]*1e-6; Rtry = [4 5 6 7]*1e2; ...

거의 3년 전 | 0

답변 있음
How to use indexing in complex structure
If you want the value of the arts field in the 10th element of out.elecs, you would say: out.elecs(10).arts

거의 3년 전 | 0

| 수락됨

답변 있음
Output argument 'fy' is not assigned on some execution paths
This function returns without assigning a value to fy (and M and rills) whenever u >= 0.436. if u>=0.436 fz=0; x1=0; ...

거의 3년 전 | 1

| 수락됨

더 보기