Feeds
답변 있음
Pleae i can solve this error broblem
Inside the code line 48 you find this part: a*s*h(a4+a1)*dt*dE % ^ here There is a missing operator after the variable h. ...
Pleae i can solve this error broblem
Inside the code line 48 you find this part: a*s*h(a4+a1)*dt*dE % ^ here There is a missing operator after the variable h. ...
6일 전 | 1
답변 있음
Loss of precision in wave equations
The sum is numerically instable. So your observation is expected. Beside the symbolic toolbox oder a toolbox for arbitrary pres...
Loss of precision in wave equations
The sum is numerically instable. So your observation is expected. Beside the symbolic toolbox oder a toolbox for arbitrary pres...
6일 전 | 0
답변 있음
Why does pcolor not display the full matrix?
c = [1, 2, 3; 4, 5, 6; 7, 8, 9]; x = [1, 2, 4]; y = [1, 3, 4]; H = pcolor(x, y, c); Fine. PCOLOR does exactly, what it is wa...
Why does pcolor not display the full matrix?
c = [1, 2, 3; 4, 5, 6; 7, 8, 9]; x = [1, 2, 4]; y = [1, 3, 4]; H = pcolor(x, y, c); Fine. PCOLOR does exactly, what it is wa...
22일 전 | 0
답변 있음
I want to smooth curve matlab
Exporting a diagram as EPS or PDF creates a vector image, which is sharp even if you magnify it. You might want to use a famous...
I want to smooth curve matlab
Exporting a diagram as EPS or PDF creates a vector image, which is sharp even if you magnify it. You might want to use a famous...
22일 전 | 0
답변 있음
check if a file exists
Starting in R2017b, you can use the "isfile" function to check if a file exists. For example: if isfile(filename) % File exists....
check if a file exists
Starting in R2017b, you can use the "isfile" function to check if a file exists. For example: if isfile(filename) % File exists....
1년 초과 전 | 64
| 수락됨
답변 있음
Cell conversion to double
To convert a cell array of character vectors to numbers, you can use the |str2double| function. This function is the simplest me...
Cell conversion to double
To convert a cell array of character vectors to numbers, you can use the |str2double| function. This function is the simplest me...
1년 초과 전 | 35
| 수락됨
질문
How to write ASCII to byte file?
In MATLB versions until R2021a I could write ASCII values stored in a CHAR array into a string as unsigned char by: data = char...
1년 초과 전 | 답변 수: 3 | 2
3
답변답변 있음
Trying to ammend pathdef.m using the Set Path button on the Home bar.
If you want to modify the pathdef.m file for all users of the computer, start Matlab with admin or root privileges. Then overwri...
Trying to ammend pathdef.m using the Set Path button on the Home bar.
If you want to modify the pathdef.m file for all users of the computer, start Matlab with admin or root privileges. Then overwri...
2년 초과 전 | 0
답변 있음
need a script to rename and resort TIF files
Folder = 'C:\Users\Desktop\New folder\'; Files = dir(fullfile(Folder, '*.tif')); Keys = {'A', 'B'}; [~, name] = filepart...
need a script to rename and resort TIF files
Folder = 'C:\Users\Desktop\New folder\'; Files = dir(fullfile(Folder, '*.tif')); Keys = {'A', 'B'}; [~, name] = filepart...
2년 초과 전 | 0
| 수락됨
답변 있음
How to inclusively extract rows of a large cell array between cells given start and end patterns?
Why do you want to avoid loops? Reading the file completely to apply vectorized methods requires 8 GB of contiguous free RAM for...
How to inclusively extract rows of a large cell array between cells given start and end patterns?
Why do you want to avoid loops? Reading the file completely to apply vectorized methods requires 8 GB of contiguous free RAM for...
2년 초과 전 | 1
답변 있음
Find index of cells containing my string
Do you want to search for 'bla' within the text in each element of the cell array, or for elements that are 'bla' exactly? If yo...
Find index of cells containing my string
Do you want to search for 'bla' within the text in each element of the cell array, or for elements that are 'bla' exactly? If yo...
2년 초과 전 | 119
| 수락됨
답변 있음
Can I generalize a folder lookup location so that data can be accessed in more than one way?
The core of the problem is a messed up storage of files in a bunch of folders. Collecting the files in one shared folder would b...
Can I generalize a folder lookup location so that data can be accessed in more than one way?
The core of the problem is a messed up storage of files in a bunch of folders. Collecting the files in one shared folder would b...
2년 초과 전 | 0
답변 있음
How can I select two out of 6 points for every page without loops?
n = 2; X = randi(40, 6, 3, n) mask = all(X >= 0 & X <= 30, 2) Y = reshape(X(cat(2, mask, mask, mask)), [], 3)
How can I select two out of 6 points for every page without loops?
n = 2; X = randi(40, 6, 3, n) mask = all(X >= 0 & X <= 30, 2) Y = reshape(X(cat(2, mask, mask, mask)), [], 3)
2년 초과 전 | 0
| 수락됨
답변 있음
using feval or not?
I do not see problems with using feval. There have been a speed penalty in old versions, as far as I remember R2009a. But now t...
using feval or not?
I do not see problems with using feval. There have been a speed penalty in old versions, as far as I remember R2009a. But now t...
2년 초과 전 | 0
| 수락됨
답변 있음
save matrix command works sometimes and sometimes gives error
Avoid strcat to create a folder name, but use fullfile, which cares for the correct separators. A try/catch block is the way to...
save matrix command works sometimes and sometimes gives error
Avoid strcat to create a folder name, but use fullfile, which cares for the correct separators. A try/catch block is the way to...
2년 초과 전 | 0
답변 있음
Integration time step in ODE45 Matlab
The output time interval is the integration interval, so you can grab it e.g. in the outputfcn.
Integration time step in ODE45 Matlab
The output time interval is the integration interval, so you can grab it e.g. in the outputfcn.
2년 초과 전 | 0
답변 있음
Warning: Single line Edit Controls can not have multi-line text
res is a numerical array. You cannot insert it as string in handles.edit5. Display an image in an axes as image object.
Warning: Single line Edit Controls can not have multi-line text
res is a numerical array. You cannot insert it as string in handles.edit5. Display an image in an axes as image object.
2년 초과 전 | 0
답변 있음
Why Euler's number e = 2.71828... is not a built-in constant in MATLAB?
What an epic discussion. Some levels less sophisticated: I needed exp(1) in a line of code called very frequently. exp() is an ...
Why Euler's number e = 2.71828... is not a built-in constant in MATLAB?
What an epic discussion. Some levels less sophisticated: I needed exp(1) in a line of code called very frequently. exp() is an ...
2년 초과 전 | 0
답변 있음
How to produce 1 and -1 in MATLAB
Exactly 50% or randomly? x = randi([0, 1], 1, 2000) * 2 - 1; y = [ones(1, 1000), -ones(1, 1000)]; y = y(randperm(y));
How to produce 1 and -1 in MATLAB
Exactly 50% or randomly? x = randi([0, 1], 1, 2000) * 2 - 1; y = [ones(1, 1000), -ones(1, 1000)]; y = y(randperm(y));
2년 초과 전 | 1
답변 있음
Delete every nth element in array and increasing 1 NaN value per new row
Array = [1,2,3,4,5,6,7,8,9,10]; n = numel(Array); Out = nan(n - 2, n); for k = 2:n - 1 Out(k-1, 1:k:n) = Array(1:k...
Delete every nth element in array and increasing 1 NaN value per new row
Array = [1,2,3,4,5,6,7,8,9,10]; n = numel(Array); Out = nan(n - 2, n); for k = 2:n - 1 Out(k-1, 1:k:n) = Array(1:k...
2년 초과 전 | 0
| 수락됨
답변 있음
How should I recover.m file of the function in the toolbox?
You can ask a colleage for the original file. Of course with some tricks you can find a way to type the file here in the forum a...
How should I recover.m file of the function in the toolbox?
You can ask a colleage for the original file. Of course with some tricks you can find a way to type the file here in the forum a...
2년 초과 전 | 0
| 수락됨
답변 있음
delete special characters (\ / : * " < > |) in char
name_1 = '<Hello World>'; name_1 = erase(name_1, ["<", ">", "\", "/", ":", "*", """", "|"])
delete special characters (\ / : * " < > |) in char
name_1 = '<Hello World>'; name_1 = erase(name_1, ["<", ">", "\", "/", ":", "*", """", "|"])
2년 초과 전 | 1
답변 있음
Memory efficient alternative to sprandsym?
It would be useful to create the input by some commands in the example, such that the readers can run the code without your file...
Memory efficient alternative to sprandsym?
It would be useful to create the input by some commands in the example, such that the readers can run the code without your file...
2년 초과 전 | 0
답변 있음
Why do I keep getting this error for subplot? Am I missing a toolbox or is the code wrong?
Please read the documentation of the command: subplot or doc subplot You call this command like subplot(m,n,p), where m and n...
Why do I keep getting this error for subplot? Am I missing a toolbox or is the code wrong?
Please read the documentation of the command: subplot or doc subplot You call this command like subplot(m,n,p), where m and n...
거의 3년 전 | 0
답변 있음
Nested mean function with omitnan
The problem is here: "What I would have expected would be the same as". This is not the way mean('omitnan') is working. So if yo...
Nested mean function with omitnan
The problem is here: "What I would have expected would be the same as". This is not the way mean('omitnan') is working. So if yo...
거의 3년 전 | 1
| 수락됨
답변 있음
No out of memory error but matlab crash
It is expected, that creating a bunch of large arrays (1st example) crash an application. You cannot do much gainst it, because ...
No out of memory error but matlab crash
It is expected, that creating a bunch of large arrays (1st example) crash an application. You cannot do much gainst it, because ...
거의 3년 전 | 1
답변 있음
How can I output a value in an array, exactly as it is.
01 is no valid notation of a number. Numerically leading zeros are not existing. Zeros multiplied by a power of ten are still ze...
How can I output a value in an array, exactly as it is.
01 is no valid notation of a number. Numerically leading zeros are not existing. Zeros multiplied by a power of ten are still ze...
거의 3년 전 | 2











