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

casi 3 años hace | 1

| aceptada

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

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

casi 3 años hace | 0

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

casi 3 años hace | 0

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

casi 3 años hace | 1

| aceptada

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

casi 3 años hace | 0

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

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

casi 3 años hace | 0

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

casi 3 años hace | 0

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

casi 3 años hace | 1

| aceptada

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

casi 3 años hace | 1

| aceptada

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 1

| aceptada

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 1

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

casi 3 años hace | 0

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

casi 3 años hace | 0

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

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

casi 3 años hace | 1

| aceptada

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

casi 3 años hace | 1

| aceptada

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

casi 3 años hace | 0

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

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

casi 3 años hace | 0

| aceptada

Cargar más