回答済み

lock first app if second is running

You can use waitfor in the main function and provide the handle of the uifigure. [EDITED] I assume, that https://www.mathwork...

lock first app if second is running

You can use waitfor in the main function and provide the handle of the uifigure. [EDITED] I assume, that https://www.mathwork...

約1ヶ月 前 | 0

| 採用済み

回答済み

How to introduce a phase shift to a existing vector

This is not possible, if you do not have additional information. You can apply a phase shift with a certain number of elements, ...

How to introduce a phase shift to a existing vector

This is not possible, if you do not have additional information. You can apply a phase shift with a certain number of elements, ...

約1ヶ月 前 | 1

回答済み

question regarding 'copyfile' function from folder to folder

This is exactly, what you find in the documentation. Please read: help copyfile doc copyfile [SUCCESS,MESSAGE,MESSAGEID] = ...

question regarding 'copyfile' function from folder to folder

This is exactly, what you find in the documentation. Please read: help copyfile doc copyfile [SUCCESS,MESSAGE,MESSAGEID] = ...

約1ヶ月 前 | 0

| 採用済み

回答済み

To take pictures from FLIR (Cx series) camera every 30 secs

Use a timer object and insert the code for taking a picture in its callback. doc timer

To take pictures from FLIR (Cx series) camera every 30 secs

Use a timer object and insert the code for taking a picture in its callback. doc timer

約2ヶ月 前 | 1

回答済み

Changing the name of a variable throughout the code but only want it to change in a section.

Copy the text block, which you want to modify, to a new editor window. Perform the wanted modifications. Copy the block back to ...

Changing the name of a variable throughout the code but only want it to change in a section.

Copy the text block, which you want to modify, to a new editor window. Perform the wanted modifications. Copy the block back to ...

約2ヶ月 前 | 0

回答済み

How can I use "system" command with input without typing myself all the input everytimes ?

Please take a look into the documentation of dammif: https://www.embl-hamburg.de/biosaxs/manuals/dammif.html Here you can see h...

How can I use "system" command with input without typing myself all the input everytimes ?

Please take a look into the documentation of dammif: https://www.embl-hamburg.de/biosaxs/manuals/dammif.html Here you can see h...

約2ヶ月 前 | 1

| 採用済み

回答済み

Efficient algorithm for a duplication matrix

For n=300 this needs 1.3 sec instead of 27.5 sec: tic m = n * (n + 1) / 2; nsq = n^2; D = spalloc(nsq, m, nsq); row = 1...

Efficient algorithm for a duplication matrix

For n=300 this needs 1.3 sec instead of 27.5 sec: tic m = n * (n + 1) / 2; nsq = n^2; D = spalloc(nsq, m, nsq); row = 1...

約2ヶ月 前 | 1

| 採用済み

回答済み

How to detect change in mean value of a signal

It is impossible to detect a change, if it occurs in the first or last few frames. Ist there only 1 change of the mean? Then f...

How to detect change in mean value of a signal

It is impossible to detect a change, if it occurs in the first or last few frames. Ist there only 1 change of the mean? Then f...

約2ヶ月 前 | 0

回答済み

How can I export only specific data from a text file to a matrix?

With some guessing, that you want the part behind ':Solar_Radio_Flux:' : Key = ':Solar_Radio_Flux:'; Str = fileread(FileName)...

How can I export only specific data from a text file to a matrix?

With some guessing, that you want the part behind ':Solar_Radio_Flux:' : Key = ':Solar_Radio_Flux:'; Str = fileread(FileName)...

約2ヶ月 前 | 0

| 採用済み

回答済み

Parse error help please

I guess, this line is failing: Jsx*der(wx) = (Fflz + Frlz)*w/2 - (Ffrz + Frrz)*w/2 + (Ffyv + Fry)*h; Yes, of course. In Matlab...

Parse error help please

I guess, this line is failing: Jsx*der(wx) = (Fflz + Frlz)*w/2 - (Ffrz + Frrz)*w/2 + (Ffyv + Fry)*h; Yes, of course. In Matlab...

約2ヶ月 前 | 0

回答済み

Alternative to delaunayn function supported by MATLAB coder for the C++ code generation

Matlab uses qhull for the calculation of delaunayn. qhull is a library written in C, see here: http://www.qhull.org/ So it shou...

Alternative to delaunayn function supported by MATLAB coder for the C++ code generation

Matlab uses qhull for the calculation of delaunayn. qhull is a library written in C, see here: http://www.qhull.org/ So it shou...

約2ヶ月 前 | 1

| 採用済み

回答済み

decrease the elapse time

The output of the profile is useful - thanks. The most time is spent here: [days(:,:,i), time(:,:,:,i), I(:,:,:,i), Ta(:,:,:,i...

decrease the elapse time

The output of the profile is useful - thanks. The most time is spent here: [days(:,:,i), time(:,:,:,i), I(:,:,:,i), Ta(:,:,:,i...

約2ヶ月 前 | 0

回答済み

How would I change the color of the angular axes without changing the color of the grid lines in polar plot

AxesH = polaraxes; theta = 0:0.01:2*pi; rho = sin(2*theta).*cos(2*theta); polarplot(AxesH, theta, rho) AxesH.GridColor...

How would I change the color of the angular axes without changing the color of the grid lines in polar plot

AxesH = polaraxes; theta = 0:0.01:2*pi; rho = sin(2*theta).*cos(2*theta); polarplot(AxesH, theta, rho) AxesH.GridColor...

約2ヶ月 前 | 0

回答済み

I do not understand why my code still gives me errors

Index exceeds the number of array elements (1). Error in RK (line 8) k(:,1)=feval(fun,t(j),y(:,j)); After the line: ...

I do not understand why my code still gives me errors

Index exceeds the number of array elements (1). Error in RK (line 8) k(:,1)=feval(fun,t(j),y(:,j)); After the line: ...

約2ヶ月 前 | 1

| 採用済み

回答済み

Index exceeds matrix dimensions ERROR

Using global variables is a bad programming style. It impedes the debugging massively. It is hard to find out, which code has se...

Index exceeds matrix dimensions ERROR

Using global variables is a bad programming style. It impedes the debugging massively. It is hard to find out, which code has se...

約2ヶ月 前 | 0

回答済み

How to convert 24-bit signed hex from .csv file to an array of decimal data?

dataTable = readtable('demo.csv'); data = table2array(dataTable(:,1)); data = strrep(data, '0x', ''); dataDec = b...

How to convert 24-bit signed hex from .csv file to an array of decimal data?

dataTable = readtable('demo.csv'); data = table2array(dataTable(:,1)); data = strrep(data, '0x', ''); dataDec = b...

約2ヶ月 前 | 1

| 採用済み

回答済み

Indexing cell array similar to excell

Maybe like this: Data = rand(7, 25); % Example data, actually 177x25 Names = {'A 123', 'A 123', 'B 456', 'A 123', 'B 456', '...

Indexing cell array similar to excell

Maybe like this: Data = rand(7, 25); % Example data, actually 177x25 Names = {'A 123', 'A 123', 'B 456', 'A 123', 'B 456', '...

約2ヶ月 前 | 0

| 採用済み

回答済み

Calling Matlab GUI popupmenu callback on click

No, there is no callback in the Matlab level. You can use the Java callbacks, if your "Matlab GUI" is a figure, see https://und...

Calling Matlab GUI popupmenu callback on click

No, there is no callback in the Matlab level. You can use the Java callbacks, if your "Matlab GUI" is a figure, see https://und...

約2ヶ月 前 | 0

回答済み

looping though multiple sub-directories

FileList = dir('C:\Base\Folder\**\*.nii'); for k = 1:numel(FileList) File = fullfile(FileList(k).folder, FileList(k).name)...

looping though multiple sub-directories

FileList = dir('C:\Base\Folder\**\*.nii'); for k = 1:numel(FileList) File = fullfile(FileList(k).folder, FileList(k).name)...

2ヶ月 前 | 0

回答済み

How to open my .m files in App Designer?

You do not have to open the files to use a slider for te modification of a constant. You need to write the code as a function, w...

How to open my .m files in App Designer?

You do not have to open the files to use a slider for te modification of a constant. You need to write the code as a function, w...

2ヶ月 前 | 0

| 採用済み

回答済み

array values are overwritten

Prefer file names including leading zeros: image0001.jpg, image 0002.jpg etc. Then the numeical order equals the alphabetical or...

array values are overwritten

Prefer file names including leading zeros: image0001.jpg, image 0002.jpg etc. Then the numeical order equals the alphabetical or...

2ヶ月 前 | 1

| 採用済み

回答済み

I have discovered that in solving ordinary differential equations things can get very easy if we use micro-intervals (intervals divided by 10 000 or more) and very rough methods like Euler's , to get the same accuracy as when using complex methods.

Yes, this is known for a long time already. As Euler has known already and as you learn in the first year of numerical maths, th...

I have discovered that in solving ordinary differential equations things can get very easy if we use micro-intervals (intervals divided by 10 000 or more) and very rough methods like Euler's , to get the same accuracy as when using complex methods.

Yes, this is known for a long time already. As Euler has known already and as you learn in the first year of numerical maths, th...

2ヶ月 前 | 2

回答済み

How to rename all instances of persistent variables?

Simply remove the persistent command temporarily, rename the variable and insert persistent again. You can open the file e.g. ...

How to rename all instances of persistent variables?

Simply remove the persistent command temporarily, rename the variable and insert persistent again. You can open the file e.g. ...

2ヶ月 前 | 1

| 採用済み

回答済み

How to update variable names after a "clear"

Clearing variables is rarely useful in Matlab, but a waste of time only. So on one hand it is not exactly clear, what you are as...

How to update variable names after a "clear"

Clearing variables is rarely useful in Matlab, but a waste of time only. So on one hand it is not exactly clear, what you are as...

2ヶ月 前 | 0

回答済み

Variable is not fully defined on some execution paths.

Does this help? tcell2 = cell(10,10); for t = 1:10 for s = 1:10 tcell2{t,s} = imcrop(pic2, ... [(t-...

Variable is not fully defined on some execution paths.

Does this help? tcell2 = cell(10,10); for t = 1:10 for s = 1:10 tcell2{t,s} = imcrop(pic2, ... [(t-...

2ヶ月 前 | 0

| 採用済み

回答済み

How to select numbers?

F = rand(1,400); M = rand(1,400); Tf = log(-F) / 0.73; Tm = log(-M) / 1.2; It is hard to guess, what this means: "I should...

How to select numbers?

F = rand(1,400); M = rand(1,400); Tf = log(-F) / 0.73; Tm = log(-M) / 1.2; It is hard to guess, what this means: "I should...

2ヶ月 前 | 1

回答済み

I can´t save

Some virus scanners limit the write access to the user's Documents folder to block encryption trojans. Check the logs of the vir...

I can´t save

Some virus scanners limit the write access to the user's Documents folder to block encryption trojans. Check the logs of the vir...

2ヶ月 前 | 0

回答済み

Replace pixels in a matrix without using histeq

for i = 1:1:r %go through rows for j = 1:1:c %columns img_heq(i, j) = T(img(i,j) + 1); end end

Replace pixels in a matrix without using histeq

for i = 1:1:r %go through rows for j = 1:1:c %columns img_heq(i, j) = T(img(i,j) + 1); end end

2ヶ月 前 | 2

| 採用済み