답변 있음
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;...

2년 초과 전 | 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...

2년 초과 전 | 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 ...

2년 초과 전 | 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...

2년 초과 전 | 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); ...

2년 초과 전 | 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...

2년 초과 전 | 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...

2년 초과 전 | 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...

2년 초과 전 | 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...

2년 초과 전 | 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...

2년 초과 전 | 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 ...

2년 초과 전 | 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...

2년 초과 전 | 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...

2년 초과 전 | 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...

2년 초과 전 | 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...

2년 초과 전 | 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...

2년 초과 전 | 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')

2년 초과 전 | 0

| 수락됨

답변 있음
Multiplication of array function
prod <https://www.mathworks.com/help/matlab/ref/prod.html>

2년 초과 전 | 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 ...

2년 초과 전 | 0

| 수락됨

답변 있음
How to generate matrix in MATLAB
N = 32; C = 33; P = exp(1j*2*pi/C.*((0:N).'.*(0:C-1)))

2년 초과 전 | 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.

2년 초과 전 | 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 ...

2년 초과 전 | 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)...

2년 초과 전 | 0

| 수락됨

답변 있음
Replace values in matrix with NaNs?
Do this: B(isnan(A)) = NaN;

2년 초과 전 | 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...

2년 초과 전 | 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...

2년 초과 전 | 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...

2년 초과 전 | 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,...

2년 초과 전 | 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...

2년 초과 전 | 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...

2년 초과 전 | 0

| 수락됨

더 보기