photo

Jan


Last seen: 6 mois il y a Actif depuis 2009

Followers: 17   Following: 0

It is easier to solve a problem than to guess, what the problem is. Questions about FileExchange submissions are welcome - get my address from the code. I do not answer mails concerning questions in the forum.

Statistiques

All
MATLAB Answers

83 Questions
15 236 Réponses

File Exchange

52 Fichiers

Cody

0 Problèmes
85 Solutions

RANG
4
of 299 003

RÉPUTATION
41 513

CONTRIBUTIONS
83 Questions
15 236 Réponses

ACCEPTATION DE VOS RÉPONSES
79.52%

VOTES REÇUS
9 741

RANG
67 of 20 659

RÉPUTATION
13 166

CLASSEMENT MOYEN
4.80

CONTRIBUTIONS
52 Fichiers

TÉLÉCHARGEMENTS
205

ALL TIME TÉLÉCHARGEMENTS
117642

RANG
7 642
of 163 074

CONTRIBUTIONS
0 Problèmes
85 Solutions

SCORE
871

NOMBRE DE BADGES
3

CONTRIBUTIONS
0 Publications

CONTRIBUTIONS
0 Public Chaîne

CLASSEMENT MOYEN

CONTRIBUTIONS
0 Point fort

NOMBRE MOYEN DE LIKES

  • Most Accepted 2022
  • Most Accepted 2021
  • Promoter
  • Commenter
  • Explorer
  • Personal Best Downloads Level 4
  • Editor's Pick
  • First Review
  • 5-Star Galaxy Level 5
  • First Submission
  • Grand Master
  • Revival Level 4

Afficher les badges

Feeds

Afficher par

Réponse apportée
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....

7 mois il y a | 64

| A accepté

Réponse apportée
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...

7 mois il y a | 35

| A accepté

Question


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...

9 mois il y a | 3 réponses | 2

3

réponses

A soumis


WinPower
Shutdown, sleep, hibernate etc. of Windows computers

plus d'un an il y a | 1 téléchargement |

4.5 / 5

Réponse apportée
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...

plus d'un an il y a | 0

Réponse apportée
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...

plus d'un an il y a | 0

| A accepté

Réponse apportée
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...

plus d'un an il y a | 1

Réponse apportée
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...

presque 2 ans il y a | 118

| A accepté

Réponse apportée
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...

presque 2 ans il y a | 0

Réponse apportée
How do I close parallel button?
You can try: FEX: CmdWinTool CmdWinTool lean

presque 2 ans il y a | 2

Réponse apportée
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)

presque 2 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 2 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 2 ans il y a | 0

Réponse apportée
Integration time step in ODE45 Matlab
The output time interval is the integration interval, so you can grab it e.g. in the outputfcn.

presque 2 ans il y a | 0

Réponse apportée
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.

presque 2 ans il y a | 0

Réponse apportée
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 ...

presque 2 ans il y a | 0

Réponse apportée
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));

presque 2 ans il y a | 1

Réponse apportée
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...

presque 2 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 2 ans il y a | 0

| A accepté

Réponse apportée
delete special characters (\ / : * " < > |) in char
name_1 = '<Hello World>'; name_1 = erase(name_1, ["<", ">", "\", "/", ":", "*", """", "|"])

presque 2 ans il y a | 1

Réponse apportée
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...

presque 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
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 ...

plus de 2 ans il y a | 1

Réponse apportée
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...

plus de 2 ans il y a | 2

Réponse apportée
Unrecognized function or variable 'delta1'.
Exactly as the error message tells you: The variables or function "delta1" is not defined. Then this linemust fail: [x1, y1]=me...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Everytime i type in editor window, nothing comes out of the command window.
The editor is a tool to write scripts and functions. You save them as files, which can be called from other scripts or functions...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
How to assign a name for every result in every iteration by using for loop
This is a really bad idea. Hiding an index in the name of a variable is a complicated method, which requires even more complicat...

plus de 2 ans il y a | 1

Réponse apportée
i have this error and i can't solve it
The error message tells you: "X must have one or two columns". How many columns does your X have? Fs = 16000; % fréquence d'éch...

plus de 2 ans il y a | 0

Réponse apportée
Keep pairs of corresponding elements in 2 vectors based on conditions
orange = [212929;213223;213482;213740;214013;214790]; green = [212765;213301;213822;214090;214240;214426;214941]; [x, s] ...

plus de 2 ans il y a | 2

| A accepté

Charger plus