統計
All
Feeds
解決済み
Create a cell array out of a struct
Create a cell array out of a (single) struct with the fieldname in the first column and the value in the second column: in: ...
29日 前
解決済み
Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...
29日 前
解決済み
N-Dimensional Array Slice
Given an N-dimensional array, _A_, an index, _I_, and a dimension, _d_, return the _I_ th elements of _A_ in the _d_ dimension. ...
約1ヶ月 前
解決済み
Remove the air bubbles
Given a matrix a, return a matrix b in which all the zeros have "bubbled" to the top. That is, any zeros in a given column shoul...
約1ヶ月 前
回答済み
How to change output of matlabatch result in spm25
If you want to save a batch in SPM as an .m-script file instead of a .mat file, just select the .m file type in the "save job as...
How to change output of matlabatch result in spm25
If you want to save a batch in SPM as an .m-script file instead of a .mat file, just select the .m file type in the "save job as...
3ヶ月 前 | 0
解決済み
How to subtract?
*± ± ± ± ± ± ± ± ± ± ±* * Imagine you need to subtract one...
約1年 前
回答済み
I need to calculate the distance matrix between these locations in ev charging stations placement
Hi, let's say you have 10 2d coordinates of charging stations pos = rand(10,2); Then one efficient way of computing the dista...
I need to calculate the distance matrix between these locations in ev charging stations placement
Hi, let's say you have 10 2d coordinates of charging stations pos = rand(10,2); Then one efficient way of computing the dista...
約2年 前 | 1
回答済み
Interpolating the indexes of values in a Vector
Hi, use interp1(): a = [2 4 6 8 10 12 14 16]; b = [6, 5, 4.5, 14.3]; interp1(a,1:numel(a),b,'linear') % 'linear' is also the...
Interpolating the indexes of values in a Vector
Hi, use interp1(): a = [2 4 6 8 10 12 14 16]; b = [6, 5, 4.5, 14.3]; interp1(a,1:numel(a),b,'linear') % 'linear' is also the...
2年以上 前 | 0
回答済み
How to save and load all the states of checkboxes and etc
Hi Ron, here is something I recently used in an App Designer GUI: The App needs a property 'config' and the following method...
How to save and load all the states of checkboxes and etc
Hi Ron, here is something I recently used in an App Designer GUI: The App needs a property 'config' and the following method...
3年以上 前 | 0
| 採用済み
回答済み
How to populate a new vector by extracting only certain elements from another vector?
Hi Loren, if understood your question correctly, this should do what you want: load('reticolo2D.mat'); [Xpix, Ypix] = meshgri...
How to populate a new vector by extracting only certain elements from another vector?
Hi Loren, if understood your question correctly, this should do what you want: load('reticolo2D.mat'); [Xpix, Ypix] = meshgri...
3年以上 前 | 0
| 採用済み
回答済み
How to filter an entire dataset of ecg signals
Hi basically, you already described what to do: use load to import the data use designfilt to get filter parameters --- EDIT:...
How to filter an entire dataset of ecg signals
Hi basically, you already described what to do: use load to import the data use designfilt to get filter parameters --- EDIT:...
3年以上 前 | 0
| 採用済み
回答済み
View and Commit Changes dialog is blank
Hi I had the same problem with 2020b (win10) when using 2 displays with the main matlab windows moved to the secondary displa...
View and Commit Changes dialog is blank
Hi I had the same problem with 2020b (win10) when using 2 displays with the main matlab windows moved to the secondary displa...
3年以上 前 | 1
回答済み
reading multiple text file from two different folders using nested for loop
Hi Salma It depends on what exactly you want to do with the data in the text files, but reading the file line by line seems to ...
reading multiple text file from two different folders using nested for loop
Hi Salma It depends on what exactly you want to do with the data in the text files, but reading the file line by line seems to ...
3年以上 前 | 0
回答済み
Getting camera viewing data in real time
Hi, you can link the Camera-properties of the axes: figure; ah(1) = axes; figure; ah(2) = axes; plot3(ah(1),rand(10,1),rand(...
Getting camera viewing data in real time
Hi, you can link the Camera-properties of the axes: figure; ah(1) = axes; figure; ah(2) = axes; plot3(ah(1),rand(10,1),rand(...
4年弱 前 | 1
| 採用済み
回答済み
Randomly generate a vector containing integers. Extract items from odd positions using a single command line
Hi Dacian, indexing an expression (e.g. randi(100,10,1)(1:2:9)) is not possible in Matlab. Here is a workaround using groupsum...
Randomly generate a vector containing integers. Extract items from odd positions using a single command line
Hi Dacian, indexing an expression (e.g. randi(100,10,1)(1:2:9)) is not possible in Matlab. Here is a workaround using groupsum...
4年弱 前 | 0
| 採用済み
送信済み
PyColormap4Matlab
Simple Matlab and python script that import colormaps from matplotlib into Matlab.
4年弱 前 | ダウンロード 20 件 |
回答済み
How to open .hdr files (paired with zipped .img files)
Hi David, hdrread is not for radiological images but for high dynamic range images. You are dealing with the nifti file format...
How to open .hdr files (paired with zipped .img files)
Hi David, hdrread is not for radiological images but for high dynamic range images. You are dealing with the nifti file format...
4年弱 前 | 0
| 採用済み
回答済み
find the average pixel value of matrix of images
Hi Michael, allImages{i} = ... creates a cell-array containing the images. If your images are all grayscale and of the same si...
find the average pixel value of matrix of images
Hi Michael, allImages{i} = ... creates a cell-array containing the images. If your images are all grayscale and of the same si...
約4年 前 | 0
回答済み
How to call python Script in specified environment in Matlab?
Hi, please see this answer by Walter. I think pyenv() affects only python calls using the py.-prefix. But calling python via s...
How to call python Script in specified environment in Matlab?
Hi, please see this answer by Walter. I think pyenv() affects only python calls using the py.-prefix. But calling python via s...
約4年 前 | 1
| 採用済み
回答済み
How to recenter spatial data?
hi, maybe I didn't get it, but why not just add 180? lonW = lon + 180;
How to recenter spatial data?
hi, maybe I didn't get it, but why not just add 180? lonW = lon + 180;
約4年 前 | 0
| 採用済み
回答済み
Precision of numbers problem (I think)
Hi Phillip, yes, it has to do with precision. ismember(phys_diffs,new_data(:,2)) % ans = % 1×7 logical array % 1 0 ...
Precision of numbers problem (I think)
Hi Phillip, yes, it has to do with precision. ismember(phys_diffs,new_data(:,2)) % ans = % 1×7 logical array % 1 0 ...
約4年 前 | 0
回答済み
Mean and median at each interval
Hi data = readtable('Data.xlsx'); % read data data = data(~ismember(data.Volume,[0 1]),:); % exclude rows where volume=0 or vo...
Mean and median at each interval
Hi data = readtable('Data.xlsx'); % read data data = data(~ismember(data.Volume,[0 1]),:); % exclude rows where volume=0 or vo...
約4年 前 | 0
| 採用済み
回答済み
Auto update row index to match the variable length
Hi you can use b(1:numel(a),k) = a if k is scalar. Best, K
Auto update row index to match the variable length
Hi you can use b(1:numel(a),k) = a if k is scalar. Best, K
約4年 前 | 0
回答済み
Wie kann ich einen unbekannten String in einem Array finden? | finding an unknown string in an string array
Hi Patrick wenn ich richtig verstehe möchtest Du alle strings im array finden die mit * anfangen?! Das kannst Du so machen: st...
Wie kann ich einen unbekannten String in einem Array finden? | finding an unknown string in an string array
Hi Patrick wenn ich richtig verstehe möchtest Du alle strings im array finden die mit * anfangen?! Das kannst Du so machen: st...
約4年 前 | 0
| 採用済み
回答済み
String to number from array
Hi Nicle you need str2double() (or str2num()), not double(). double() gives you the UTF(?) code corresponding to the input st...
String to number from array
Hi Nicle you need str2double() (or str2num()), not double(). double() gives you the UTF(?) code corresponding to the input st...
4年以上 前 | 1
| 採用済み
回答済み
I need some help with calculating volume on MATLAB.
Did you already took a look at this: https://de.mathworks.com/matlabcentral/answers/543447-volume-of-stl-files#answer_447248 ?...
I need some help with calculating volume on MATLAB.
Did you already took a look at this: https://de.mathworks.com/matlabcentral/answers/543447-volume-of-stl-files#answer_447248 ?...
4年以上 前 | 0
| 採用済み
回答済み
Why am I getting wrong outputs with this MATLAB code?
Hi, i've rewritten the code without all the hard-coded indices, which I couldn't make sense of and which made your code very ha...
Why am I getting wrong outputs with this MATLAB code?
Hi, i've rewritten the code without all the hard-coded indices, which I couldn't make sense of and which made your code very ha...
4年以上 前 | 0
回答済み
enter a string of characters and numbers, add and return the sum of the numbers in matlab, for example: 'there are two blue birds and 4 red birds on the branch'--> return 6
Hi if you only need to handle numeric type, I'd recommend regular expressions: strng = ' 2 blue birds and 4 red birds'; res_s...
enter a string of characters and numbers, add and return the sum of the numbers in matlab, for example: 'there are two blue birds and 4 red birds on the branch'--> return 6
Hi if you only need to handle numeric type, I'd recommend regular expressions: strng = ' 2 blue birds and 4 red birds'; res_s...
4年以上 前 | 0
回答済み
Get values of the particular line from surf plot
Hi Ramesh, the contour3() function returns the contour matrix (see help) containing x- and y-coordinates of the contour. You ca...
Get values of the particular line from surf plot
Hi Ramesh, the contour3() function returns the contour matrix (see help) containing x- and y-coordinates of the contour. You ca...
4年以上 前 | 1
| 採用済み









