回答済み
help me to Showing the Cloud !
I have no idea what your question is, but you need to completely rethink the way you write your formula. There's no way you can ...

6年以上 前 | 0

回答済み
I'm trying to use fprinft in title because when i use the sprintf function it has way too many decimals. I keep getting error messages and i dont know how to fix them
"I keep getting error messages" Then read the doc of the functions you use, in particular pay close attention to what the input...

6年以上 前 | 0

回答済み
Run this code for every certain columns of tables in a cell and saving the result in new cell
Whatever the calculation is, yes it can be done with groupsummary. As Fred wrote, you will first have to write a function to per...

6年以上 前 | 2

回答済み
match row column of matrix
A = [1 23 2 54 3 76 4 67 5 23]; B = [4;3]; result = A(ismember(A(:, 1), B), :) %keep the rows ...

6年以上 前 | 0

| 採用済み

回答済み
Why wont this run? "Array indices must be positive integers or logical values."
"Why wont this run? "Array indices must be positive integers or logical values." The clue is in the error message. Array indice...

6年以上 前 | 0

回答済み
Readtable, problems reading identically structured data files
There is something odd with the first few rows of your 2nd file that I haven't worked out yet. In theory, T = readtable(filenam...

6年以上 前 | 1

回答済み
how to calculate deviation for set of values??
You could do the same thing you've done for the mean, use a for loop. However, a much simpler way is to reshape your input vect...

6年以上 前 | 0

| 採用済み

回答済み
Unrecognized function of variable 'R'.
Functions have their own workspace, that's the whole points of function. If the function needs R and C, they need to be inputs t...

6年以上 前 | 0

回答済み
How to calculate some statistical moments for every cell of a cell array?
"GD should be the answer of pdf function. not all zero." Ah, I thought you were complaining about the size of the output, not i...

6年以上 前 | 0

回答済み
table on workspace isn't recognized as table
"Soo, I assume I should have written class(data)" No, if you'd followed my instruction, when the error occured matlab should ha...

6年以上 前 | 0

| 採用済み

回答済み
Pause when there is an output
1) Create your own fprintf function in a folder on the path (e.g. local folder) with code similar to: function nbytes = fprintf...

6年以上 前 | 0

| 採用済み

回答済み
Array of properties of an array of objects
"Is there a way, by changing the class itself, to get an array of 'x'-Properties instead of a comma-separated list?" Not really...

6年以上 前 | 0

回答済み
How can I get the row and column number of floating point numeric data from an ASCII file using GUI?
Assuming the number of lines in the header is constant (and equal to 46): readmatrix(fullpathname, 'NumHeaderLines', 46) %for ...

6年以上 前 | 0

回答済み
Creating table from Workspace variables within a for loop
See my comments to the question. Writing code that is easily understood is just as critical as writing code that works! Note th...

6年以上 前 | 0

| 採用済み

回答済み
Splitting a cell array of multi-word strings into a cell array of single-word strings
Possiblty more efficient than the accepted answer since it doesn't require concatenating strings to then split them again: Sing...

6年以上 前 | 1

回答済み
Create empty rows in a cell, based in a condition
Here's an efficient way, with a loop (cellfun) only over the missing elements, not the whole cell array. In addition if several ...

6年以上 前 | 1

| 採用済み

回答済み
how to convert a timetable to structure of timetables
table2struct(timetable2table(yourtimetable)) %or possibly table2struct(timetable2table(yourtimetable), 'ToScalar', true) Howe...

6年以上 前 | 0

| 採用済み

回答済み
Reverse arrangement test - 'undefined operator' error
First, a few things. Ideally, processing functions don't ask the user for input. It should be the job of the caller of the fun...

6年以上 前 | 0

回答済み
Error with undefined operators
The cause for the error is simple. In the file that doesn't work, at least one row of the APPRDX_enrol column contains non-numer...

6年以上 前 | 0

回答済み
Selecting rows based on number in first row and assigining it to a new variable name
The answer to your question is simple: don't do that This post explains the many reasons why it's a very bad idea to dynamicall...

6年以上 前 | 0

回答済み
Do I need to download Matlab 2020a again after getting the prereleased version?
Note that by downloading the pre-release you agreed not to publicly discuss it. pre-releases are indeed separate releases from...

6年以上 前 | 1

| 採用済み

回答済み
for loop in an array to substract the values of the array and find a specific value
If you are trying to find the indices X and Y for which I(X) - I(Y) is equal to a given values, this is easily done without a lo...

6年以上 前 | 0

| 採用済み

回答済み
How to extract the white parts from the binary image and save each white portions as a separate image
Use regionprops. In particular, the Image property returned by regionprops is the image of each blob. props = regionprops(youri...

6年以上 前 | 0

回答済み
Does matlab have any function that can compare multiple numbers and return logical value zero or one?
Assuming your input is a vector: all(diff(yourvector) == 0) is what you want: >> all(diff([2, 3, 4]) == 0) ans = logical ...

6年以上 前 | 0

回答済み
Fastest way to match elements in two vectors and return indices?
I haven't tried to fully understand your code. A few comments: Don't cd into directories. Use fullfile to build paths, so inste...

6年以上 前 | 0

回答済み
How to load a 3D volume image file (.vol extension) into MATLAB, edit individual 2D slices and save it back as a 3D image
From your information about the size of the volume and from the number of bytes in the file it would appear that it just contain...

6年以上 前 | 0

| 採用済み

回答済み
I want fill NaN in one column using average of two other column but I got an error.
The comparison operator for equality is == not =, which is exclusively for assignment. However, you need to be aware that a NaN...

6年以上 前 | 1

| 採用済み

回答済み
Ho do i insert 0 to a data based on a condition
Rather than removing the NaNs and trying to fill afterward wouldn't you be better served by replacing the NaNs using interpolati...

6年以上 前 | 0

回答済み
array exceeds limits when scanning serial info
I'm a bit confused by all the code you've posted. If I understood correctly the problem is with: in = char(zeros(1,14)); decis...

6年以上 前 | 0

| 採用済み

回答済み
How to say remove "-1" from the end of a string if exists?
easiest way is probably with: newarray = regexprep(yourstringarray, '-1$', ''); works with cell arrays of char vectors as well...

6年以上 前 | 2

さらに読み込む