Sindar
University of Colorado Boulder
Followers: 0 Following: 0
統計
All
Feeds
回答済み
Highly Memory-Efficient Recursion
Do they need to be symbolic? That probably adds a decent cost Similarly, if you have many zeros, sparse matrices will store mor...
Highly Memory-Efficient Recursion
Do they need to be symbolic? That probably adds a decent cost Similarly, if you have many zeros, sparse matrices will store mor...
4年弱 前 | 0
回答済み
How to take 100 samples of a plot.
First, what are you actually doing with M, Xdot1, etc.? Currently, the code overwrites them each N_m loop, without doing anythin...
How to take 100 samples of a plot.
First, what are you actually doing with M, Xdot1, etc.? Currently, the code overwrites them each N_m loop, without doing anythin...
4年弱 前 | 0
| 採用済み
回答済み
Image Reconstruction using Radial Basis Function?
Some ideas for figuring out patches: % load an example (color) image corn_rgb = imread('corn.tif',2); % get pixel rows, pixel...
Image Reconstruction using Radial Basis Function?
Some ideas for figuring out patches: % load an example (color) image corn_rgb = imread('corn.tif',2); % get pixel rows, pixel...
4年弱 前 | 0
回答済み
How to create a plotmatrix from a cell?
A scatterplot matrix is for if you have several equally-sized columns that you want to plot against one another. That doesn't so...
How to create a plotmatrix from a cell?
A scatterplot matrix is for if you have several equally-sized columns that you want to plot against one another. That doesn't so...
4年弱 前 | 0
| 採用済み
回答済み
How can I put grouped stacked bar plots together in one figure?
Try commenting out line 19 in the function file: figure it is probably what's interfering with your attempts to create subplot...
How can I put grouped stacked bar plots together in one figure?
Try commenting out line 19 in the function file: figure it is probably what's interfering with your attempts to create subplot...
4年弱 前 | 1
| 採用済み
回答済み
Loading EEG files in a loop
pathforsetfiles = fullfile(direc,'YYY') list ={'04','05'} for counter = 1 : length(list) inp{counter} = list{counter} su...
Loading EEG files in a loop
pathforsetfiles = fullfile(direc,'YYY') list ={'04','05'} for counter = 1 : length(list) inp{counter} = list{counter} su...
4年弱 前 | 0
| 採用済み
回答済み
Import matrices with same name and dimensions from different Data
If you don't tell matlab what to do with the variables, it will simply overwrite them each time. There are a few options Stru...
Import matrices with same name and dimensions from different Data
If you don't tell matlab what to do with the variables, it will simply overwrite them each time. There are a few options Stru...
4年弱 前 | 0
回答済み
How to export a figure in Live Script?
Here's my wrapper function, with usage like save_myfig(gcf,'spectrum_1e12',{'png','fig'}) I've been using some variation for v...
How to export a figure in Live Script?
Here's my wrapper function, with usage like save_myfig(gcf,'spectrum_1e12',{'png','fig'}) I've been using some variation for v...
4年弱 前 | 0
回答済み
How can I get the averages of each day of multiple years?
Check out groupsummary, specifically this example and this input argument Also, this thread has some solutions related to leap ...
How can I get the averages of each day of multiple years?
Check out groupsummary, specifically this example and this input argument Also, this thread has some solutions related to leap ...
4年弱 前 | 1
回答済み
Large nutrient data sets - how to plot individual data not as a plotted line
plot(x,y,'.') will plot each data point as a point, no connection. If you'd like a different shape, see here
Large nutrient data sets - how to plot individual data not as a plotted line
plot(x,y,'.') will plot each data point as a point, no connection. If you'd like a different shape, see here
4年弱 前 | 0
| 採用済み
回答済み
Merge data by date
Check out groupsummary, specifically this example and this input argument
Merge data by date
Check out groupsummary, specifically this example and this input argument
4年弱 前 | 0
回答済み
Efficient Method for Multiple Gridded Interpolation
I don't know how fast it will be, but I think this'll work % lon and lat are read from a netcdf file lon = ncread('important_g...
Efficient Method for Multiple Gridded Interpolation
I don't know how fast it will be, but I think this'll work % lon and lat are read from a netcdf file lon = ncread('important_g...
4年弱 前 | 1
回答済み
'LineWidth' parameter not affecting marker thickness of animated line
According to the documentation, 'LineWidth' should change the markers as well, so it may be a bug. Regardless, try 'MarkerSize' ...
'LineWidth' parameter not affecting marker thickness of animated line
According to the documentation, 'LineWidth' should change the markers as well, so it may be a bug. Regardless, try 'MarkerSize' ...
4年弱 前 | 0
回答済み
how to add labels to the elements of a vector.
One option: store things in a table. This particular setup may not be the most efficient, but hopefully it helps you start: %...
how to add labels to the elements of a vector.
One option: store things in a table. This particular setup may not be the most efficient, but hopefully it helps you start: %...
4年弱 前 | 0
| 採用済み
回答済み
Find the equality of each value in the vector and cell array
% better test data A = {1;[];1;[1 4];3}; B = [1;4;10;4;3]; temp = zeros(length(B),1); for i=1:length(B) % isequal handl...
Find the equality of each value in the vector and cell array
% better test data A = {1;[];1;[1 4];3}; B = [1;4;10;4;3]; temp = zeros(length(B),1); for i=1:length(B) % isequal handl...
約4年 前 | 0
| 採用済み
回答済み
Overwriting information in a cell array
Braces access cell contents, allowing you to update (in this case, appending to the end and hoping it's a compatible shape) Bra...
Overwriting information in a cell array
Braces access cell contents, allowing you to update (in this case, appending to the end and hoping it's a compatible shape) Bra...
約4年 前 | 0
| 採用済み
回答済み
Simulate single sine wave
Without the noisy signal? See sin documentation. With the signal (i.e. fitting to it), check out the answer to this question
Simulate single sine wave
Without the noisy signal? See sin documentation. With the signal (i.e. fitting to it), check out the answer to this question
約4年 前 | 0
回答済み
How can I fix "Index in position 2 exceeds array bounds" in for loop/ if statements?
Okay, I believe this code is equivalent to what you have, cleaner and without the error % pre-allocate with cell arrays of [] ...
How can I fix "Index in position 2 exceeds array bounds" in for loop/ if statements?
Okay, I believe this code is equivalent to what you have, cleaner and without the error % pre-allocate with cell arrays of [] ...
約4年 前 | 0
| 採用済み
回答済み
This is function to help
Whether this can be vectorized is really a question about SD. It's possible it works on columns straight off: Val = SD(VImage,Q...
This is function to help
Whether this can be vectorized is really a question about SD. It's possible it works on columns straight off: Val = SD(VImage,Q...
約4年 前 | 0
回答済み
What is missing from MATLAB #2 - the next decade edition
Ok, this is pretty minor, but: For common functions that return values as the first output and indices as the second, it would ...
What is missing from MATLAB #2 - the next decade edition
Ok, this is pretty minor, but: For common functions that return values as the first output and indices as the second, it would ...
約4年 前 | 2
回答済み
Indices of 2D array
data =[ 2 5 0 15 12 7 4 8 19 14 20 25 18 13 40 ]; reshaped_data = reshape(data,3...
Indices of 2D array
data =[ 2 5 0 15 12 7 4 8 19 14 20 25 18 13 40 ]; reshaped_data = reshape(data,3...
約4年 前 | 1
| 採用済み
回答済み
Potting graphs with if else and for
If it throws an error, please include that information. If that error is what I'm seeing: Error using plot. Vectors must be th...
Potting graphs with if else and for
If it throws an error, please include that information. If that error is what I'm seeing: Error using plot. Vectors must be th...
約4年 前 | 0
| 採用済み
回答済み
extracting information from tall timetable using a loop
Looks like you could do everything with groupsummary, assuming you can figure out how to define the bins G = groupsummary(TT,'T...
extracting information from tall timetable using a loop
Looks like you could do everything with groupsummary, assuming you can figure out how to define the bins G = groupsummary(TT,'T...
約4年 前 | 0
| 採用済み
回答済み
Trying to create a matrix by nesting a for loop in another for loop
No need for loops, except if effectiveness doesn't accept arrays % nx1 NTU = (2.5:0.1:3.5).'; for i=1:length(NTU) eff(i)...
Trying to create a matrix by nesting a for loop in another for loop
No need for loops, except if effectiveness doesn't accept arrays % nx1 NTU = (2.5:0.1:3.5).'; for i=1:length(NTU) eff(i)...
約4年 前 | 0
| 採用済み
回答済み
How to plot phase and amplitude spectrum after doing fft?
See this example for in angle documentation
How to plot phase and amplitude spectrum after doing fft?
See this example for in angle documentation
約4年 前 | 0
回答済み
Convert from cell of a table to an array
It gets tricky with different variable types and widths, but hopefully this helps. Worst case, you build up the new table elemen...
Convert from cell of a table to an array
It gets tricky with different variable types and widths, but hopefully this helps. Worst case, you build up the new table elemen...
約4年 前 | 0
| 採用済み
回答済み
CREATE HISTOGRAMM WITH A SPECIFIC NUMBER OF CLUSTERS IN X AXIS
histogram: x = randn(1000,1); nbins = 5; h = histogram(x,nbins)
CREATE HISTOGRAMM WITH A SPECIFIC NUMBER OF CLUSTERS IN X AXIS
histogram: x = randn(1000,1); nbins = 5; h = histogram(x,nbins)
約4年 前 | 0
回答済み
Z must be a matrix, not scalar or vector - SURF
struct array is a terrible way to store this data. Does this do it? tbl = struct2table(b); surf(tbl.temperature,tbl.humidity,t...
Z must be a matrix, not scalar or vector - SURF
struct array is a terrible way to store this data. Does this do it? tbl = struct2table(b); surf(tbl.temperature,tbl.humidity,t...
約4年 前 | 0
| 採用済み
回答済み
Projectile motion using while loop Time of flight
Basically, the issue is that you are only updating a small portion of the relevant variables each time step. A few questions Is...
Projectile motion using while loop Time of flight
Basically, the issue is that you are only updating a small portion of the relevant variables each time step. A few questions Is...
約4年 前 | 0
| 採用済み