Beantwortet
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;...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
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...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
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 ...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 3 Jahre vor | 0

Beantwortet
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); ...

fast 3 Jahre vor | 0

Beantwortet
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...

fast 3 Jahre vor | 0

Beantwortet
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...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
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...

fast 3 Jahre vor | 0

Beantwortet
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...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
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 ...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 3 Jahre vor | 0

Beantwortet
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...

fast 3 Jahre vor | 0

Beantwortet
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...

fast 3 Jahre vor | 0

Beantwortet
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...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
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...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
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')

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Multiplication of array function
prod <https://www.mathworks.com/help/matlab/ref/prod.html>

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
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 ...

fast 3 Jahre vor | 0

| akzeptiert

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

fast 3 Jahre vor | 1

Beantwortet
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.

fast 3 Jahre vor | 0

Beantwortet
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 ...

fast 3 Jahre vor | 0

Beantwortet
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)...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Replace values in matrix with NaNs?
Do this: B(isnan(A)) = NaN;

fast 3 Jahre vor | 0

Beantwortet
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...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
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...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
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...

fast 3 Jahre vor | 0

Beantwortet
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,...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Calculate Rotaion for referenceframe
data1 = readtable('Sources_in_SX_filtered_XKA_with_SX.csv'); data2 = readtable('Sources_in_XKA_filtered_XKA_with_SX.csv...

fast 3 Jahre vor | 0

Beantwortet
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...

fast 3 Jahre vor | 0

| akzeptiert

Mehr laden