Month: August 2024
Métodos numéricos en simulink
Tengo una tarea de resolver analíticamente una ecuación diferencial por el método de Euler (lo hice con maltab) con su gráfica, y luego hacer diagrama de bloques en simulink para ver la gráfica nuevamente con un scope. Soy completamente nueva en simulink y el profesor no lo explicó por lo que quería ver si alguien puede ayudarme
El código de matlab es el archivo "Euler_analitico01.mlx"
Me da la gráfica:
y el scope de simulink me sale:Tengo una tarea de resolver analíticamente una ecuación diferencial por el método de Euler (lo hice con maltab) con su gráfica, y luego hacer diagrama de bloques en simulink para ver la gráfica nuevamente con un scope. Soy completamente nueva en simulink y el profesor no lo explicó por lo que quería ver si alguien puede ayudarme
El código de matlab es el archivo "Euler_analitico01.mlx"
Me da la gráfica:
y el scope de simulink me sale: Tengo una tarea de resolver analíticamente una ecuación diferencial por el método de Euler (lo hice con maltab) con su gráfica, y luego hacer diagrama de bloques en simulink para ver la gráfica nuevamente con un scope. Soy completamente nueva en simulink y el profesor no lo explicó por lo que quería ver si alguien puede ayudarme
El código de matlab es el archivo "Euler_analitico01.mlx"
Me da la gráfica:
y el scope de simulink me sale: matlab, simulink, euler, metodos numericos MATLAB Answers — New Questions
Azure and AI Show
Weekly show on LinkedIn, Twitter/X, Facebook and YouTube
Weekly show on LinkedIn, Twitter/X, Facebook and YouTube Read More
Power Pivot running total without date column – NOT in Power BI
Hi all,
I am using Power Pivot in Excel and want to calculate the running total without Date column.
I found the following tutorial, which is for DAX in Power BI and tried to convert this to Excel Power Pivot but I am not able to do so.
Please can you help me converting this so that I can use it in Excel.
https://www.antmanbi.com/post/how-to-create-running-total-on-non-numeric-fields.
I am attaching a sample data table.
Running Total Brands =
VAR CurrentBrandSales =
[Total Sales]
VAR BrandsWithSales =
ADDCOLUMNS (
ALLSELECTED ( Products[Brand] ),
“@Sales”, [Total Sales]
)
VAR BrandsWithHigherSales =
FILTER ( BrandsWithSales, [@Sales] >= CurrentBrandSales )
VAR Ranking =
— Used only for confirming the ranking
COUNTROWS ( BrandsWithHigherSales )
VAR Result =
SUMX ( BrandsWithHigherSales, [@Sales] )
RETURN
Result
Thanks,
Naveen
Hi all,I am using Power Pivot in Excel and want to calculate the running total without Date column.I found the following tutorial, which is for DAX in Power BI and tried to convert this to Excel Power Pivot but I am not able to do so.Please can you help me converting this so that I can use it in Excel.https://www.antmanbi.com/post/how-to-create-running-total-on-non-numeric-fields.I am attaching a sample data table. Running Total Brands =
VAR CurrentBrandSales =
[Total Sales]
VAR BrandsWithSales =
ADDCOLUMNS (
ALLSELECTED ( Products[Brand] ),
“@Sales”, [Total Sales]
)
VAR BrandsWithHigherSales =
FILTER ( BrandsWithSales, [@Sales] >= CurrentBrandSales )
VAR Ranking =
— Used only for confirming the ranking
COUNTROWS ( BrandsWithHigherSales )
VAR Result =
SUMX ( BrandsWithHigherSales, [@Sales] )
RETURN
Result Thanks, Naveen Read More
error loading shared libraries: libicuuc.so.69
I get this message when trying to run MATLAB after an install without any "errors":
/data/MATLAB/R2022a/bin/glnxa64/MATLAB: error while loading shared libraries: libicuuc.so.69: cannot open shared object file: No such file or directory
I tried this with R2022a and R2022b.
I do have R2021a and R2023a running…I get this message when trying to run MATLAB after an install without any "errors":
/data/MATLAB/R2022a/bin/glnxa64/MATLAB: error while loading shared libraries: libicuuc.so.69: cannot open shared object file: No such file or directory
I tried this with R2022a and R2022b.
I do have R2021a and R2023a running… I get this message when trying to run MATLAB after an install without any "errors":
/data/MATLAB/R2022a/bin/glnxa64/MATLAB: error while loading shared libraries: libicuuc.so.69: cannot open shared object file: No such file or directory
I tried this with R2022a and R2022b.
I do have R2021a and R2023a running… shared libraries, install, ubuntu MATLAB Answers — New Questions
Maximizing Spectral efficiency instead of maximizing SINR in RI selection in 5G NR toolbox
Hi all,
I’ve noticed that the new version of the 5G Toolbox includes two different algorithms for calculating Rank Indication (RI): ‘MaxSINR’ and ‘MaxSE’. The ‘MaxSINR’ algorithm selects the RI based on maximizing the SINR, while ‘MaxSE’ selects it based on maximizing spectral efficiency.
I was under the impression that the standard approach was to select the rank that maximizes SINR. Could anyone clarify the rationale behind including both algorithms and when one might be preferred over the other?
Thanks a lotHi all,
I’ve noticed that the new version of the 5G Toolbox includes two different algorithms for calculating Rank Indication (RI): ‘MaxSINR’ and ‘MaxSE’. The ‘MaxSINR’ algorithm selects the RI based on maximizing the SINR, while ‘MaxSE’ selects it based on maximizing spectral efficiency.
I was under the impression that the standard approach was to select the rank that maximizes SINR. Could anyone clarify the rationale behind including both algorithms and when one might be preferred over the other?
Thanks a lot Hi all,
I’ve noticed that the new version of the 5G Toolbox includes two different algorithms for calculating Rank Indication (RI): ‘MaxSINR’ and ‘MaxSE’. The ‘MaxSINR’ algorithm selects the RI based on maximizing the SINR, while ‘MaxSE’ selects it based on maximizing spectral efficiency.
I was under the impression that the standard approach was to select the rank that maximizes SINR. Could anyone clarify the rationale behind including both algorithms and when one might be preferred over the other?
Thanks a lot 5g, ri, sinr, spectral efficiency MATLAB Answers — New Questions
Set a day of no availability for the complete business
Hello,
I’ve set up the booking page this way:
General availability: bookWhenStaffAreFree.
Custom availability:
Start: 04-09-2024
End : 04-09-2024
notBookable
However when I launch the booking page 04-09-2024 is shown as bookable date.
¿Is there something wrong in my setup?
Thank you
Hello,I’ve set up the booking page this way:General availability: bookWhenStaffAreFree.Custom availability: Start: 04-09-2024 End : 04-09-2024 notBookableHowever when I launch the booking page 04-09-2024 is shown as bookable date.¿Is there something wrong in my setup? Thank you Read More
Why does the value of “PRBSetType — PRB allocation type” change to (VRB) through code even if I set it as (PRB) in the configuration?
Why does the value of "PRBSetType — PRB allocation type" change to (VRB) through code even if I set it as (PRB) in the configuration?
Specifically, "getPXSCHobject" function doesn’t read the input value of "PRBSetType — PRB allocation type" and always sets it by default value (VRB).
And as a result, code always go through one case of the two possible cases -PRBsetType = VRB-, so we can’t get the results when we want to set PRBsetType as (PRB).
The two possible cases are inserted below:
Case 1: PRBsetType = PRB
Case 2: PRBsetType = VRBWhy does the value of "PRBSetType — PRB allocation type" change to (VRB) through code even if I set it as (PRB) in the configuration?
Specifically, "getPXSCHobject" function doesn’t read the input value of "PRBSetType — PRB allocation type" and always sets it by default value (VRB).
And as a result, code always go through one case of the two possible cases -PRBsetType = VRB-, so we can’t get the results when we want to set PRBsetType as (PRB).
The two possible cases are inserted below:
Case 1: PRBsetType = PRB
Case 2: PRBsetType = VRB Why does the value of "PRBSetType — PRB allocation type" change to (VRB) through code even if I set it as (PRB) in the configuration?
Specifically, "getPXSCHobject" function doesn’t read the input value of "PRBSetType — PRB allocation type" and always sets it by default value (VRB).
And as a result, code always go through one case of the two possible cases -PRBsetType = VRB-, so we can’t get the results when we want to set PRBsetType as (PRB).
The two possible cases are inserted below:
Case 1: PRBsetType = PRB
Case 2: PRBsetType = VRB 5g, 5g toolbox, vrbinterleaving MATLAB Answers — New Questions
Average code length and entropy
Hello,
I have an uin16 vector and I got the Huffman code from the built-in functions in MATLAB. The thing is that the entropy of this file is different from the average code length that I’ve got from the Huffman code. Isn’t the average code length supposed to be equal to the entropy of the file?
Thanks.Hello,
I have an uin16 vector and I got the Huffman code from the built-in functions in MATLAB. The thing is that the entropy of this file is different from the average code length that I’ve got from the Huffman code. Isn’t the average code length supposed to be equal to the entropy of the file?
Thanks. Hello,
I have an uin16 vector and I got the Huffman code from the built-in functions in MATLAB. The thing is that the entropy of this file is different from the average code length that I’ve got from the Huffman code. Isn’t the average code length supposed to be equal to the entropy of the file?
Thanks. huffman, average code length, entropy MATLAB Answers — New Questions
Data Unload from Snowflake to ADLS gen 2 using adf
Hi Everyone,
I am trying to unload data from snowflake into our Azure ADLS Gen 2 container using ADF. In ADF, I am trying to create a new linked service for the sink on ADLS Gen 1 and using ADLS Gen 2 SAS URI, if I directly use the SAS credentials it gives me a warning saying it Will publish immediately to our main branch, to avoid this I even tried putting the SAS credentials under our key vault and retrieving from key vault this way it would not publish to the main branch immediately. But even after this, I get an error saying the SAS URI is not constructed in proper format in Key vault, have followed the syntax shown in the error as well. Still doesn’t work, any suggestions or help is greatly appreciated.
thank you!
Hi Everyone, I am trying to unload data from snowflake into our Azure ADLS Gen 2 container using ADF. In ADF, I am trying to create a new linked service for the sink on ADLS Gen 1 and using ADLS Gen 2 SAS URI, if I directly use the SAS credentials it gives me a warning saying it Will publish immediately to our main branch, to avoid this I even tried putting the SAS credentials under our key vault and retrieving from key vault this way it would not publish to the main branch immediately. But even after this, I get an error saying the SAS URI is not constructed in proper format in Key vault, have followed the syntax shown in the error as well. Still doesn’t work, any suggestions or help is greatly appreciated. thank you! Read More
Distance between Latitude and Longitude in Excel
How can I derive the distance between two points in Excel given Latitude and Longitudes?
How can I derive the distance between two points in Excel given Latitude and Longitudes? Read More
HELP 24 h2 dowload Failure
Last night I was abt 99% of way through copying 24h2. and it failrd on the 8gb laptop-do not have failure error messaqe. Today there is no “sessions” icon. I need the address where I can copy 24h2 on a 23h2 laptop.
Renee
Last night I was abt 99% of way through copying 24h2. and it failrd on the 8gb laptop-do not have failure error messaqe. Today there is no “sessions” icon. I need the address where I can copy 24h2 on a 23h2 laptop. Renee Read More
Unable to save Word documents to OneDrive
Hello.
Lately, I have been unable to save my newly created word documents on OneDrive. When I press « save » and select a folder in my OneDrive, I then receive two successive messages [photos attached]’
« Can’t copy file. Office can’t save a copy of your file right now. Please try again later. »
then
« Can’t save file. Sorry, something went wrong. Please try again later »
When I edit documents that were created before the problem occurred, the changes I make take a much longer time than usually to automatically save (sometimes they don’t at all).
I am using Word on an iPad.
Thank you for your time, have a good day.
Hello. Lately, I have been unable to save my newly created word documents on OneDrive. When I press « save » and select a folder in my OneDrive, I then receive two successive messages [photos attached]’ « Can’t copy file. Office can’t save a copy of your file right now. Please try again later. »then « Can’t save file. Sorry, something went wrong. Please try again later » When I edit documents that were created before the problem occurred, the changes I make take a much longer time than usually to automatically save (sometimes they don’t at all). I am using Word on an iPad. Thank you for your time, have a good day. Read More
Function to capitalize first letter in each word in string but forces all other letters to be lowercase
Does anyone know how to create a function which accepts a string and capitalizes the first letter in each word of the string, but also forces the other letters to be lowercase?
Any advice would be greatly appreciated!!
This is my attempt so far:
str=[‘this is a TEST’];
for i=1:length(str);
if str(1,i(1));
str= upper(str);
else str(1,i);
str= lower(str);
end
endDoes anyone know how to create a function which accepts a string and capitalizes the first letter in each word of the string, but also forces the other letters to be lowercase?
Any advice would be greatly appreciated!!
This is my attempt so far:
str=[‘this is a TEST’];
for i=1:length(str);
if str(1,i(1));
str= upper(str);
else str(1,i);
str= lower(str);
end
end Does anyone know how to create a function which accepts a string and capitalizes the first letter in each word of the string, but also forces the other letters to be lowercase?
Any advice would be greatly appreciated!!
This is my attempt so far:
str=[‘this is a TEST’];
for i=1:length(str);
if str(1,i(1));
str= upper(str);
else str(1,i);
str= lower(str);
end
end matlab, function, uppercase, live script MATLAB Answers — New Questions
Microsoft Excel wont print
Excel spreadsheet will not print, have never had any problem with this before. When I try to print, a box pops up and reads “We didn’t find anything to print”. help please !
Excel spreadsheet will not print, have never had any problem with this before. When I try to print, a box pops up and reads “We didn’t find anything to print”. help please ! Read More
error in task 6 of robotic vacuum stateflow
says that the transition is not correct, but is the same as the solutionsays that the transition is not correct, but is the same as the solution says that the transition is not correct, but is the same as the solution stateflow, task 6, robotic vacuum MATLAB Answers — New Questions
Extract only diagonal elements from matrix
I have a matrix in one variable and a list of coordinates in another variable. Is there a way to extract only the matching pairs of coordinate from the matrix? I.e. X(1),Y(1); X(2), Y(2)…
I can extract all of the permutations (X1, Y1; X1 Y2 …X2,Y1 … etc) and then take the diagonal, but I was wondering if there was a simple solution I’m missing to only extract the matched pairs.
Thanks,
Will
%Data
mat = rand(100);
%Coordinates
x_coord = round(rand(10,1)*100);
y_coord = round(rand(10,1)*100);
%Extract coordinates
extracted_coord = diag(mat(x_coord,y_coord));I have a matrix in one variable and a list of coordinates in another variable. Is there a way to extract only the matching pairs of coordinate from the matrix? I.e. X(1),Y(1); X(2), Y(2)…
I can extract all of the permutations (X1, Y1; X1 Y2 …X2,Y1 … etc) and then take the diagonal, but I was wondering if there was a simple solution I’m missing to only extract the matched pairs.
Thanks,
Will
%Data
mat = rand(100);
%Coordinates
x_coord = round(rand(10,1)*100);
y_coord = round(rand(10,1)*100);
%Extract coordinates
extracted_coord = diag(mat(x_coord,y_coord)); I have a matrix in one variable and a list of coordinates in another variable. Is there a way to extract only the matching pairs of coordinate from the matrix? I.e. X(1),Y(1); X(2), Y(2)…
I can extract all of the permutations (X1, Y1; X1 Y2 …X2,Y1 … etc) and then take the diagonal, but I was wondering if there was a simple solution I’m missing to only extract the matched pairs.
Thanks,
Will
%Data
mat = rand(100);
%Coordinates
x_coord = round(rand(10,1)*100);
y_coord = round(rand(10,1)*100);
%Extract coordinates
extracted_coord = diag(mat(x_coord,y_coord)); matrix manipulation, indexing MATLAB Answers — New Questions
There is an error in the GitHub Foundations course
I started going through the GitHub Foundations Microsoft Learn course a few weeks ago. I got to Module 7, “Communicate effectively on GitHub using Markdown”. I was in Unit 3, “Communicate using Markdown”, when the instructions told me to go to a tab on the page named, “File changed”.
There is no tab on that page named “File changed”.
It’s been a week trying to find out what the answer is to my problem. Please, help me to continue doing this course!!!
I started going through the GitHub Foundations Microsoft Learn course a few weeks ago. I got to Module 7, “Communicate effectively on GitHub using Markdown”. I was in Unit 3, “Communicate using Markdown”, when the instructions told me to go to a tab on the page named, “File changed”. There is no tab on that page named “File changed”. It’s been a week trying to find out what the answer is to my problem. Please, help me to continue doing this course!!! Read More
Formula for when one cell equals another cell & Resulting Cell is Yes
Need a formula of when one cell equals another cell (i.e. address), then the third cell automatically populates the text “Yes”.
Example: A2 Cell equals B2 (A2 & B2 are address text content) which results in C2 being “Yes”.
Thanks
Need a formula of when one cell equals another cell (i.e. address), then the third cell automatically populates the text “Yes”. Example: A2 Cell equals B2 (A2 & B2 are address text content) which results in C2 being “Yes”. Thanks Read More
how to set initial signal out from relay simulink
Hello all, Paul @Stephen23
I have simulink model with relay bock.
this relay block switch on when the value reach 100 and the output signal is 1 and switch off when reach 20 and the output signal is 0.
my problem is that the relay initial output is always off, this means when the initial value is for example 44 the out out is 0.
but in some cases I want to be my initial output is on (1)
How can i change the initial output signal?
best regards, AhmadHello all, Paul @Stephen23
I have simulink model with relay bock.
this relay block switch on when the value reach 100 and the output signal is 1 and switch off when reach 20 and the output signal is 0.
my problem is that the relay initial output is always off, this means when the initial value is for example 44 the out out is 0.
but in some cases I want to be my initial output is on (1)
How can i change the initial output signal?
best regards, Ahmad Hello all, Paul @Stephen23
I have simulink model with relay bock.
this relay block switch on when the value reach 100 and the output signal is 1 and switch off when reach 20 and the output signal is 0.
my problem is that the relay initial output is always off, this means when the initial value is for example 44 the out out is 0.
but in some cases I want to be my initial output is on (1)
How can i change the initial output signal?
best regards, Ahmad relay block MATLAB Answers — New Questions
boxchart – different box width according to number of data points
Hi,
I am looking for a way to set the width of a boxplot according to the number of datapoints within a boxchart.
See attachet an example how it looks like in R. When I try this in matlab, I get an error, because matlab accepts only scalars and no vectors. I would prefer to do all my statistics with matlab, so this function would be very helpful.
Thank you
MarkusHi,
I am looking for a way to set the width of a boxplot according to the number of datapoints within a boxchart.
See attachet an example how it looks like in R. When I try this in matlab, I get an error, because matlab accepts only scalars and no vectors. I would prefer to do all my statistics with matlab, so this function would be very helpful.
Thank you
Markus Hi,
I am looking for a way to set the width of a boxplot according to the number of datapoints within a boxchart.
See attachet an example how it looks like in R. When I try this in matlab, I get an error, because matlab accepts only scalars and no vectors. I would prefer to do all my statistics with matlab, so this function would be very helpful.
Thank you
Markus boxchart, width of box MATLAB Answers — New Questions