回答済み
Why am I getting zeros
Latty = [38; 39; 37; 40; 39; 36; 39; 39; 38; 40; 35; 37; 38; 40; 40; 37; 36; 36; 39; 36; 40; 35; 39; 35; 39; 39; 35; 38; 39; 38;...

3年弱 前 | 1

| 採用済み

回答済み
Fill a matrix from a matrix of indices
Something like this? load my_flow.mat load mask.mat load IJ.mat % visualize mask and I2/J2 p = pcolor(mask); p.EdgeColor...

3年弱 前 | 0

| 採用済み

回答済み
Help with creating an array from two smaller arrays in a for loop
L = 8; n = 12; X1 = linspace(0,L/2,n/2); X2 = linspace(L/2,L,n/2); Mx1 = 25.*X1; Mx2 = 25.*X2 - 50.*(X2-4); Fv = [Mx1 ...

3年弱 前 | 0

| 採用済み

回答済み
Missing counts during histcount?
I suspect that the data you are using histcounts on has elements outside the range of bin edges you have specified. For example...

3年弱 前 | 0

回答済み
I am working with Galois field. I obtained all the 256 values, and now i want to make the matrix form of the obtained values.
clear all; close all; clc; m = 8; p = 2; prim_poly = p^8+p^6+p^5+p^1+p^0; a = gf(35, m, prim_poly); ...

3年弱 前 | 0

回答済み
why the plot does not appear in the axes, what did i do wrong?
energyConsumption is a scalar. Perhaps you meant to use cumtrapz instead of trapz. fr = 0.015; %Coeffcient of rolling resistanc...

3年弱 前 | 0

回答済み
Plot multiple variables from table with different x axes
ncol = size(Map1,2); for i=1:ncol/6 h=stairs(Map1.(sprintf('Distance_%d',i)),Map1.(sprintf('Ca_%d',i))); hold on end...

3年弱 前 | 1

| 採用済み

回答済み
Multiple moving points in an area with the given velocity
Here the start and end position of each point is random; therefore the trajectories and start-to-end distances are random, but s...

3年弱 前 | 0

回答済み
Associating numbers to a Vector and interpolating values in a Table?
t = array2table(reshape(1:3*36,3,[])) P_t = [250 400 550] P_new = [320 200] data_new = interp1(P_t, t{:,:}, P_new, 'lin...

3年弱 前 | 0

| 採用済み

回答済み
Adding clickable hyperlink to data tip label or plot point
"somehow I'd like to be able to click on a point and have it lead to a corresponding link" You can do that with the line's Butt...

3年弱 前 | 0

| 採用済み

回答済み
Find nth value in a matrix and plot on graph
Is something like this what you're trying to do? load VEX.mat % plot VEX figure plot(VEX,'b.') First, identity where VEX ...

3年弱 前 | 0

| 採用済み

回答済み
how can I show all my output plots from a script at the same time
Running this after your script might do what you want: % number of columns to arrange the figures in % (change this how you w...

3年弱 前 | 0

回答済み
GUI bug when updating editfield contents (loose focus)?
Setting handles.edit's ValueChangedFcn to @callback seems to resolve the problem (using R2017b; the problem is not observed in R...

3年弱 前 | 0

回答済み
I have a code but it keep saying "invalid expression. when calling a function or indexing a variable, use parentheses. otherwise check for mismatched delimiters.
You have 10 open parentheses "(" but only 9 close parentheses ")". I can't say for sure whether (or where) you need to remove...

3年弱 前 | 0

回答済み
How to merge values as given index in a single array
Use logical indexing: porindex1 = por<=0.47; %% por<=0.5 porindex2 = por>0.47&por<=0.63; %% por>0.47& por<=0.63 porin...

3年弱 前 | 1

| 採用済み

回答済み
legend repeating same color only after errorbar
Each call to errorbar() creates multiple errorbar objects in this case. To use only one of each color in the legend, store their...

3年弱 前 | 1

| 採用済み

回答済み
Why do I keep getting "Error using plot Invalid data argument."
Linespec (style, color, marker) should be specified as a single argument: plot(time,Tc, 'rd')

3年弱 前 | 0

| 採用済み

回答済み
Multiplication of array function
prod <https://www.mathworks.com/help/matlab/ref/prod.html>

3年弱 前 | 1

| 採用済み

回答済み
Stop opening a figure window while using uiwait to pause a playing video in app designer
Use uiwait(app.UIFigure) and uiresume(app.UIFigure) (or whatever the handle to your app's uifigure is, if you ...

3年弱 前 | 0

| 採用済み

回答済み
How to generate matrix in MATLAB
N = 32; C = 33; P = exp(1j*2*pi/C.*((0:N).'.*(0:C-1)))

3年弱 前 | 1

回答済み
Fixing missing part of a figure from a plot
Your xlim stop at 2022-07-15 23:59:59. Set it to 2022-07-16 00:00:00 instead.

3年弱 前 | 0

回答済み
App Designer table won't populate or auto-update
Assuming the Excel file doesn't already exist, you do this: writematrix(app.infoDesc,app.fullFileName,'Range','A1:D1'); Range ...

3年弱 前 | 0

回答済み
Can't add more x-axis ticks or number of x-axis elements displayed.
First, I'll try to reproduce something like your plot: TimeCol=datetime(datevec(now()+seconds(1800*(0:4)))); Value = rand(1,5)...

3年弱 前 | 0

| 採用済み

回答済み
Replace values in matrix with NaNs?
Do this: B(isnan(A)) = NaN;

3年弱 前 | 0

回答済み
read my data in wmsread
clear;close all; clc Tink_wms='https://nrt.cmems-du.eu/thredds/wms/global-analysis-forecast-bio-001-028-daily?request=GetCapa...

3年弱 前 | 1

| 採用済み

回答済み
Plotting simplenarx_dataset
simplenarx_dataset.mat is a mat-file; simplenarx_dataset.m is a function m-file. When you load simplenarx_dataset, you load the...

3年弱 前 | 1

| 採用済み

回答済み
How to read a website and download pdf files
URL = readtable('EPRI NMAC Repository.xlsx','Range','I2:K638'); % Load excel from specified sheet substr = 'Nuclear Maintenance...

3年弱 前 | 0

回答済み
How to replace values within for loop?
The line Fsim(Fsim<n_ins)=0; % Replace Fsim with 0 if less than installation height %%%%%%%%%%%%%%%%%%%% does what you intend,...

3年弱 前 | 0

| 採用済み

回答済み
Calculate Rotaion for referenceframe
data1 = readtable('Sources_in_SX_filtered_XKA_with_SX.csv'); data2 = readtable('Sources_in_XKA_filtered_XKA_with_SX.csv...

3年弱 前 | 0

回答済み
How to specify number of decimals in table2word or writematrix
A random matrix: M = rand(10,10); % matrix to write to file fn = 'example.csv'; % file to write to disp(M); % show the matr...

3年弱 前 | 0

| 採用済み

さらに読み込む