Réponse apportée
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;...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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 ...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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); ...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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 ...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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')

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Multiplication of array function
prod <https://www.mathworks.com/help/matlab/ref/prod.html>

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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 ...

presque 3 ans il y a | 0

| A accepté

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

presque 3 ans il y a | 1

Réponse apportée
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.

presque 3 ans il y a | 0

Réponse apportée
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 ...

presque 3 ans il y a | 0

Réponse apportée
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)...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Replace values in matrix with NaNs?
Do this: B(isnan(A)) = NaN;

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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,...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Calculate Rotaion for referenceframe
data1 = readtable('Sources_in_SX_filtered_XKA_with_SX.csv'); data2 = readtable('Sources_in_XKA_filtered_XKA_with_SX.csv...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Charger plus