Category: Matlab
Category Archives: Matlab
Different results from RL TD3 in MATLAB 2023a and 2024a
I am running the same Simulink model with the same RL agent and settings, but I get different results running it in MATLAB 2023a and MATLAB 2024a. while reapeating in the same MATLAB gives me the same results. Does anyone have any idea what is the reason and how can I fix it?I am running the same Simulink model with the same RL agent and settings, but I get different results running it in MATLAB 2023a and MATLAB 2024a. while reapeating in the same MATLAB gives me the same results. Does anyone have any idea what is the reason and how can I fix it? I am running the same Simulink model with the same RL agent and settings, but I get different results running it in MATLAB 2023a and MATLAB 2024a. while reapeating in the same MATLAB gives me the same results. Does anyone have any idea what is the reason and how can I fix it? rl, td3 MATLAB Answers — New Questions
Portion of code containing my custom functions is hidden and I cant access it.
So somehow my functions got hidden inside my script and there is the icon that should allow me to view everything that is hidden but for some reason it doesn’t. Is this a bug or is there a setting I might have changed by mistake? here is the icon I am talking about, I can’t click on it and I can see that there are roughly 300 lines of code that I can’t see so I know they are hidden there.So somehow my functions got hidden inside my script and there is the icon that should allow me to view everything that is hidden but for some reason it doesn’t. Is this a bug or is there a setting I might have changed by mistake? here is the icon I am talking about, I can’t click on it and I can see that there are roughly 300 lines of code that I can’t see so I know they are hidden there. So somehow my functions got hidden inside my script and there is the icon that should allow me to view everything that is hidden but for some reason it doesn’t. Is this a bug or is there a setting I might have changed by mistake? here is the icon I am talking about, I can’t click on it and I can see that there are roughly 300 lines of code that I can’t see so I know they are hidden there. functions, bug, matlab MATLAB Answers — New Questions
could you help me to add what is indicated in the pic?
Post Content Post Content legend, add legend MATLAB Answers — New Questions
I can’t get the result of exact dividing
syms m n x y a b D p0
Pmn= 16*p0/(pi^2*m*n);
b=2*a;
w(x,y)= 1/(D*pi^4)*symsum(symsum(Pmn/[(m^2/a^2)+(n^2/b^2)]^2*sin(m*pi*x/a)*sin(n*pi*y/b),n,1,5),m,1,5);
w(a/2,a)
I tried the get like this form;
I would appreciate any kind of suggestion, kind regards.syms m n x y a b D p0
Pmn= 16*p0/(pi^2*m*n);
b=2*a;
w(x,y)= 1/(D*pi^4)*symsum(symsum(Pmn/[(m^2/a^2)+(n^2/b^2)]^2*sin(m*pi*x/a)*sin(n*pi*y/b),n,1,5),m,1,5);
w(a/2,a)
I tried the get like this form;
I would appreciate any kind of suggestion, kind regards. syms m n x y a b D p0
Pmn= 16*p0/(pi^2*m*n);
b=2*a;
w(x,y)= 1/(D*pi^4)*symsum(symsum(Pmn/[(m^2/a^2)+(n^2/b^2)]^2*sin(m*pi*x/a)*sin(n*pi*y/b),n,1,5),m,1,5);
w(a/2,a)
I tried the get like this form;
I would appreciate any kind of suggestion, kind regards. dividing MATLAB Answers — New Questions
Missing text objects when exporting graphics in R2022b
Since upgrading to R2022b, I’ve repeatedly run into an inssue in which text objects, legends, titles, etc do not get printed, or their position is shifted significantly when I export graphics via exportgraphics or export_fig. I’m trying to find some sort of rhyme or reason, but the problem seems somewhat inconsistent. It may only occur with OpenGL, but I’m not entirely sure.
Is this a known problem? Is there a known fix?
I’m using a MacOS Monterey 12.6.1.Since upgrading to R2022b, I’ve repeatedly run into an inssue in which text objects, legends, titles, etc do not get printed, or their position is shifted significantly when I export graphics via exportgraphics or export_fig. I’m trying to find some sort of rhyme or reason, but the problem seems somewhat inconsistent. It may only occur with OpenGL, but I’m not entirely sure.
Is this a known problem? Is there a known fix?
I’m using a MacOS Monterey 12.6.1. Since upgrading to R2022b, I’ve repeatedly run into an inssue in which text objects, legends, titles, etc do not get printed, or their position is shifted significantly when I export graphics via exportgraphics or export_fig. I’m trying to find some sort of rhyme or reason, but the problem seems somewhat inconsistent. It may only occur with OpenGL, but I’m not entirely sure.
Is this a known problem? Is there a known fix?
I’m using a MacOS Monterey 12.6.1. exportgraphics, mac MATLAB Answers — New Questions
Findings the parameters from the time series
In the attached data file, there are two sheets, Sheet 1 and Sheet 2. Sheet 1 contains 4846 values of E or we can 4846 time series values. Sheet 2 contains the variables E, p(E), X, R1,R2, and R3.
Firstly I need to divide this 4846 values into different number of time series. As can be seen in Sheet 2, first time series has one row (or only the first value of E), second time series has 2 rows ( first and second value of E), third time series has 3 rows ( first, second and third value of E) and so on….i.e. each time a new E value is added. So at the end there will be 4846 different time series.
Basically I have to calculate R1, R2, and R3. Before that, p(E) and X is to be calculated. By clicking on each cell, the formula for calculating the variables will be visible. So basically, for each value of E, I will get R1,R2,and R3.Also, the first value of R1, R2 and R3 will be zero. You can start from the second time series.
I want to write the MATLAB code for the same by first dividing it into different time series and finally calculating R1,R2, and R3. This might be confusing. Ask any doubts for clarification.In the attached data file, there are two sheets, Sheet 1 and Sheet 2. Sheet 1 contains 4846 values of E or we can 4846 time series values. Sheet 2 contains the variables E, p(E), X, R1,R2, and R3.
Firstly I need to divide this 4846 values into different number of time series. As can be seen in Sheet 2, first time series has one row (or only the first value of E), second time series has 2 rows ( first and second value of E), third time series has 3 rows ( first, second and third value of E) and so on….i.e. each time a new E value is added. So at the end there will be 4846 different time series.
Basically I have to calculate R1, R2, and R3. Before that, p(E) and X is to be calculated. By clicking on each cell, the formula for calculating the variables will be visible. So basically, for each value of E, I will get R1,R2,and R3.Also, the first value of R1, R2 and R3 will be zero. You can start from the second time series.
I want to write the MATLAB code for the same by first dividing it into different time series and finally calculating R1,R2, and R3. This might be confusing. Ask any doubts for clarification. In the attached data file, there are two sheets, Sheet 1 and Sheet 2. Sheet 1 contains 4846 values of E or we can 4846 time series values. Sheet 2 contains the variables E, p(E), X, R1,R2, and R3.
Firstly I need to divide this 4846 values into different number of time series. As can be seen in Sheet 2, first time series has one row (or only the first value of E), second time series has 2 rows ( first and second value of E), third time series has 3 rows ( first, second and third value of E) and so on….i.e. each time a new E value is added. So at the end there will be 4846 different time series.
Basically I have to calculate R1, R2, and R3. Before that, p(E) and X is to be calculated. By clicking on each cell, the formula for calculating the variables will be visible. So basically, for each value of E, I will get R1,R2,and R3.Also, the first value of R1, R2 and R3 will be zero. You can start from the second time series.
I want to write the MATLAB code for the same by first dividing it into different time series and finally calculating R1,R2, and R3. This might be confusing. Ask any doubts for clarification. matlab MATLAB Answers — New Questions
Cannot find explicit solution
Hiii ,i need some help in matlab concerning programming pseudo Spectral method for Volterra equation i have all the script but when i check the solution i found i message error Warning: Cannot find explicit solution. > In solve (line 316) In HMM (line 350) La valeur numérique de x lorsque t = 0.0625 est :
can you help me pleaseHiii ,i need some help in matlab concerning programming pseudo Spectral method for Volterra equation i have all the script but when i check the solution i found i message error Warning: Cannot find explicit solution. > In solve (line 316) In HMM (line 350) La valeur numérique de x lorsque t = 0.0625 est :
can you help me please Hiii ,i need some help in matlab concerning programming pseudo Spectral method for Volterra equation i have all the script but when i check the solution i found i message error Warning: Cannot find explicit solution. > In solve (line 316) In HMM (line 350) La valeur numérique de x lorsque t = 0.0625 est :
can you help me please matlab, numerical integration, differential equations MATLAB Answers — New Questions
Error using lmi/kkt
I encountered a problem when I used KKT command. It always shows an error: ‘KKT system can only be derived for LPs or QPs’. I do not know the reason since I can run the same code on another computer. Someone suggests maybe the old version of LMI. I searched online and did not find how to add or update the LMI. I have attached my code below.
I hope someone could help. thank you!I encountered a problem when I used KKT command. It always shows an error: ‘KKT system can only be derived for LPs or QPs’. I do not know the reason since I can run the same code on another computer. Someone suggests maybe the old version of LMI. I searched online and did not find how to add or update the LMI. I have attached my code below.
I hope someone could help. thank you! I encountered a problem when I used KKT command. It always shows an error: ‘KKT system can only be derived for LPs or QPs’. I do not know the reason since I can run the same code on another computer. Someone suggests maybe the old version of LMI. I searched online and did not find how to add or update the LMI. I have attached my code below.
I hope someone could help. thank you! optimization, matlab MATLAB Answers — New Questions
How to Calculate Cross Correlation Using Accelerometer Data
Hi, I am trying to calculate the cross-correlation between two accelerometer signals. The idea is to measure how synchronized the movments were between two people each wearing an accelerometer. The signals are the same length of time and the people were attempting to perform identical actions. I’m currently focusing on the y-axis.
I tried using corrcoeff() for this that outputs a pearson correlation coefficient value (~0.4) but I’m not sure I’ve really done this correctly. From what I understand, corrcoeff() subtracts the mean from a and b, but I don’t know why. What is corrcoeff() actually giving me in this scenario?
a = p01_acceleration_y
b = p02_acceleration_y
corrcoef(a, b)
Using xcorr() instead, I get a bunch of numbers that make a graph in the shape of a triangle. Using max(), I can find that at a lag of 1 the value is the highest and it’s a much higher number than before (~0.9). Is this saying that the two people are a lot more synchronized than I thought initially? And that one is lagging behind the other?
[c, lags] = xcorr(a, b, ‘coeff’)
max(c)
Is xcorr() giving me the average correlation across the entire time series? Is there another way to do this that gets a better measure of synchrony, like showing certain time windows in which the correlation is the highest?
Am I supposed to use corrcoef() or xcorr() here? Do I need to normalize the data? Should I not be using ‘coeff’?
Should I translate my accerlation data into velocity or displacement first using convertVibration()?
Sorry for all the questions, I think I’m not fully grasping the concept of a cross-correlation. Thanks in advance!Hi, I am trying to calculate the cross-correlation between two accelerometer signals. The idea is to measure how synchronized the movments were between two people each wearing an accelerometer. The signals are the same length of time and the people were attempting to perform identical actions. I’m currently focusing on the y-axis.
I tried using corrcoeff() for this that outputs a pearson correlation coefficient value (~0.4) but I’m not sure I’ve really done this correctly. From what I understand, corrcoeff() subtracts the mean from a and b, but I don’t know why. What is corrcoeff() actually giving me in this scenario?
a = p01_acceleration_y
b = p02_acceleration_y
corrcoef(a, b)
Using xcorr() instead, I get a bunch of numbers that make a graph in the shape of a triangle. Using max(), I can find that at a lag of 1 the value is the highest and it’s a much higher number than before (~0.9). Is this saying that the two people are a lot more synchronized than I thought initially? And that one is lagging behind the other?
[c, lags] = xcorr(a, b, ‘coeff’)
max(c)
Is xcorr() giving me the average correlation across the entire time series? Is there another way to do this that gets a better measure of synchrony, like showing certain time windows in which the correlation is the highest?
Am I supposed to use corrcoef() or xcorr() here? Do I need to normalize the data? Should I not be using ‘coeff’?
Should I translate my accerlation data into velocity or displacement first using convertVibration()?
Sorry for all the questions, I think I’m not fully grasping the concept of a cross-correlation. Thanks in advance! Hi, I am trying to calculate the cross-correlation between two accelerometer signals. The idea is to measure how synchronized the movments were between two people each wearing an accelerometer. The signals are the same length of time and the people were attempting to perform identical actions. I’m currently focusing on the y-axis.
I tried using corrcoeff() for this that outputs a pearson correlation coefficient value (~0.4) but I’m not sure I’ve really done this correctly. From what I understand, corrcoeff() subtracts the mean from a and b, but I don’t know why. What is corrcoeff() actually giving me in this scenario?
a = p01_acceleration_y
b = p02_acceleration_y
corrcoef(a, b)
Using xcorr() instead, I get a bunch of numbers that make a graph in the shape of a triangle. Using max(), I can find that at a lag of 1 the value is the highest and it’s a much higher number than before (~0.9). Is this saying that the two people are a lot more synchronized than I thought initially? And that one is lagging behind the other?
[c, lags] = xcorr(a, b, ‘coeff’)
max(c)
Is xcorr() giving me the average correlation across the entire time series? Is there another way to do this that gets a better measure of synchrony, like showing certain time windows in which the correlation is the highest?
Am I supposed to use corrcoef() or xcorr() here? Do I need to normalize the data? Should I not be using ‘coeff’?
Should I translate my accerlation data into velocity or displacement first using convertVibration()?
Sorry for all the questions, I think I’m not fully grasping the concept of a cross-correlation. Thanks in advance! cross-correlation, correlation, xcorr, corrcoef, accelerometer, acceleration MATLAB Answers — New Questions
silence period of audio still got values in MFCC,but it shouldn’t be like this.
Hi there! I am planning to extract the timbre fearture of audio using MFCC function in Matlab. there is 1s silence at the beginingand and the end of the targeted audio(4s in total).The function goes well except for that the silence period also get specific values for each coefficients which I suppose should be 0. I don’t know the reason and resolution for this.
I know that I could just delete the silence area before carring out MFCC, but the 300 audio files I’m going to deal with have different length with each other. Some of them have 0.5s silence period at the end, some have 0.7s, etc.
So I am wondering whether there are better solutions for this problem.
Thanks very much!Hi there! I am planning to extract the timbre fearture of audio using MFCC function in Matlab. there is 1s silence at the beginingand and the end of the targeted audio(4s in total).The function goes well except for that the silence period also get specific values for each coefficients which I suppose should be 0. I don’t know the reason and resolution for this.
I know that I could just delete the silence area before carring out MFCC, but the 300 audio files I’m going to deal with have different length with each other. Some of them have 0.5s silence period at the end, some have 0.7s, etc.
So I am wondering whether there are better solutions for this problem.
Thanks very much! Hi there! I am planning to extract the timbre fearture of audio using MFCC function in Matlab. there is 1s silence at the beginingand and the end of the targeted audio(4s in total).The function goes well except for that the silence period also get specific values for each coefficients which I suppose should be 0. I don’t know the reason and resolution for this.
I know that I could just delete the silence area before carring out MFCC, but the 300 audio files I’m going to deal with have different length with each other. Some of them have 0.5s silence period at the end, some have 0.7s, etc.
So I am wondering whether there are better solutions for this problem.
Thanks very much! mfcc, audio feature, timbre MATLAB Answers — New Questions
Can’t seem to replace values in matrix meeting criteria, although the correct row,col coordinates are found
I have an 1000 x 12 "image" matrix I initialize to 0 corresponding to current (as in amps) values I calculated from a 2-dim array of voltages and impedances. I then look for values exceeding some number, and replace those with 1. The intent is to display the matrix as an image, with two colors indicating good and bad.
The problem is that although it seems I find the "right" coordinates where the current exceeded the threshold, I can’t seem to be able to "populate" the correct ones in the matrix, using the same row,col coordinates returned.
clear;
vbat = [250:50:800];
ImaxGA = 150 ; % Arms
ImaxVA = 120; % Arms
zmutual =[0.001:.01:10]’
vbat2=repmat(vbat,size(zmutual,1),1);
zmutual2 = repmat(zmutual,1,size(vbat,2))
IGA=vbat2./zmutual2;
[row,col]=find(IGA>ImaxGA);
img = [zeros(size(zmutual,1),size(vbat,2))]
badreg=[zmutual(row) vbat(col)’ row col]
%badregmapd = [int64((badreg(:,1)-.001)/.01+1),(badreg(:,2)-250)/50+1]
img(row,col)=1
map = [ 0 1 0; 1 0 0];
imagesc(img)
colormap(map)
set(gca,’YDir’,’normal’)
xticks([1 2 3 4 5 6 7 8 9 10 11 12]);
xticklabels({‘250’ ‘300’ ‘350’ ‘400’ ‘450’ ‘500’ ‘550’ ‘600’ ‘650’ ‘700’ ‘750’ ‘800’})
yticks([100 200 300 400 500 600 700 800 900 1000])
yticklabels({‘1′,’2′,’3′,’4′,’5′,’6′,’7′,’8′,’9′,’10’})
only the row,col entries in the img matrix should be replaced with 1. However, I see that (500, 1) (among others) is also replaced, even though row,col = (500, 1) was not part of the returned values. it seems like it is replacing every row,col combination.
How to I just replace the row,col pairs found?
Thank you!I have an 1000 x 12 "image" matrix I initialize to 0 corresponding to current (as in amps) values I calculated from a 2-dim array of voltages and impedances. I then look for values exceeding some number, and replace those with 1. The intent is to display the matrix as an image, with two colors indicating good and bad.
The problem is that although it seems I find the "right" coordinates where the current exceeded the threshold, I can’t seem to be able to "populate" the correct ones in the matrix, using the same row,col coordinates returned.
clear;
vbat = [250:50:800];
ImaxGA = 150 ; % Arms
ImaxVA = 120; % Arms
zmutual =[0.001:.01:10]’
vbat2=repmat(vbat,size(zmutual,1),1);
zmutual2 = repmat(zmutual,1,size(vbat,2))
IGA=vbat2./zmutual2;
[row,col]=find(IGA>ImaxGA);
img = [zeros(size(zmutual,1),size(vbat,2))]
badreg=[zmutual(row) vbat(col)’ row col]
%badregmapd = [int64((badreg(:,1)-.001)/.01+1),(badreg(:,2)-250)/50+1]
img(row,col)=1
map = [ 0 1 0; 1 0 0];
imagesc(img)
colormap(map)
set(gca,’YDir’,’normal’)
xticks([1 2 3 4 5 6 7 8 9 10 11 12]);
xticklabels({‘250’ ‘300’ ‘350’ ‘400’ ‘450’ ‘500’ ‘550’ ‘600’ ‘650’ ‘700’ ‘750’ ‘800’})
yticks([100 200 300 400 500 600 700 800 900 1000])
yticklabels({‘1′,’2′,’3′,’4′,’5′,’6′,’7′,’8′,’9′,’10’})
only the row,col entries in the img matrix should be replaced with 1. However, I see that (500, 1) (among others) is also replaced, even though row,col = (500, 1) was not part of the returned values. it seems like it is replacing every row,col combination.
How to I just replace the row,col pairs found?
Thank you! I have an 1000 x 12 "image" matrix I initialize to 0 corresponding to current (as in amps) values I calculated from a 2-dim array of voltages and impedances. I then look for values exceeding some number, and replace those with 1. The intent is to display the matrix as an image, with two colors indicating good and bad.
The problem is that although it seems I find the "right" coordinates where the current exceeded the threshold, I can’t seem to be able to "populate" the correct ones in the matrix, using the same row,col coordinates returned.
clear;
vbat = [250:50:800];
ImaxGA = 150 ; % Arms
ImaxVA = 120; % Arms
zmutual =[0.001:.01:10]’
vbat2=repmat(vbat,size(zmutual,1),1);
zmutual2 = repmat(zmutual,1,size(vbat,2))
IGA=vbat2./zmutual2;
[row,col]=find(IGA>ImaxGA);
img = [zeros(size(zmutual,1),size(vbat,2))]
badreg=[zmutual(row) vbat(col)’ row col]
%badregmapd = [int64((badreg(:,1)-.001)/.01+1),(badreg(:,2)-250)/50+1]
img(row,col)=1
map = [ 0 1 0; 1 0 0];
imagesc(img)
colormap(map)
set(gca,’YDir’,’normal’)
xticks([1 2 3 4 5 6 7 8 9 10 11 12]);
xticklabels({‘250’ ‘300’ ‘350’ ‘400’ ‘450’ ‘500’ ‘550’ ‘600’ ‘650’ ‘700’ ‘750’ ‘800’})
yticks([100 200 300 400 500 600 700 800 900 1000])
yticklabels({‘1′,’2′,’3′,’4′,’5′,’6′,’7′,’8′,’9′,’10’})
only the row,col entries in the img matrix should be replaced with 1. However, I see that (500, 1) (among others) is also replaced, even though row,col = (500, 1) was not part of the returned values. it seems like it is replacing every row,col combination.
How to I just replace the row,col pairs found?
Thank you! imagesc, indexing MATLAB Answers — New Questions
How to uncheck all other checkboxes when one is selected in App Designer Table
I have a UITable in App Desinger. The first column is logical and therefore displays editable checkboxes. My objective is to have all other checkboxes cleared (unchecked) after I select a single check box. My current section of code is the following:
% Callbacks that handle component events
methods (Access = private)
% Cell edit callback: UITable
function UITableCellEdit(app, event)
% If the edited column is the checkbox column
if event.Indices(2) == 1
% Uncheck other checkboxes in the column after selection
if event.NewData
app.UITable.Data(:, 1) = {false};
end
app.UITable.Data{event.Indices(1), 1} = event.NewData; % Check the clicked checkbox
end
end
end
However, when I run the app I can still have multiple checkboxes selected at a time. This is not my intended effect. Again, I only want one checkbox to be able to be selected at a time; when one is selected all others should be cleared.I have a UITable in App Desinger. The first column is logical and therefore displays editable checkboxes. My objective is to have all other checkboxes cleared (unchecked) after I select a single check box. My current section of code is the following:
% Callbacks that handle component events
methods (Access = private)
% Cell edit callback: UITable
function UITableCellEdit(app, event)
% If the edited column is the checkbox column
if event.Indices(2) == 1
% Uncheck other checkboxes in the column after selection
if event.NewData
app.UITable.Data(:, 1) = {false};
end
app.UITable.Data{event.Indices(1), 1} = event.NewData; % Check the clicked checkbox
end
end
end
However, when I run the app I can still have multiple checkboxes selected at a time. This is not my intended effect. Again, I only want one checkbox to be able to be selected at a time; when one is selected all others should be cleared. I have a UITable in App Desinger. The first column is logical and therefore displays editable checkboxes. My objective is to have all other checkboxes cleared (unchecked) after I select a single check box. My current section of code is the following:
% Callbacks that handle component events
methods (Access = private)
% Cell edit callback: UITable
function UITableCellEdit(app, event)
% If the edited column is the checkbox column
if event.Indices(2) == 1
% Uncheck other checkboxes in the column after selection
if event.NewData
app.UITable.Data(:, 1) = {false};
end
app.UITable.Data{event.Indices(1), 1} = event.NewData; % Check the clicked checkbox
end
end
end
However, when I run the app I can still have multiple checkboxes selected at a time. This is not my intended effect. Again, I only want one checkbox to be able to be selected at a time; when one is selected all others should be cleared. checkbox, uitable MATLAB Answers — New Questions
dir results are not fitting the wildcard
Dear all,
thanks in advance for reading this question which seems kind of dumb to me but i need a solution for this issue. a workaround would be easy but not nice.
i use the dir command with a wildcard to find files in a folder but the returned file names do not fit the wildcard:
dir(‘O:FIP2015WW007IGB1M2014_12_23_10_36*RGB*.cr2’)
2014_12_23_FWW0070150.CR2 2014_12_23_FWW0070156.CR2
2014_12_23_FWW0070151.CR2 2014_12_23_FWW0070157.CR2
2014_12_23_FWW0070152.CR2 2014_12_23_FWW0070158.CR2
2014_12_23_FWW0070153.CR2 2014_12_23_FWW0070159.CR2
2014_12_23_FWW0070154.CR2
2014_12_23_FWW0070155.CR2
I use matlab 2022b and would be happy for a fix.
many thanksDear all,
thanks in advance for reading this question which seems kind of dumb to me but i need a solution for this issue. a workaround would be easy but not nice.
i use the dir command with a wildcard to find files in a folder but the returned file names do not fit the wildcard:
dir(‘O:FIP2015WW007IGB1M2014_12_23_10_36*RGB*.cr2’)
2014_12_23_FWW0070150.CR2 2014_12_23_FWW0070156.CR2
2014_12_23_FWW0070151.CR2 2014_12_23_FWW0070157.CR2
2014_12_23_FWW0070152.CR2 2014_12_23_FWW0070158.CR2
2014_12_23_FWW0070153.CR2 2014_12_23_FWW0070159.CR2
2014_12_23_FWW0070154.CR2
2014_12_23_FWW0070155.CR2
I use matlab 2022b and would be happy for a fix.
many thanks Dear all,
thanks in advance for reading this question which seems kind of dumb to me but i need a solution for this issue. a workaround would be easy but not nice.
i use the dir command with a wildcard to find files in a folder but the returned file names do not fit the wildcard:
dir(‘O:FIP2015WW007IGB1M2014_12_23_10_36*RGB*.cr2’)
2014_12_23_FWW0070150.CR2 2014_12_23_FWW0070156.CR2
2014_12_23_FWW0070151.CR2 2014_12_23_FWW0070157.CR2
2014_12_23_FWW0070152.CR2 2014_12_23_FWW0070158.CR2
2014_12_23_FWW0070153.CR2 2014_12_23_FWW0070159.CR2
2014_12_23_FWW0070154.CR2
2014_12_23_FWW0070155.CR2
I use matlab 2022b and would be happy for a fix.
many thanks dir wildcard MATLAB Answers — New Questions
How can I avoid extra white lines when exporting a figure to a vector graphic?
I have a Matlab figure that looks great as a figure, but when I try to export it to a vector-based format (.eps or .pdf) white swirly lines appear as can be seen in the linked PDF. Some of the black dots also get partially covered, despite being much higher in the 3D graph than everything else, but that can be easily fixed in Inkscape.
I have also attempted to generate a .pdf or .eps using my preferred method, through "export_fig," but have ended up with the same results. Any tips would be much appreciated! The .fig file has also been attached.I have a Matlab figure that looks great as a figure, but when I try to export it to a vector-based format (.eps or .pdf) white swirly lines appear as can be seen in the linked PDF. Some of the black dots also get partially covered, despite being much higher in the 3D graph than everything else, but that can be easily fixed in Inkscape.
I have also attempted to generate a .pdf or .eps using my preferred method, through "export_fig," but have ended up with the same results. Any tips would be much appreciated! The .fig file has also been attached. I have a Matlab figure that looks great as a figure, but when I try to export it to a vector-based format (.eps or .pdf) white swirly lines appear as can be seen in the linked PDF. Some of the black dots also get partially covered, despite being much higher in the 3D graph than everything else, but that can be easily fixed in Inkscape.
I have also attempted to generate a .pdf or .eps using my preferred method, through "export_fig," but have ended up with the same results. Any tips would be much appreciated! The .fig file has also been attached. figure, export, pdf, eps MATLAB Answers — New Questions
how can i blur the background?
Hello, I want to blur the background not the man. please help as soon as possible.Hello, I want to blur the background not the man. please help as soon as possible. Hello, I want to blur the background not the man. please help as soon as possible. image analysis MATLAB Answers — New Questions
Resonant frequency of LLC resonant converter from a quality factor curve
Hii, Can anyone help me to understand how to determine resonant frequnecy from a quality factor curve for my further calculation ?
i have attached an image of the quality curve that I’ve obtained in matlab.Hii, Can anyone help me to understand how to determine resonant frequnecy from a quality factor curve for my further calculation ?
i have attached an image of the quality curve that I’ve obtained in matlab. Hii, Can anyone help me to understand how to determine resonant frequnecy from a quality factor curve for my further calculation ?
i have attached an image of the quality curve that I’ve obtained in matlab. resonance frequnecy, llc resonant converter, simulink, q factor curve MATLAB Answers — New Questions
How to identify data set characteristics which influence the success of a model using those data sets as input.
I am studying the effect of hurricanes on coral reefs and have developed a damage prediction model which uses as inputs the fragility and distribution of different coral species at 150 post-storm survey sites. I can also create multiple simulated reefs by randomly assigning species, colonies and damage from the measured probability distribution functions of those parqameters for each species. When I make 1000 simulated reef experiments the results of my damage prediction are widly distributed from terrible to great. I need to mine the 1000 simultaed reefs to identify patterns which are influencing the success of the model. I expect this is a common scenario and would apprecieate any guidance on which tools to use and how to proceed. I have the statistics and machine learning toolbox.I am studying the effect of hurricanes on coral reefs and have developed a damage prediction model which uses as inputs the fragility and distribution of different coral species at 150 post-storm survey sites. I can also create multiple simulated reefs by randomly assigning species, colonies and damage from the measured probability distribution functions of those parqameters for each species. When I make 1000 simulated reef experiments the results of my damage prediction are widly distributed from terrible to great. I need to mine the 1000 simultaed reefs to identify patterns which are influencing the success of the model. I expect this is a common scenario and would apprecieate any guidance on which tools to use and how to proceed. I have the statistics and machine learning toolbox. I am studying the effect of hurricanes on coral reefs and have developed a damage prediction model which uses as inputs the fragility and distribution of different coral species at 150 post-storm survey sites. I can also create multiple simulated reefs by randomly assigning species, colonies and damage from the measured probability distribution functions of those parqameters for each species. When I make 1000 simulated reef experiments the results of my damage prediction are widly distributed from terrible to great. I need to mine the 1000 simultaed reefs to identify patterns which are influencing the success of the model. I expect this is a common scenario and would apprecieate any guidance on which tools to use and how to proceed. I have the statistics and machine learning toolbox. data mining, clustering, datasets MATLAB Answers — New Questions
4.2 Whiteboard Coordinate System Error for Function
I am currently going through the Arudino Matlab Engeering Kit, starting with the drawing Robot, and ran into a coding error message that I can not figure out. My code:
function xy = countsToXY(counts,Z_i,Base) % Define constants
countsPerRadian = countsPerRevolution/(2*pi);
r_spool = 0.0045; % Convert counts to angle
phi = counts/countsPerRadian; % Convert angle to change in string length
dStringLength = r_spool*phi; % Convert change in string length to change in Z
dZ = dStringLength/2; %Add change in Z to initial Z to get current Z
z = Z_i + dz; % Compute x and y from Z1 and Z2
x = (Base^2 + z(1)^2 – z(2)^2)/(2*Base);
y = sqrt(z(1)^2-x^2); xy = [x y];
end
But the error that I keep getting is:
Error: File: countsToXY.m Line: 2 Column: 46
Invalid use of operator.
Is there something that I’m missing or was not explained within the lesson that I need to run this code?I am currently going through the Arudino Matlab Engeering Kit, starting with the drawing Robot, and ran into a coding error message that I can not figure out. My code:
function xy = countsToXY(counts,Z_i,Base) % Define constants
countsPerRadian = countsPerRevolution/(2*pi);
r_spool = 0.0045; % Convert counts to angle
phi = counts/countsPerRadian; % Convert angle to change in string length
dStringLength = r_spool*phi; % Convert change in string length to change in Z
dZ = dStringLength/2; %Add change in Z to initial Z to get current Z
z = Z_i + dz; % Compute x and y from Z1 and Z2
x = (Base^2 + z(1)^2 – z(2)^2)/(2*Base);
y = sqrt(z(1)^2-x^2); xy = [x y];
end
But the error that I keep getting is:
Error: File: countsToXY.m Line: 2 Column: 46
Invalid use of operator.
Is there something that I’m missing or was not explained within the lesson that I need to run this code? I am currently going through the Arudino Matlab Engeering Kit, starting with the drawing Robot, and ran into a coding error message that I can not figure out. My code:
function xy = countsToXY(counts,Z_i,Base) % Define constants
countsPerRadian = countsPerRevolution/(2*pi);
r_spool = 0.0045; % Convert counts to angle
phi = counts/countsPerRadian; % Convert angle to change in string length
dStringLength = r_spool*phi; % Convert change in string length to change in Z
dZ = dStringLength/2; %Add change in Z to initial Z to get current Z
z = Z_i + dz; % Compute x and y from Z1 and Z2
x = (Base^2 + z(1)^2 – z(2)^2)/(2*Base);
y = sqrt(z(1)^2-x^2); xy = [x y];
end
But the error that I keep getting is:
Error: File: countsToXY.m Line: 2 Column: 46
Invalid use of operator.
Is there something that I’m missing or was not explained within the lesson that I need to run this code? arduino, code, matlab, drawing robot MATLAB Answers — New Questions
Compare two files and remove any lines in the second file when they match values found in the first file
Dear all,
I was wondering if there is a way in matlab to compare to files and remove the lines in file2 that match values in file1.
I used in the past visdiff to compare files, but I would like to understand if, using the same function, I can remove the lines that matches between the two files.
Some of you has some ideas to suggest?
Thanks to whoever help me.
ChiaraDear all,
I was wondering if there is a way in matlab to compare to files and remove the lines in file2 that match values in file1.
I used in the past visdiff to compare files, but I would like to understand if, using the same function, I can remove the lines that matches between the two files.
Some of you has some ideas to suggest?
Thanks to whoever help me.
Chiara Dear all,
I was wondering if there is a way in matlab to compare to files and remove the lines in file2 that match values in file1.
I used in the past visdiff to compare files, but I would like to understand if, using the same function, I can remove the lines that matches between the two files.
Some of you has some ideas to suggest?
Thanks to whoever help me.
Chiara two-file comparison, remove lines that matches MATLAB Answers — New Questions
GIBBS SAMPLING FOR N DISCRETE VARIABLES IN A N-SPACE
Dear all,
I would like to ask how can be perfomed a Gibbs sampling for a space constituted by n discrete distributions. As an example, I provide 5 distributions with different data, different size, and different p(data), which represent the posterior probability:
– data1 = [50 70 100 130 170 230 300 400]; p(data1) = [0.20 0.05 0.05 0.10 0.09 0.01 0.28 0.22];
– data2 = [1 2 3 4 5 6 7 8]; p(data2) = [0.05 0.1 0.25 0.1 0.05 0.05 0.2 0.2];
– data3 = [1 2 3 4]; p(data3) = [0.3 0.5 0.1 0.1];
– data4 = [1 2]; p(data4) = [0.85 0.15];
– data5 = [1 2]; p(data5) = [0.9 0.1];Dear all,
I would like to ask how can be perfomed a Gibbs sampling for a space constituted by n discrete distributions. As an example, I provide 5 distributions with different data, different size, and different p(data), which represent the posterior probability:
– data1 = [50 70 100 130 170 230 300 400]; p(data1) = [0.20 0.05 0.05 0.10 0.09 0.01 0.28 0.22];
– data2 = [1 2 3 4 5 6 7 8]; p(data2) = [0.05 0.1 0.25 0.1 0.05 0.05 0.2 0.2];
– data3 = [1 2 3 4]; p(data3) = [0.3 0.5 0.1 0.1];
– data4 = [1 2]; p(data4) = [0.85 0.15];
– data5 = [1 2]; p(data5) = [0.9 0.1]; Dear all,
I would like to ask how can be perfomed a Gibbs sampling for a space constituted by n discrete distributions. As an example, I provide 5 distributions with different data, different size, and different p(data), which represent the posterior probability:
– data1 = [50 70 100 130 170 230 300 400]; p(data1) = [0.20 0.05 0.05 0.10 0.09 0.01 0.28 0.22];
– data2 = [1 2 3 4 5 6 7 8]; p(data2) = [0.05 0.1 0.25 0.1 0.05 0.05 0.2 0.2];
– data3 = [1 2 3 4]; p(data3) = [0.3 0.5 0.1 0.1];
– data4 = [1 2]; p(data4) = [0.85 0.15];
– data5 = [1 2]; p(data5) = [0.9 0.1]; sampling, statistics, gibbs, discrete variables MATLAB Answers — New Questions