Community Profile

photo

Benjamin


Last seen: Today 2013 以来アクティブ

Statistics

All
  • Treasure Hunt Participant
  • Thankful Level 1
  • Revival Level 4
  • Commenter
  • Leader
  • Pro
  • Knowledgeable Level 4
  • Promoter
  • Scholar
  • 3 Month Streak
  • CUP Challenge Master
  • Introduction to MATLAB Master

バッジを表示

Content Feed

表示方法

回答済み
How can I use the Bisection method to converge on an arbitrary value?
In fact your loop runs 0 times (because v(xr) is not equal to 100). % Define function R = 4; v = @(x) pi.*x.^2.*((3.*R-x)./3)...

44分 前 | 0

回答済み
How to enter the path of the folder that has the raw data to be analyzed
The problem is that dir() returns an empty struct array because the directory you gave it doesn't exist. You can fix this by gi...

約2時間 前 | 0

回答済み
How to plot x^3-4x^2+1 without setting the domain?
"4x" is not a valid expression. "4*x" is. fplot(@(x) x.^3+4*x.^2+1)

約2時間 前 | 0

| 採用済み

回答済み
Delete Vector Element but Keep Vector Length
Note that using NaN's in a vector you're plotting is useful to show that something is missing: X = [0,1,2,3,4,5,6,7,8,9,10]; Y...

約3時間 前 | 0

回答済み
How can I read this text file in MATLAB?
If your version of MATLAB is R2019a or newer you can use readmatrix(): A = readmatrix('N3-1.txt') % make sure we got it all: ...

約3時間 前 | 0

回答済み
Save array values separetly in cells during a for loop
You cannot convert a numeric matrix to a cell array in-place like that, but you can make a new cell array variable and do it: q...

約4時間 前 | 0

回答済み
How to plot two matrices overlapping in the same figure with transparent color?
Here are two methods to do it (the second one is probably easier). Step 0, load data and prepare the variables: %Load/read dat...

約4時間 前 | 0

回答済み
Is it possible to use the "contains" function on a table in Excel? I keep getting the following: "Error using contains. First argument must be text."
I didn't have the function importdata() you're using to read the file, so I made a guess at what it does and adjusted the syntax...

約5時間 前 | 0

| 採用済み

回答済み
Plotting a Graph From a Cell Array
First, check out the data: load('A.mat') whos Kappa_x_num{1,1} Then, do some counting: [m,n] = size(Kappa_x_num); max_valu...

約6時間 前 | 1

| 採用済み

回答済み
How do I find the index of the first occurance of a string in a cell array?
person_1 = { ... 1 99 0.04 pi/4 1e6; % run times "Ball Glitch" "Some other event" "Basket Glitch" "Basket Glitch" "Bal...

約6時間 前 | 0

回答済み
Read a 3D matrix from Excel file
I think a 2D matrix is the way to go, since you have one value for each (x,y) point. Here are some ways you might visualize you...

約6時間 前 | 0

| 採用済み

回答済み
Delete rows from a cell array based on key words
data = { ... '6440.016' 'hold'; ... '7378.016' 'max-pressure-evac 60.0'; ... '8372.016' 'max-pressure-evac 60.0';...

約7時間 前 | 0

| 採用済み

回答済み
Apply colormap of one surface to another
You can specify the color of a surface separately from the z-values, using the fourth input argument C. First, the default: col...

約7時間 前 | 0

回答済み
The sum of elements by multiplying two different vectors
a = 1:10; t = 0:0.001:1; b = zeros(size(t)); % it is known that b is to be the same size as t for n = 1:numel(a) b = b +...

約8時間 前 | 0

回答済み
Replace a matrix on a text file
You can do this using the low-level file I/O functions fopen(), fread(), fprintf(), and fclose(). An example of how to do it: ...

約8時間 前 | 0

| 採用済み

回答済み
Create a Vector based on the Value of another Vector
u_permno = unique(permno); N = numel(u_permno); date_vectors = cell(1,N); price_vectors = cell(1,N); for ii = 1:N i...

約9時間 前 | 0

回答済み
How to plot a curve with 3 points?
You can plot those three points and connect them with line segments using the plot() function: x= [1.2 1.5 1.9]; y=[5.5e15 9.9...

約9時間 前 | 0

回答済み
Format adjustment for combination of line and area figures
To get the grids on top of the areas, set the 'Layer' property of the axes to 'Top': figure() area([0.2:0.1:0.9 0.98]+0.02,[11...

約9時間 前 | 0

| 採用済み

回答済み
How to get average for each row in a cell array containing multiple matrices?
load('Hurst.mat'); To average the matrices in each cell in Hurst: cellfun(@mean,Hurst) To average the matrices in each cell i...

約22時間 前 | 0

回答済み
How to make a function generate random outputs using variables with given values?
t = linspace(0,2.*pi,1000); x = 4.*cos(t).*sin(2.*t).*cos(10*t); y = 7.*sin(t).*cos(3.*t); z = t; N = 3; figh = zeros(1,N);...

2日 前 | 0

回答済み
Extracting the mean of 2nd column based on unique 1st column values.
Here are two similar methods that produce identical results: SINR_tmp = [ ... 1 22.6391; ... 1 22.6357; ... 1 22...

2日 前 | 0

| 採用済み

回答済み
using accumarray to combine text
Does this do what you want? tdata = table([ 1 2 2 3 4 2]', ["a","b","c","d","e","f"]', 'VariableNames',{'EBID','Name'}); [uniq...

2日 前 | 0

回答済み
Question about using ismembertol function
Note that 10e-3 = 1e-2. Maybe that is the problem A=[11538.0882247944, 21569.4133365453] B=[11537.6120343925, 21611.5704794796...

3日 前 | 0

回答済み
How to filter data from columns and extract corresponding x-values in excel files?
Here are some ways to do this, depending on exactly what you want to do. "Filtering" on column B only: % data = xlsread('Sampl...

3日 前 | 1

| 採用済み

回答済み
Delete m consecutive rows every n rows
Here's one way to do it, with a matrix. The logic would be the same for a table. m = 6; n = 24; N = 87; data = (1:N).'+(0:...

3日 前 | 1

| 採用済み

回答済み
How to use variable names/strings in a For cycle
Here is how you can do it: matrix = magic(5); for i = 1:5 eval(['B' num2str(i) '=matrix(:,' num2str(i) ');']); end wh...

3日 前 | 0

回答済み
how to generate ramp signals at different sampling frequencies.
fs1 = 10; % sampling frequency 10 Hz (very low, so the individual samples can be seen in the plot) t1 = -1:1/fs1:1; r1 = t1.*(...

3日 前 | 0

回答済み
Incorrect number of input arguments
It doesn't make sense to pass your legend to the title() function. You can remove it: lgd_1 = legend(app.UIAxes,'dTdhw(°C)','VD...

3日 前 | 0

| 採用済み

回答済み
Research of an element in an array
Perhaps you mean to do this: disp ('Ricerca elemento X nel vettore somma S') X=input ('X'); K = find(S==X); if ~isempty(K) ...

4日 前 | 0

| 採用済み

回答済み
How to create an output excel file after using uitgetfile to select multiple files?
Collect each file's "Sum" in a cell array inside the loop, and then write it to file after the loop: [file_list,path_name] = ui...

4日 前 | 0

| 採用済み

もっと読み込む