Tag Archives: matlab
Stoping / breaking ginput (or ginput(n)) before entrering any value / clicking any single time
I’d like to be able to break the execution of ginput even before any interaction (clicks) has been made, but pressing Return does not seem to work in this case (it works otherwise).
Any suggestions?
ThanksI’d like to be able to break the execution of ginput even before any interaction (clicks) has been made, but pressing Return does not seem to work in this case (it works otherwise).
Any suggestions?
Thanks I’d like to be able to break the execution of ginput even before any interaction (clicks) has been made, but pressing Return does not seem to work in this case (it works otherwise).
Any suggestions?
Thanks matlab function MATLAB Answers — New Questions
How can fix equation and run it after we get from conversation language maple?
i have a long equation which i get from maple by conversation language but thus equation are to long and when i put in my matlab worksheet and do run is not run i know what is problem is multiplication * and / is not like that .* and ./ dont have a dot beside How i can fixed for all equation there is any way or method for doing that automatically? for ploting and other stuff
syms x y
0.12e2 * (0.9e1 / 0.16e2 * exp(0.3e1 / 0.40e2 * y + 0.6818750000e0 – 0.651e3 / 0.1600e4 * exp(0.1e1) + 0.3e1 / 0.4e1 * x) + 0.182979e6 / 0.7876400e7 * exp(0.23e2 / 0.200e3 * y + 0.1032541667e1 – 0.14821e5 / 0.24000e5 * exp(0.1e1) + 0.27e2 / 0.20e2 * x) + 0.9e1 / 0.25e2 * exp(y / 0.25e2 + 0.3506666667e0 – 0.79e2 / 0.375e3 * exp(0.1e1) + 0.3e1 / 0.5e1 * x) + 0.85547e5 / 0.200300e6 * exp(0.113e3 / 0.200e3 * y + 0.8981666667e0 + 0.4601e4 / 0.6000e4 * exp(0.1e1) + 0.11e2 / 0.10e2 * x) + 0.27660298643e11 / 0.5853055233200e13 * exp(0.16e2 / 0.25e2 * y + 0.1580041667e1 + 0.8639e4 / 0.24000e5 * exp(0.1e1) + 0.37e2 / 0.20e2 * x) + 0.19925e5 / 0.41552e5 * exp(0.3e1 / 0.5e1 * y + 0.1229375000e1 + 0.913e3 / 0.1600e4 * exp(0.1e1) + 0.5e1 / 0.4e1 * x) + exp(0.21e2 / 0.40e2 * y + 0.219e3 / 0.400e3 + 0.391e3 / 0.400e3 * exp(0.1e1) + x / 0.2e1) / 0.4e1) / (0.1e1 + exp(0.3e1 / 0.40e2 * y + 0.6818750000e0 – 0.651e3 / 0.1600e4 * exp(0.1e1) + 0.3e1 / 0.4e1 * x) + 0.251e3 / 0.19691e5 * exp(0.23e2 / 0.200e3 * y + 0.1032541667e1 – 0.14821e5 / 0.24000e5 * exp(0.1e1) + 0.27e2 / 0.20e2 * x) + exp(y / 0.25e2 + 0.3506666667e0 – 0.79e2 / 0.375e3 * exp(0.1e1) + 0.3e1 / 0.5e1 * x) + 0.707e3 / 0.2003e4 * exp(0.113e3 / 0.200e3 * y + 0.8981666667e0 + 0.4601e4 / 0.6000e4 * exp(0.1e1) + 0.11e2 / 0.10e2 * x) + 0.20204747e8 / 0.14632638083e11 * exp(0.16e2 / 0.25e2 * y + 0.1580041667e1 + 0.8639e4 / 0.24000e5 * exp(0.1e1) + 0.37e2 / 0.20e2 * x) + 0.797e3 / 0.2597e4 * exp(0.3e1 / 0.5e1 * y + 0.1229375000e1 + 0.913e3 / 0.1600e4 * exp(0.1e1) + 0.5e1 / 0.4e1 * x) + exp(0.21e2 / 0.40e2 * y + 0.219e3 / 0.400e3 + 0.391e3 / 0.400e3 * exp(0.1e1) + x / 0.2e1)) – 0.12e2 * (0.3e1 / 0.4e1 * exp(0.3e1 / 0.40e2 * y + 0.6818750000e0 – 0.651e3 / 0.1600e4 * exp(0.1e1) + 0.3e1 / 0.4e1 * x) + 0.6777e4 / 0.393820e6 * exp(0.23e2 / 0.200e3 * y + 0.1032541667e1 – 0.14821e5 / 0.24000e5 * exp(0.1e1) + 0.27e2 / 0.20e2 * x) + 0.3e1 / 0.5e1 * exp(y / 0.25e2 + 0.3506666667e0 – 0.79e2 / 0.375e3 * exp(0.1e1) + 0.3e1 / 0.5e1 * x) + 0.7777e4 / 0.20030e5 * exp(0.113e3 / 0.200e3 * y + 0.8981666667e0 + 0.4601e4 / 0.6000e4 * exp(0.1e1) + 0.11e2 / 0.10e2 * x) + 0.747575639e9 / 0.292652761660e12 * exp(0.16e2 / 0.25e2 * y + 0.1580041667e1 + 0.8639e4 / 0.24000e5 * exp(0.1e1) + 0.37e2 / 0.20e2 * x) + 0.3985e4 / 0.10388e5 * exp(0.3e1 / 0.5e1 * y + 0.1229375000e1 + 0.913e3 / 0.1600e4 * exp(0.1e1) + 0.5e1 / 0.4e1 * x) + exp(0.21e2 / 0.40e2 * y + 0.219e3 / 0.400e3 + 0.391e3 / 0.400e3 * exp(0.1e1) + x / 0.2e1) / 0.2e1) ^ 2 / (0.1e1 + exp(0.3e1 / 0.40e2 * y + 0.6818750000e0 – 0.651e3 / 0.1600e4 * exp(0.1e1) + 0.3e1 / 0.4e1 * x) + 0.251e3 / 0.19691e5 * exp(0.23e2 / 0.200e3 * y + 0.1032541667e1 – 0.14821e5 / 0.24000e5 * exp(0.1e1) + 0.27e2 / 0.20e2 * x) + exp(y / 0.25e2 + 0.3506666667e0 – 0.79e2 / 0.375e3 * exp(0.1e1) + 0.3e1 / 0.5e1 * x) + 0.707e3 / 0.2003e4 * exp(0.113e3 / 0.200e3 * y + 0.8981666667e0 + 0.4601e4 / 0.6000e4 * exp(0.1e1) + 0.11e2 / 0.10e2 * x) + 0.20204747e8 / 0.14632638083e11 * exp(0.16e2 / 0.25e2 * y + 0.1580041667e1 + 0.8639e4 / 0.24000e5 * exp(0.1e1) + 0.37e2 / 0.20e2 * x) + 0.797e3 / 0.2597e4 * exp(0.3e1 / 0.5e1 * y + 0.1229375000e1 + 0.913e3 / 0.1600e4 * exp(0.1e1) + 0.5e1 / 0.4e1 * x) + exp(0.21e2 / 0.40e2 * y + 0.219e3 / 0.400e3 + 0.391e3 / 0.400e3 * exp(0.1e1) + x / 0.2e1)) ^ 2i have a long equation which i get from maple by conversation language but thus equation are to long and when i put in my matlab worksheet and do run is not run i know what is problem is multiplication * and / is not like that .* and ./ dont have a dot beside How i can fixed for all equation there is any way or method for doing that automatically? for ploting and other stuff
syms x y
0.12e2 * (0.9e1 / 0.16e2 * exp(0.3e1 / 0.40e2 * y + 0.6818750000e0 – 0.651e3 / 0.1600e4 * exp(0.1e1) + 0.3e1 / 0.4e1 * x) + 0.182979e6 / 0.7876400e7 * exp(0.23e2 / 0.200e3 * y + 0.1032541667e1 – 0.14821e5 / 0.24000e5 * exp(0.1e1) + 0.27e2 / 0.20e2 * x) + 0.9e1 / 0.25e2 * exp(y / 0.25e2 + 0.3506666667e0 – 0.79e2 / 0.375e3 * exp(0.1e1) + 0.3e1 / 0.5e1 * x) + 0.85547e5 / 0.200300e6 * exp(0.113e3 / 0.200e3 * y + 0.8981666667e0 + 0.4601e4 / 0.6000e4 * exp(0.1e1) + 0.11e2 / 0.10e2 * x) + 0.27660298643e11 / 0.5853055233200e13 * exp(0.16e2 / 0.25e2 * y + 0.1580041667e1 + 0.8639e4 / 0.24000e5 * exp(0.1e1) + 0.37e2 / 0.20e2 * x) + 0.19925e5 / 0.41552e5 * exp(0.3e1 / 0.5e1 * y + 0.1229375000e1 + 0.913e3 / 0.1600e4 * exp(0.1e1) + 0.5e1 / 0.4e1 * x) + exp(0.21e2 / 0.40e2 * y + 0.219e3 / 0.400e3 + 0.391e3 / 0.400e3 * exp(0.1e1) + x / 0.2e1) / 0.4e1) / (0.1e1 + exp(0.3e1 / 0.40e2 * y + 0.6818750000e0 – 0.651e3 / 0.1600e4 * exp(0.1e1) + 0.3e1 / 0.4e1 * x) + 0.251e3 / 0.19691e5 * exp(0.23e2 / 0.200e3 * y + 0.1032541667e1 – 0.14821e5 / 0.24000e5 * exp(0.1e1) + 0.27e2 / 0.20e2 * x) + exp(y / 0.25e2 + 0.3506666667e0 – 0.79e2 / 0.375e3 * exp(0.1e1) + 0.3e1 / 0.5e1 * x) + 0.707e3 / 0.2003e4 * exp(0.113e3 / 0.200e3 * y + 0.8981666667e0 + 0.4601e4 / 0.6000e4 * exp(0.1e1) + 0.11e2 / 0.10e2 * x) + 0.20204747e8 / 0.14632638083e11 * exp(0.16e2 / 0.25e2 * y + 0.1580041667e1 + 0.8639e4 / 0.24000e5 * exp(0.1e1) + 0.37e2 / 0.20e2 * x) + 0.797e3 / 0.2597e4 * exp(0.3e1 / 0.5e1 * y + 0.1229375000e1 + 0.913e3 / 0.1600e4 * exp(0.1e1) + 0.5e1 / 0.4e1 * x) + exp(0.21e2 / 0.40e2 * y + 0.219e3 / 0.400e3 + 0.391e3 / 0.400e3 * exp(0.1e1) + x / 0.2e1)) – 0.12e2 * (0.3e1 / 0.4e1 * exp(0.3e1 / 0.40e2 * y + 0.6818750000e0 – 0.651e3 / 0.1600e4 * exp(0.1e1) + 0.3e1 / 0.4e1 * x) + 0.6777e4 / 0.393820e6 * exp(0.23e2 / 0.200e3 * y + 0.1032541667e1 – 0.14821e5 / 0.24000e5 * exp(0.1e1) + 0.27e2 / 0.20e2 * x) + 0.3e1 / 0.5e1 * exp(y / 0.25e2 + 0.3506666667e0 – 0.79e2 / 0.375e3 * exp(0.1e1) + 0.3e1 / 0.5e1 * x) + 0.7777e4 / 0.20030e5 * exp(0.113e3 / 0.200e3 * y + 0.8981666667e0 + 0.4601e4 / 0.6000e4 * exp(0.1e1) + 0.11e2 / 0.10e2 * x) + 0.747575639e9 / 0.292652761660e12 * exp(0.16e2 / 0.25e2 * y + 0.1580041667e1 + 0.8639e4 / 0.24000e5 * exp(0.1e1) + 0.37e2 / 0.20e2 * x) + 0.3985e4 / 0.10388e5 * exp(0.3e1 / 0.5e1 * y + 0.1229375000e1 + 0.913e3 / 0.1600e4 * exp(0.1e1) + 0.5e1 / 0.4e1 * x) + exp(0.21e2 / 0.40e2 * y + 0.219e3 / 0.400e3 + 0.391e3 / 0.400e3 * exp(0.1e1) + x / 0.2e1) / 0.2e1) ^ 2 / (0.1e1 + exp(0.3e1 / 0.40e2 * y + 0.6818750000e0 – 0.651e3 / 0.1600e4 * exp(0.1e1) + 0.3e1 / 0.4e1 * x) + 0.251e3 / 0.19691e5 * exp(0.23e2 / 0.200e3 * y + 0.1032541667e1 – 0.14821e5 / 0.24000e5 * exp(0.1e1) + 0.27e2 / 0.20e2 * x) + exp(y / 0.25e2 + 0.3506666667e0 – 0.79e2 / 0.375e3 * exp(0.1e1) + 0.3e1 / 0.5e1 * x) + 0.707e3 / 0.2003e4 * exp(0.113e3 / 0.200e3 * y + 0.8981666667e0 + 0.4601e4 / 0.6000e4 * exp(0.1e1) + 0.11e2 / 0.10e2 * x) + 0.20204747e8 / 0.14632638083e11 * exp(0.16e2 / 0.25e2 * y + 0.1580041667e1 + 0.8639e4 / 0.24000e5 * exp(0.1e1) + 0.37e2 / 0.20e2 * x) + 0.797e3 / 0.2597e4 * exp(0.3e1 / 0.5e1 * y + 0.1229375000e1 + 0.913e3 / 0.1600e4 * exp(0.1e1) + 0.5e1 / 0.4e1 * x) + exp(0.21e2 / 0.40e2 * y + 0.219e3 / 0.400e3 + 0.391e3 / 0.400e3 * exp(0.1e1) + x / 0.2e1)) ^ 2 i have a long equation which i get from maple by conversation language but thus equation are to long and when i put in my matlab worksheet and do run is not run i know what is problem is multiplication * and / is not like that .* and ./ dont have a dot beside How i can fixed for all equation there is any way or method for doing that automatically? for ploting and other stuff
syms x y
0.12e2 * (0.9e1 / 0.16e2 * exp(0.3e1 / 0.40e2 * y + 0.6818750000e0 – 0.651e3 / 0.1600e4 * exp(0.1e1) + 0.3e1 / 0.4e1 * x) + 0.182979e6 / 0.7876400e7 * exp(0.23e2 / 0.200e3 * y + 0.1032541667e1 – 0.14821e5 / 0.24000e5 * exp(0.1e1) + 0.27e2 / 0.20e2 * x) + 0.9e1 / 0.25e2 * exp(y / 0.25e2 + 0.3506666667e0 – 0.79e2 / 0.375e3 * exp(0.1e1) + 0.3e1 / 0.5e1 * x) + 0.85547e5 / 0.200300e6 * exp(0.113e3 / 0.200e3 * y + 0.8981666667e0 + 0.4601e4 / 0.6000e4 * exp(0.1e1) + 0.11e2 / 0.10e2 * x) + 0.27660298643e11 / 0.5853055233200e13 * exp(0.16e2 / 0.25e2 * y + 0.1580041667e1 + 0.8639e4 / 0.24000e5 * exp(0.1e1) + 0.37e2 / 0.20e2 * x) + 0.19925e5 / 0.41552e5 * exp(0.3e1 / 0.5e1 * y + 0.1229375000e1 + 0.913e3 / 0.1600e4 * exp(0.1e1) + 0.5e1 / 0.4e1 * x) + exp(0.21e2 / 0.40e2 * y + 0.219e3 / 0.400e3 + 0.391e3 / 0.400e3 * exp(0.1e1) + x / 0.2e1) / 0.4e1) / (0.1e1 + exp(0.3e1 / 0.40e2 * y + 0.6818750000e0 – 0.651e3 / 0.1600e4 * exp(0.1e1) + 0.3e1 / 0.4e1 * x) + 0.251e3 / 0.19691e5 * exp(0.23e2 / 0.200e3 * y + 0.1032541667e1 – 0.14821e5 / 0.24000e5 * exp(0.1e1) + 0.27e2 / 0.20e2 * x) + exp(y / 0.25e2 + 0.3506666667e0 – 0.79e2 / 0.375e3 * exp(0.1e1) + 0.3e1 / 0.5e1 * x) + 0.707e3 / 0.2003e4 * exp(0.113e3 / 0.200e3 * y + 0.8981666667e0 + 0.4601e4 / 0.6000e4 * exp(0.1e1) + 0.11e2 / 0.10e2 * x) + 0.20204747e8 / 0.14632638083e11 * exp(0.16e2 / 0.25e2 * y + 0.1580041667e1 + 0.8639e4 / 0.24000e5 * exp(0.1e1) + 0.37e2 / 0.20e2 * x) + 0.797e3 / 0.2597e4 * exp(0.3e1 / 0.5e1 * y + 0.1229375000e1 + 0.913e3 / 0.1600e4 * exp(0.1e1) + 0.5e1 / 0.4e1 * x) + exp(0.21e2 / 0.40e2 * y + 0.219e3 / 0.400e3 + 0.391e3 / 0.400e3 * exp(0.1e1) + x / 0.2e1)) – 0.12e2 * (0.3e1 / 0.4e1 * exp(0.3e1 / 0.40e2 * y + 0.6818750000e0 – 0.651e3 / 0.1600e4 * exp(0.1e1) + 0.3e1 / 0.4e1 * x) + 0.6777e4 / 0.393820e6 * exp(0.23e2 / 0.200e3 * y + 0.1032541667e1 – 0.14821e5 / 0.24000e5 * exp(0.1e1) + 0.27e2 / 0.20e2 * x) + 0.3e1 / 0.5e1 * exp(y / 0.25e2 + 0.3506666667e0 – 0.79e2 / 0.375e3 * exp(0.1e1) + 0.3e1 / 0.5e1 * x) + 0.7777e4 / 0.20030e5 * exp(0.113e3 / 0.200e3 * y + 0.8981666667e0 + 0.4601e4 / 0.6000e4 * exp(0.1e1) + 0.11e2 / 0.10e2 * x) + 0.747575639e9 / 0.292652761660e12 * exp(0.16e2 / 0.25e2 * y + 0.1580041667e1 + 0.8639e4 / 0.24000e5 * exp(0.1e1) + 0.37e2 / 0.20e2 * x) + 0.3985e4 / 0.10388e5 * exp(0.3e1 / 0.5e1 * y + 0.1229375000e1 + 0.913e3 / 0.1600e4 * exp(0.1e1) + 0.5e1 / 0.4e1 * x) + exp(0.21e2 / 0.40e2 * y + 0.219e3 / 0.400e3 + 0.391e3 / 0.400e3 * exp(0.1e1) + x / 0.2e1) / 0.2e1) ^ 2 / (0.1e1 + exp(0.3e1 / 0.40e2 * y + 0.6818750000e0 – 0.651e3 / 0.1600e4 * exp(0.1e1) + 0.3e1 / 0.4e1 * x) + 0.251e3 / 0.19691e5 * exp(0.23e2 / 0.200e3 * y + 0.1032541667e1 – 0.14821e5 / 0.24000e5 * exp(0.1e1) + 0.27e2 / 0.20e2 * x) + exp(y / 0.25e2 + 0.3506666667e0 – 0.79e2 / 0.375e3 * exp(0.1e1) + 0.3e1 / 0.5e1 * x) + 0.707e3 / 0.2003e4 * exp(0.113e3 / 0.200e3 * y + 0.8981666667e0 + 0.4601e4 / 0.6000e4 * exp(0.1e1) + 0.11e2 / 0.10e2 * x) + 0.20204747e8 / 0.14632638083e11 * exp(0.16e2 / 0.25e2 * y + 0.1580041667e1 + 0.8639e4 / 0.24000e5 * exp(0.1e1) + 0.37e2 / 0.20e2 * x) + 0.797e3 / 0.2597e4 * exp(0.3e1 / 0.5e1 * y + 0.1229375000e1 + 0.913e3 / 0.1600e4 * exp(0.1e1) + 0.5e1 / 0.4e1 * x) + exp(0.21e2 / 0.40e2 * y + 0.219e3 / 0.400e3 + 0.391e3 / 0.400e3 * exp(0.1e1) + x / 0.2e1)) ^ 2 matlab MATLAB Answers — New Questions
connecting concenation layer error
Hello everyone. I have an issue. In the following code, I cant connect concatenationLayer = concat to featureAttention & temporalAttention. Would you please help?
Error Message
Caused by:
Layer ‘concat’: Unconnected input. Each layer input must be connected to the output of another layer.
++
numFeatures = size(XTrain, 2);
numClasses = numel(categories(YTrain));
% Feature-Level Attention
featureAttention = [
fullyConnectedLayer(64, ‘Name’, ‘fc_feature_attention’)
reluLayer(‘Name’, ‘relu_feature_attention’)
fullyConnectedLayer(1, ‘Name’, ‘fc_feature_weights’)
softmaxLayer(‘Name’, ‘feature_attention_weights’)
];
% Temporal Attention (not used for Iris dataset, but included for completeness)
temporalAttention = [
fullyConnectedLayer(numFeatures, ‘Name’, ‘input_sequence’)
lstmLayer(64, ‘OutputMode’, ‘sequence’, ‘Name’, ‘lstm_temporal_attention’)
fullyConnectedLayer(1, ‘Name’, ‘fc_temporal_weights’)
softmaxLayer(‘Name’, ‘temporal_attention_weights’)
];
% Combine into Hierarchical Attention
hierarchicalAttention = [
featureInputLayer(numFeatures, ‘Name’, ‘input_features’) % Input layer for features
featureAttention
temporalAttention
concatenationLayer(1, 2, ‘Name’, ‘concat’) % Concatenate feature and temporal attention outputs
];Hello everyone. I have an issue. In the following code, I cant connect concatenationLayer = concat to featureAttention & temporalAttention. Would you please help?
Error Message
Caused by:
Layer ‘concat’: Unconnected input. Each layer input must be connected to the output of another layer.
++
numFeatures = size(XTrain, 2);
numClasses = numel(categories(YTrain));
% Feature-Level Attention
featureAttention = [
fullyConnectedLayer(64, ‘Name’, ‘fc_feature_attention’)
reluLayer(‘Name’, ‘relu_feature_attention’)
fullyConnectedLayer(1, ‘Name’, ‘fc_feature_weights’)
softmaxLayer(‘Name’, ‘feature_attention_weights’)
];
% Temporal Attention (not used for Iris dataset, but included for completeness)
temporalAttention = [
fullyConnectedLayer(numFeatures, ‘Name’, ‘input_sequence’)
lstmLayer(64, ‘OutputMode’, ‘sequence’, ‘Name’, ‘lstm_temporal_attention’)
fullyConnectedLayer(1, ‘Name’, ‘fc_temporal_weights’)
softmaxLayer(‘Name’, ‘temporal_attention_weights’)
];
% Combine into Hierarchical Attention
hierarchicalAttention = [
featureInputLayer(numFeatures, ‘Name’, ‘input_features’) % Input layer for features
featureAttention
temporalAttention
concatenationLayer(1, 2, ‘Name’, ‘concat’) % Concatenate feature and temporal attention outputs
]; Hello everyone. I have an issue. In the following code, I cant connect concatenationLayer = concat to featureAttention & temporalAttention. Would you please help?
Error Message
Caused by:
Layer ‘concat’: Unconnected input. Each layer input must be connected to the output of another layer.
++
numFeatures = size(XTrain, 2);
numClasses = numel(categories(YTrain));
% Feature-Level Attention
featureAttention = [
fullyConnectedLayer(64, ‘Name’, ‘fc_feature_attention’)
reluLayer(‘Name’, ‘relu_feature_attention’)
fullyConnectedLayer(1, ‘Name’, ‘fc_feature_weights’)
softmaxLayer(‘Name’, ‘feature_attention_weights’)
];
% Temporal Attention (not used for Iris dataset, but included for completeness)
temporalAttention = [
fullyConnectedLayer(numFeatures, ‘Name’, ‘input_sequence’)
lstmLayer(64, ‘OutputMode’, ‘sequence’, ‘Name’, ‘lstm_temporal_attention’)
fullyConnectedLayer(1, ‘Name’, ‘fc_temporal_weights’)
softmaxLayer(‘Name’, ‘temporal_attention_weights’)
];
% Combine into Hierarchical Attention
hierarchicalAttention = [
featureInputLayer(numFeatures, ‘Name’, ‘input_features’) % Input layer for features
featureAttention
temporalAttention
concatenationLayer(1, 2, ‘Name’, ‘concat’) % Concatenate feature and temporal attention outputs
]; neural networks, layers MATLAB Answers — New Questions
How do I replace colordef?
Using ‘colordef’ in my code (some rather old) gives "Warning: colordef will be removed in a future release." I can’t find any clear guidance on a replacement. Probably something like set(0, ..?Using ‘colordef’ in my code (some rather old) gives "Warning: colordef will be removed in a future release." I can’t find any clear guidance on a replacement. Probably something like set(0, ..? Using ‘colordef’ in my code (some rather old) gives "Warning: colordef will be removed in a future release." I can’t find any clear guidance on a replacement. Probably something like set(0, ..? colordef MATLAB Answers — New Questions
matlab Ctrl-R not working to running the program
I wanted to update the preferences, especially the shortcut. So I wanted to change shortcut of comment to Alt-3 instead of Ctrl-R, and shortcut of running to Ctrl-R. But when I press Ctrl-R, it wouldn’t run. Then, I tried to use F5 instead, and it was able to run. I first thought it was the Ctrl-R issue, so I change the comment back to Ctrl-R, but this time it worked, it was about to comment out the sentenses. So why is Ctrl-R not working for running the program.I wanted to update the preferences, especially the shortcut. So I wanted to change shortcut of comment to Alt-3 instead of Ctrl-R, and shortcut of running to Ctrl-R. But when I press Ctrl-R, it wouldn’t run. Then, I tried to use F5 instead, and it was able to run. I first thought it was the Ctrl-R issue, so I change the comment back to Ctrl-R, but this time it worked, it was about to comment out the sentenses. So why is Ctrl-R not working for running the program. I wanted to update the preferences, especially the shortcut. So I wanted to change shortcut of comment to Alt-3 instead of Ctrl-R, and shortcut of running to Ctrl-R. But when I press Ctrl-R, it wouldn’t run. Then, I tried to use F5 instead, and it was able to run. I first thought it was the Ctrl-R issue, so I change the comment back to Ctrl-R, but this time it worked, it was about to comment out the sentenses. So why is Ctrl-R not working for running the program. shortcut, matlab MATLAB Answers — New Questions
matlab.engine ImportError
I wanted to call Matlab from Python using the matlab engine. I’m on Macbook Air M3 chip. I have successfully done so and this is a brief summary of the setup:
I used Matlab R2024a Apple Silicon version and Python 3.9.
I created an environment (mac_apple for short) using Anaconda and installed matlab engine by ‘pip install matlabengine==24.1.2’.
I use Spyder as IDE. I was able to import and use the matlab engine without any problem.
Now, I need to use an essential Python pkg, and it is only compatible with the x86 architecture but not the ARM architechture. To work around this:
I created a new environment (mac_86 for short) using Anaconda but configured it to use the x86 architecture by ‘conda config –env –set subdir osx-64’.
I installed the Matlab R2024b Intel version on the same machine. This is because I think when installing matlab engine to this env it will be pulled from the x86 architechture, so I need to install a x86 version (or Intel version) Matlab. I chose a different version than R2024a so that I can install the R2024b in the default location, which I think may save me from some trouble.
Then I installed matlab engine by ‘python -m pip install matlabengine==24.1.2’ (the command recommded by https://pypi.org/project/matlabengine/, I didn’t use this the first time because I wasn’t aware of this recommendation).
In Spyder I switched the Python Interpreter to this new env, but I got ImportError when importing matlab engine. Please see screenshot below. The error message looks like the paths all point to the Apple Silicon version of Malab not the Intel Version.
By any chance, could any one help me figure this out? I don’t understand why this is happening as I’m following pretty much the same procedure I used before. If possible, I’d like a solution that allows me to make both environments work, i.e., use x86-based matlabengine in mac_86 and use Apple silicon-based matlabengine in mac_apple. Thank you in advance!I wanted to call Matlab from Python using the matlab engine. I’m on Macbook Air M3 chip. I have successfully done so and this is a brief summary of the setup:
I used Matlab R2024a Apple Silicon version and Python 3.9.
I created an environment (mac_apple for short) using Anaconda and installed matlab engine by ‘pip install matlabengine==24.1.2’.
I use Spyder as IDE. I was able to import and use the matlab engine without any problem.
Now, I need to use an essential Python pkg, and it is only compatible with the x86 architecture but not the ARM architechture. To work around this:
I created a new environment (mac_86 for short) using Anaconda but configured it to use the x86 architecture by ‘conda config –env –set subdir osx-64’.
I installed the Matlab R2024b Intel version on the same machine. This is because I think when installing matlab engine to this env it will be pulled from the x86 architechture, so I need to install a x86 version (or Intel version) Matlab. I chose a different version than R2024a so that I can install the R2024b in the default location, which I think may save me from some trouble.
Then I installed matlab engine by ‘python -m pip install matlabengine==24.1.2’ (the command recommded by https://pypi.org/project/matlabengine/, I didn’t use this the first time because I wasn’t aware of this recommendation).
In Spyder I switched the Python Interpreter to this new env, but I got ImportError when importing matlab engine. Please see screenshot below. The error message looks like the paths all point to the Apple Silicon version of Malab not the Intel Version.
By any chance, could any one help me figure this out? I don’t understand why this is happening as I’m following pretty much the same procedure I used before. If possible, I’d like a solution that allows me to make both environments work, i.e., use x86-based matlabengine in mac_86 and use Apple silicon-based matlabengine in mac_apple. Thank you in advance! I wanted to call Matlab from Python using the matlab engine. I’m on Macbook Air M3 chip. I have successfully done so and this is a brief summary of the setup:
I used Matlab R2024a Apple Silicon version and Python 3.9.
I created an environment (mac_apple for short) using Anaconda and installed matlab engine by ‘pip install matlabengine==24.1.2’.
I use Spyder as IDE. I was able to import and use the matlab engine without any problem.
Now, I need to use an essential Python pkg, and it is only compatible with the x86 architecture but not the ARM architechture. To work around this:
I created a new environment (mac_86 for short) using Anaconda but configured it to use the x86 architecture by ‘conda config –env –set subdir osx-64’.
I installed the Matlab R2024b Intel version on the same machine. This is because I think when installing matlab engine to this env it will be pulled from the x86 architechture, so I need to install a x86 version (or Intel version) Matlab. I chose a different version than R2024a so that I can install the R2024b in the default location, which I think may save me from some trouble.
Then I installed matlab engine by ‘python -m pip install matlabengine==24.1.2’ (the command recommded by https://pypi.org/project/matlabengine/, I didn’t use this the first time because I wasn’t aware of this recommendation).
In Spyder I switched the Python Interpreter to this new env, but I got ImportError when importing matlab engine. Please see screenshot below. The error message looks like the paths all point to the Apple Silicon version of Malab not the Intel Version.
By any chance, could any one help me figure this out? I don’t understand why this is happening as I’m following pretty much the same procedure I used before. If possible, I’d like a solution that allows me to make both environments work, i.e., use x86-based matlabengine in mac_86 and use Apple silicon-based matlabengine in mac_apple. Thank you in advance! matlab engine, python, mac MATLAB Answers — New Questions
Simulink says that the PID controllers are not used in a model
First time simulinker here and I’m facing some issues with a PID
I’m running a PID controller to modulate the angular velocity of a satellite, I input the measured angular velocity and the desired velocity, find the difference and place it into a PID controller to control a set of reaction wheels which modulate the value of measured agular velocity to 0, but while monitoring the values it seems like only one of my PID’s are working(the one on x axis), but the values are decreasing and it outputs a velocity that makes sense
But I want to know if its a simulink error or if I’m doing something wrong?, and if you see anything stupid or that doesnt make sense please do tellFirst time simulinker here and I’m facing some issues with a PID
I’m running a PID controller to modulate the angular velocity of a satellite, I input the measured angular velocity and the desired velocity, find the difference and place it into a PID controller to control a set of reaction wheels which modulate the value of measured agular velocity to 0, but while monitoring the values it seems like only one of my PID’s are working(the one on x axis), but the values are decreasing and it outputs a velocity that makes sense
But I want to know if its a simulink error or if I’m doing something wrong?, and if you see anything stupid or that doesnt make sense please do tell First time simulinker here and I’m facing some issues with a PID
I’m running a PID controller to modulate the angular velocity of a satellite, I input the measured angular velocity and the desired velocity, find the difference and place it into a PID controller to control a set of reaction wheels which modulate the value of measured agular velocity to 0, but while monitoring the values it seems like only one of my PID’s are working(the one on x axis), but the values are decreasing and it outputs a velocity that makes sense
But I want to know if its a simulink error or if I’m doing something wrong?, and if you see anything stupid or that doesnt make sense please do tell simulink, pid MATLAB Answers — New Questions
Satellite Toolbox” elevation angles between an aircraft and satellite constellation always negative
I’m using satellite toolbox to simulate communication links between an aircraft and a satellite constellation. I used the AER function to calculate the elvation angle but it is always a negative value, is there any reason behind that even if the satellite is not yet reached the horizon?I’m using satellite toolbox to simulate communication links between an aircraft and a satellite constellation. I used the AER function to calculate the elvation angle but it is always a negative value, is there any reason behind that even if the satellite is not yet reached the horizon? I’m using satellite toolbox to simulate communication links between an aircraft and a satellite constellation. I used the AER function to calculate the elvation angle but it is always a negative value, is there any reason behind that even if the satellite is not yet reached the horizon? satcom, satellite MATLAB Answers — New Questions
Error using trainNetwork (line 191) Invalid network.
I receive the following error for my function given below. .Would you please help me to correct the function?
for the following input
YPred = trainAndPredictHADEL(XTrain, YTrain, XTest);
++
% Function to train and predict using HADEL model
function YPred = trainAndPredictHADEL(XTrain, YTrain, XTest)
% Define HADEL model architecture
numFeatures = size(XTrain, 2);
numClasses = numel(categories(YTrain));
% Feature-Level Attention
featureAttention = [
fullyConnectedLayer(64, ‘Name’, ‘fc_feature_attention’)
reluLayer(‘Name’, ‘relu_feature_attention’)
fullyConnectedLayer(1, ‘Name’, ‘fc_feature_weights’)
softmaxLayer(‘Name’, ‘feature_attention_weights’)
];
% Temporal Attention (not used for Iris dataset, but included for completeness)
temporalAttention = [
sequenceInputLayer(numFeatures, ‘Name’, ‘input_sequence’)
lstmLayer(64, ‘OutputMode’, ‘sequence’, ‘Name’, ‘lstm_temporal_attention’)
fullyConnectedLayer(1, ‘Name’, ‘fc_temporal_weights’)
softmaxLayer(‘Name’, ‘temporal_attention_weights’)
];
% Combine into Hierarchical Attention
%%Bu kısmı hata verdi aşağıdaki gibi koydum
% hierarchicalAttention = [
% featureAttention
% temporalAttention
% dotProductLayer(1, ‘Name’, ‘weighted_output’)
% ];
hierarchicalAttention = [
featureAttention
temporalAttention
];
% Add classification layers
layers = [
hierarchicalAttention
fullyConnectedLayer(64, ‘Name’, ‘fc_final’)
reluLayer(‘Name’, ‘relu_final’)
fullyConnectedLayer(numClasses, ‘Name’, ‘fc_output’)
softmaxLayer(‘Name’, ‘softmax_output’)
classificationLayer(‘Name’, ‘output’)
];
% Train the network
options = trainingOptions(‘adam’, …
‘MaxEpochs’, 50, …
‘MiniBatchSize’, 8, …
‘Verbose’, false);
net = trainNetwork(XTrain, YTrain, layers, options);
% Predict on test data
YPred = classify(net, XTest);
end
++
Error
++
Error using trainNetwork (line 191)
Invalid network.
Error in trainAndPredictHADEL (line 54)
net = trainNetwork(XTrain, YTrain, layers, options);
Caused by:
Layer ‘fc_feature_attention’: Unconnected input. Each layer input must be connected to the output of another layer.
Layer ‘input_sequence’: An input layer must be first in the layer array.
++I receive the following error for my function given below. .Would you please help me to correct the function?
for the following input
YPred = trainAndPredictHADEL(XTrain, YTrain, XTest);
++
% Function to train and predict using HADEL model
function YPred = trainAndPredictHADEL(XTrain, YTrain, XTest)
% Define HADEL model architecture
numFeatures = size(XTrain, 2);
numClasses = numel(categories(YTrain));
% Feature-Level Attention
featureAttention = [
fullyConnectedLayer(64, ‘Name’, ‘fc_feature_attention’)
reluLayer(‘Name’, ‘relu_feature_attention’)
fullyConnectedLayer(1, ‘Name’, ‘fc_feature_weights’)
softmaxLayer(‘Name’, ‘feature_attention_weights’)
];
% Temporal Attention (not used for Iris dataset, but included for completeness)
temporalAttention = [
sequenceInputLayer(numFeatures, ‘Name’, ‘input_sequence’)
lstmLayer(64, ‘OutputMode’, ‘sequence’, ‘Name’, ‘lstm_temporal_attention’)
fullyConnectedLayer(1, ‘Name’, ‘fc_temporal_weights’)
softmaxLayer(‘Name’, ‘temporal_attention_weights’)
];
% Combine into Hierarchical Attention
%%Bu kısmı hata verdi aşağıdaki gibi koydum
% hierarchicalAttention = [
% featureAttention
% temporalAttention
% dotProductLayer(1, ‘Name’, ‘weighted_output’)
% ];
hierarchicalAttention = [
featureAttention
temporalAttention
];
% Add classification layers
layers = [
hierarchicalAttention
fullyConnectedLayer(64, ‘Name’, ‘fc_final’)
reluLayer(‘Name’, ‘relu_final’)
fullyConnectedLayer(numClasses, ‘Name’, ‘fc_output’)
softmaxLayer(‘Name’, ‘softmax_output’)
classificationLayer(‘Name’, ‘output’)
];
% Train the network
options = trainingOptions(‘adam’, …
‘MaxEpochs’, 50, …
‘MiniBatchSize’, 8, …
‘Verbose’, false);
net = trainNetwork(XTrain, YTrain, layers, options);
% Predict on test data
YPred = classify(net, XTest);
end
++
Error
++
Error using trainNetwork (line 191)
Invalid network.
Error in trainAndPredictHADEL (line 54)
net = trainNetwork(XTrain, YTrain, layers, options);
Caused by:
Layer ‘fc_feature_attention’: Unconnected input. Each layer input must be connected to the output of another layer.
Layer ‘input_sequence’: An input layer must be first in the layer array.
++ I receive the following error for my function given below. .Would you please help me to correct the function?
for the following input
YPred = trainAndPredictHADEL(XTrain, YTrain, XTest);
++
% Function to train and predict using HADEL model
function YPred = trainAndPredictHADEL(XTrain, YTrain, XTest)
% Define HADEL model architecture
numFeatures = size(XTrain, 2);
numClasses = numel(categories(YTrain));
% Feature-Level Attention
featureAttention = [
fullyConnectedLayer(64, ‘Name’, ‘fc_feature_attention’)
reluLayer(‘Name’, ‘relu_feature_attention’)
fullyConnectedLayer(1, ‘Name’, ‘fc_feature_weights’)
softmaxLayer(‘Name’, ‘feature_attention_weights’)
];
% Temporal Attention (not used for Iris dataset, but included for completeness)
temporalAttention = [
sequenceInputLayer(numFeatures, ‘Name’, ‘input_sequence’)
lstmLayer(64, ‘OutputMode’, ‘sequence’, ‘Name’, ‘lstm_temporal_attention’)
fullyConnectedLayer(1, ‘Name’, ‘fc_temporal_weights’)
softmaxLayer(‘Name’, ‘temporal_attention_weights’)
];
% Combine into Hierarchical Attention
%%Bu kısmı hata verdi aşağıdaki gibi koydum
% hierarchicalAttention = [
% featureAttention
% temporalAttention
% dotProductLayer(1, ‘Name’, ‘weighted_output’)
% ];
hierarchicalAttention = [
featureAttention
temporalAttention
];
% Add classification layers
layers = [
hierarchicalAttention
fullyConnectedLayer(64, ‘Name’, ‘fc_final’)
reluLayer(‘Name’, ‘relu_final’)
fullyConnectedLayer(numClasses, ‘Name’, ‘fc_output’)
softmaxLayer(‘Name’, ‘softmax_output’)
classificationLayer(‘Name’, ‘output’)
];
% Train the network
options = trainingOptions(‘adam’, …
‘MaxEpochs’, 50, …
‘MiniBatchSize’, 8, …
‘Verbose’, false);
net = trainNetwork(XTrain, YTrain, layers, options);
% Predict on test data
YPred = classify(net, XTest);
end
++
Error
++
Error using trainNetwork (line 191)
Invalid network.
Error in trainAndPredictHADEL (line 54)
net = trainNetwork(XTrain, YTrain, layers, options);
Caused by:
Layer ‘fc_feature_attention’: Unconnected input. Each layer input must be connected to the output of another layer.
Layer ‘input_sequence’: An input layer must be first in the layer array.
++ function, neural networks MATLAB Answers — New Questions
how to automatically creat sldd file based on csv file
i add following info to CSV file, how to use this CSV file to creat sldd file automatically.i add following info to CSV file, how to use this CSV file to creat sldd file automatically. i add following info to CSV file, how to use this CSV file to creat sldd file automatically. sldd, simulink, programming MATLAB Answers — New Questions
Which model did detect use?
Hallo everyone,
I used "detect" to detect lane, and I found that this "detect" uses YOLO to detect object
detect
Detect objects using YOLO v3 object detector
Since R2021a
but I cant find the model of this "detect" , did it use YOLO,too?
detect
Detect lane boundaries in images
Since R2023a
Best regards,
xinyuHallo everyone,
I used "detect" to detect lane, and I found that this "detect" uses YOLO to detect object
detect
Detect objects using YOLO v3 object detector
Since R2021a
but I cant find the model of this "detect" , did it use YOLO,too?
detect
Detect lane boundaries in images
Since R2023a
Best regards,
xinyu Hallo everyone,
I used "detect" to detect lane, and I found that this "detect" uses YOLO to detect object
detect
Detect objects using YOLO v3 object detector
Since R2021a
but I cant find the model of this "detect" , did it use YOLO,too?
detect
Detect lane boundaries in images
Since R2023a
Best regards,
xinyu detect MATLAB Answers — New Questions
“Data-type ‘Fix_16_13’ is unsupported for HDL code generation “
I am trying to translate my Simulink design to Verilog code from HDL work flow advisor but i get the following error "Data-type ‘Fix_16_13’ is unsupported for HDL code generation " can you please help me out in this.
I am using CORDIC SINCOS core to generate sine wave its output is of Fix_16_13 and workflow advisor is giving error on this output.I am trying to translate my Simulink design to Verilog code from HDL work flow advisor but i get the following error "Data-type ‘Fix_16_13’ is unsupported for HDL code generation " can you please help me out in this.
I am using CORDIC SINCOS core to generate sine wave its output is of Fix_16_13 and workflow advisor is giving error on this output. I am trying to translate my Simulink design to Verilog code from HDL work flow advisor but i get the following error "Data-type ‘Fix_16_13’ is unsupported for HDL code generation " can you please help me out in this.
I am using CORDIC SINCOS core to generate sine wave its output is of Fix_16_13 and workflow advisor is giving error on this output. simulink, simulink hdl coder, hdl workflow advisor MATLAB Answers — New Questions
ONNX export yields error in Windows ML
I want to export my deep neural network with the ONNX export function and use it with Windows ML. To test it, I use WinMLRunner, which simply checks an .onnx file. This seems to work with CNN-networks, however for LSTM-networks I receive the error: "First input does not have rank 2". If I have more than one LSTM-layer in the network the error message somehow changes to: "First input tensor must have rank 3".
I attached a file with following simple LSTM-network and another file with the corresponding ONNX export in onset version 7 (Windows ML needs onset v7 or v8):
layers = [ …
sequenceInputLayer(14)
lstmLayer(100, ‘OutputMode’, ‘last’);
fullyConnectedLayer(1)
regressionLayer];
I exported the network as follows:
exportONNXNetwork(lstmNet, ‘lstm_net_onset_v7.onnx’, ‘OpsetVersion’, 7)
Then tested it with WinMLRunner:
WinMLRunner.exe -model C:lstm_net_onset_v7.onnx -cpu
Thanks for any suggestions on how to solve this. I already posted this problem on the fileexchange page of the ONNX converter.I want to export my deep neural network with the ONNX export function and use it with Windows ML. To test it, I use WinMLRunner, which simply checks an .onnx file. This seems to work with CNN-networks, however for LSTM-networks I receive the error: "First input does not have rank 2". If I have more than one LSTM-layer in the network the error message somehow changes to: "First input tensor must have rank 3".
I attached a file with following simple LSTM-network and another file with the corresponding ONNX export in onset version 7 (Windows ML needs onset v7 or v8):
layers = [ …
sequenceInputLayer(14)
lstmLayer(100, ‘OutputMode’, ‘last’);
fullyConnectedLayer(1)
regressionLayer];
I exported the network as follows:
exportONNXNetwork(lstmNet, ‘lstm_net_onset_v7.onnx’, ‘OpsetVersion’, 7)
Then tested it with WinMLRunner:
WinMLRunner.exe -model C:lstm_net_onset_v7.onnx -cpu
Thanks for any suggestions on how to solve this. I already posted this problem on the fileexchange page of the ONNX converter. I want to export my deep neural network with the ONNX export function and use it with Windows ML. To test it, I use WinMLRunner, which simply checks an .onnx file. This seems to work with CNN-networks, however for LSTM-networks I receive the error: "First input does not have rank 2". If I have more than one LSTM-layer in the network the error message somehow changes to: "First input tensor must have rank 3".
I attached a file with following simple LSTM-network and another file with the corresponding ONNX export in onset version 7 (Windows ML needs onset v7 or v8):
layers = [ …
sequenceInputLayer(14)
lstmLayer(100, ‘OutputMode’, ‘last’);
fullyConnectedLayer(1)
regressionLayer];
I exported the network as follows:
exportONNXNetwork(lstmNet, ‘lstm_net_onset_v7.onnx’, ‘OpsetVersion’, 7)
Then tested it with WinMLRunner:
WinMLRunner.exe -model C:lstm_net_onset_v7.onnx -cpu
Thanks for any suggestions on how to solve this. I already posted this problem on the fileexchange page of the ONNX converter. onnx, deep learning, windows ml MATLAB Answers — New Questions
Syncing two unphased digital signals together to compare error rate
Hello,
I want to synchronize in time two signals together so I can compare the error rate. I tried using alignsignals, offset, finding the delay and truncating the signals but nothing works.
I am doing a ASK modulation with a coherent demodulation. My demodulated signal is lagging behind because of the butterworth filter and the detection algorithm that I’m using.
If you can find a solution to synch up the signal or even transform them into binary matrices to compare them that would be great.
My Bernoulli Binary sends 100 bits at a certain frequency Fb = BitRate
And my carrier has a frequency Fc = CarrierFreq
Thank you very much in advance !Hello,
I want to synchronize in time two signals together so I can compare the error rate. I tried using alignsignals, offset, finding the delay and truncating the signals but nothing works.
I am doing a ASK modulation with a coherent demodulation. My demodulated signal is lagging behind because of the butterworth filter and the detection algorithm that I’m using.
If you can find a solution to synch up the signal or even transform them into binary matrices to compare them that would be great.
My Bernoulli Binary sends 100 bits at a certain frequency Fb = BitRate
And my carrier has a frequency Fc = CarrierFreq
Thank you very much in advance ! Hello,
I want to synchronize in time two signals together so I can compare the error rate. I tried using alignsignals, offset, finding the delay and truncating the signals but nothing works.
I am doing a ASK modulation with a coherent demodulation. My demodulated signal is lagging behind because of the butterworth filter and the detection algorithm that I’m using.
If you can find a solution to synch up the signal or even transform them into binary matrices to compare them that would be great.
My Bernoulli Binary sends 100 bits at a certain frequency Fb = BitRate
And my carrier has a frequency Fc = CarrierFreq
Thank you very much in advance ! simulink, synching signals, digital modulation MATLAB Answers — New Questions
weighted average from histcount2
Hello,
I’m trying to calculate marginal spectrum(Hilbert-huang spectrum), usually HHT is 1d, in my case its 2d applying for images
I’m using histcounts2 put a,b as joint distibution
% abins and bbins in logspace, not in linspace
for i=1:lenght(imf)
a=gradient(unwrap(angle(hilbert(imf))), dx, dy))); % spatial frequency
b= hilbert(imf.’).’;% amplitude % I’m doing only in x-direction thats across columns because there is no 2d hilbert(for moment)
[jointab(:,:,i),A,B] = histcounts2(a,b,abins,bbins, "Normalization","countdensity"); % B and C are binedges
end
total=sum(jointab,3);
now I have 2d map(amplitude and spatial frequency), I want to calculate marginal spectrum(Energy vs wavenumber)
question:
1) I want to calculate amplitude weighted marginal spectrum(Energy vs wavenumber)
2) how I’m doing,
E_bin=bin centre.*total.*binwidth;
E_marginal = (sum(E_bin, 2)).^2;
is it correct normalization?
is binwidth=dB*dC or only dB?
am I missing something here,
3) is countdensity is correct normalization for logspace binwidth, if I take pdf or probability, how my normalization changes
4) how to verify final result?
Thank you, I’m looking forward to hear someone opinion, if it is not clarity, please let me know,
Regards,
KCHello,
I’m trying to calculate marginal spectrum(Hilbert-huang spectrum), usually HHT is 1d, in my case its 2d applying for images
I’m using histcounts2 put a,b as joint distibution
% abins and bbins in logspace, not in linspace
for i=1:lenght(imf)
a=gradient(unwrap(angle(hilbert(imf))), dx, dy))); % spatial frequency
b= hilbert(imf.’).’;% amplitude % I’m doing only in x-direction thats across columns because there is no 2d hilbert(for moment)
[jointab(:,:,i),A,B] = histcounts2(a,b,abins,bbins, "Normalization","countdensity"); % B and C are binedges
end
total=sum(jointab,3);
now I have 2d map(amplitude and spatial frequency), I want to calculate marginal spectrum(Energy vs wavenumber)
question:
1) I want to calculate amplitude weighted marginal spectrum(Energy vs wavenumber)
2) how I’m doing,
E_bin=bin centre.*total.*binwidth;
E_marginal = (sum(E_bin, 2)).^2;
is it correct normalization?
is binwidth=dB*dC or only dB?
am I missing something here,
3) is countdensity is correct normalization for logspace binwidth, if I take pdf or probability, how my normalization changes
4) how to verify final result?
Thank you, I’m looking forward to hear someone opinion, if it is not clarity, please let me know,
Regards,
KC Hello,
I’m trying to calculate marginal spectrum(Hilbert-huang spectrum), usually HHT is 1d, in my case its 2d applying for images
I’m using histcounts2 put a,b as joint distibution
% abins and bbins in logspace, not in linspace
for i=1:lenght(imf)
a=gradient(unwrap(angle(hilbert(imf))), dx, dy))); % spatial frequency
b= hilbert(imf.’).’;% amplitude % I’m doing only in x-direction thats across columns because there is no 2d hilbert(for moment)
[jointab(:,:,i),A,B] = histcounts2(a,b,abins,bbins, "Normalization","countdensity"); % B and C are binedges
end
total=sum(jointab,3);
now I have 2d map(amplitude and spatial frequency), I want to calculate marginal spectrum(Energy vs wavenumber)
question:
1) I want to calculate amplitude weighted marginal spectrum(Energy vs wavenumber)
2) how I’m doing,
E_bin=bin centre.*total.*binwidth;
E_marginal = (sum(E_bin, 2)).^2;
is it correct normalization?
is binwidth=dB*dC or only dB?
am I missing something here,
3) is countdensity is correct normalization for logspace binwidth, if I take pdf or probability, how my normalization changes
4) how to verify final result?
Thank you, I’m looking forward to hear someone opinion, if it is not clarity, please let me know,
Regards,
KC histcount2, histogram, digital image processing, hilbert, hht, hilbert–huang transform MATLAB Answers — New Questions
OpenGL Rendering in Matlab R2024b on Ubuntu LTS 24.04 fails: com.jogamp.opengl.GLException: X11GLXDrawableFactory – Could not initialize shared resources for …
This error message means that 3D accelerated OpenGL rendering does not work. On same hardware R2024a didn’t even try OpenGL, so this is a new problem. This applies to R2024b running on Ubuntu LTS 24.04 on at least two different hardware. There are many more reports here of same errors on older Linux distrubitions with older Matlab versions and probably older hardware, with same workarounds. But it would be better if 3D acceleration worked out of the box with R2024b or at least get disabled by default, if there is a problem.
The whole error message is:
com.jogamp.opengl.GLException: X11GLXDrawableFactory – Could not initialize shared resources for X11GraphicsDevice[type .x11, connection :1, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x134ee3b8, isOwner false, <590c7f9b, 33bfcb35>[count 0, qsz 0, owner <NULL>]]]
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:326)
at jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:297)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:688)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:580)
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:297)
… 2 more
This happens at least on the following Intel GPUs:
Intel Corporation WhiskeyLake-U GT2 [UHD Graphics 620]
Intel Corporation Raptor Lake-P [Iris Xe Graphics] (rev 04)
A workaround is to disable 3D acceleration with ‘matlab -softwareopengl’.
On a laptop which has both Nvidia and Intel GPU Matlab automatically disables 3D acceleration when you attempt to use the Nvidia GPU:
jjaakkol@lx4-fuxi0:~$ __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia matlab
MATLAB is selecting SOFTWARE rendering.
However if you force 3D rendering on the nvidia GPU, it seems to work fine:
jjaakkol@lx4-fuxi0:~$ __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia matlab -nosoftwareopengl -nodesktop
< M A T L A B (R) >
Copyright 1984-2024 The MathWorks, Inc.
R2024b (24.2.0.2712019) 64-bit (glnxa64)
August 22, 2024
To get started, type doc.
For product information, visit www.mathworks.com.
Warning: OpenGL Startup options will be removed in a future release.
>> rendererinfo
ans =
struct with fields:
GraphicsRenderer: ‘OpenGL Hardware’
Vendor: ‘NVIDIA Corporation’
Version: ‘4.6.0 NVIDIA 555.42.06’
RendererDevice: ‘NVIDIA RTX 2000 Ada Generation Laptop GPU/PCIe/SSE2’
Details: [1×1 struct]
>>This error message means that 3D accelerated OpenGL rendering does not work. On same hardware R2024a didn’t even try OpenGL, so this is a new problem. This applies to R2024b running on Ubuntu LTS 24.04 on at least two different hardware. There are many more reports here of same errors on older Linux distrubitions with older Matlab versions and probably older hardware, with same workarounds. But it would be better if 3D acceleration worked out of the box with R2024b or at least get disabled by default, if there is a problem.
The whole error message is:
com.jogamp.opengl.GLException: X11GLXDrawableFactory – Could not initialize shared resources for X11GraphicsDevice[type .x11, connection :1, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x134ee3b8, isOwner false, <590c7f9b, 33bfcb35>[count 0, qsz 0, owner <NULL>]]]
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:326)
at jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:297)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:688)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:580)
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:297)
… 2 more
This happens at least on the following Intel GPUs:
Intel Corporation WhiskeyLake-U GT2 [UHD Graphics 620]
Intel Corporation Raptor Lake-P [Iris Xe Graphics] (rev 04)
A workaround is to disable 3D acceleration with ‘matlab -softwareopengl’.
On a laptop which has both Nvidia and Intel GPU Matlab automatically disables 3D acceleration when you attempt to use the Nvidia GPU:
jjaakkol@lx4-fuxi0:~$ __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia matlab
MATLAB is selecting SOFTWARE rendering.
However if you force 3D rendering on the nvidia GPU, it seems to work fine:
jjaakkol@lx4-fuxi0:~$ __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia matlab -nosoftwareopengl -nodesktop
< M A T L A B (R) >
Copyright 1984-2024 The MathWorks, Inc.
R2024b (24.2.0.2712019) 64-bit (glnxa64)
August 22, 2024
To get started, type doc.
For product information, visit www.mathworks.com.
Warning: OpenGL Startup options will be removed in a future release.
>> rendererinfo
ans =
struct with fields:
GraphicsRenderer: ‘OpenGL Hardware’
Vendor: ‘NVIDIA Corporation’
Version: ‘4.6.0 NVIDIA 555.42.06’
RendererDevice: ‘NVIDIA RTX 2000 Ada Generation Laptop GPU/PCIe/SSE2’
Details: [1×1 struct]
>> This error message means that 3D accelerated OpenGL rendering does not work. On same hardware R2024a didn’t even try OpenGL, so this is a new problem. This applies to R2024b running on Ubuntu LTS 24.04 on at least two different hardware. There are many more reports here of same errors on older Linux distrubitions with older Matlab versions and probably older hardware, with same workarounds. But it would be better if 3D acceleration worked out of the box with R2024b or at least get disabled by default, if there is a problem.
The whole error message is:
com.jogamp.opengl.GLException: X11GLXDrawableFactory – Could not initialize shared resources for X11GraphicsDevice[type .x11, connection :1, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x134ee3b8, isOwner false, <590c7f9b, 33bfcb35>[count 0, qsz 0, owner <NULL>]]]
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:326)
at jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:297)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:688)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:580)
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:297)
… 2 more
This happens at least on the following Intel GPUs:
Intel Corporation WhiskeyLake-U GT2 [UHD Graphics 620]
Intel Corporation Raptor Lake-P [Iris Xe Graphics] (rev 04)
A workaround is to disable 3D acceleration with ‘matlab -softwareopengl’.
On a laptop which has both Nvidia and Intel GPU Matlab automatically disables 3D acceleration when you attempt to use the Nvidia GPU:
jjaakkol@lx4-fuxi0:~$ __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia matlab
MATLAB is selecting SOFTWARE rendering.
However if you force 3D rendering on the nvidia GPU, it seems to work fine:
jjaakkol@lx4-fuxi0:~$ __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia matlab -nosoftwareopengl -nodesktop
< M A T L A B (R) >
Copyright 1984-2024 The MathWorks, Inc.
R2024b (24.2.0.2712019) 64-bit (glnxa64)
August 22, 2024
To get started, type doc.
For product information, visit www.mathworks.com.
Warning: OpenGL Startup options will be removed in a future release.
>> rendererinfo
ans =
struct with fields:
GraphicsRenderer: ‘OpenGL Hardware’
Vendor: ‘NVIDIA Corporation’
Version: ‘4.6.0 NVIDIA 555.42.06’
RendererDevice: ‘NVIDIA RTX 2000 Ada Generation Laptop GPU/PCIe/SSE2’
Details: [1×1 struct]
>> opengl, r2024b, linux, ubuntu MATLAB Answers — New Questions
unexpected exception during matlab activation
I keep getting this error during activation:
There was an unexpected exception:
null
See the log file (C:Users…) for more details.
THe following is the content of the log file:
(Sep 26, 2019 22:07:02)THE ACTIVATOR IS STARTING UP.
(Sep 26, 2019 22:09:46)org.apache.axis2.AxisFault: java.lang.RuntimeException: java.lang.NoClassDefFoundError: Could not initialize class com.mathworks.internal.accesslogin.sva.ProofLocationListFactory
java.lang.RuntimeException: java.lang.NoClassDefFoundError: Could not initialize class com.mathworks.internal.accesslogin.sva.ProofLocationListFactory
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:446)
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:371)
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
com.mathworks.mlwebservices.svact.StudentVersionActivationServiceStub.getLocations(StudentVersionActivationServiceStub.java:987)
com.mathworks.activation.StudentActivationServiceWrapper$LocationsTask.run(StudentActivationServiceWrapper.java:494)
java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
java.util.concurrent.FutureTask.run(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
(Sep 26, 2019 22:10:11)The application could not connect to MathWorks. Please make sure your internet connection is available and that all software and hardware firewalls have been disabled before retrying your request.
(Sep 26, 2019 22:10:11)java.lang.NullPointerException
com.mathworks.activation.AccessLoginInfoPanel$NextAction.getLocations(AccessLoginInfoPanel.java:531)
com.mathworks.activation.AccessLoginInfoPanel$NextAction.doNextButton(AccessLoginInfoPanel.java:473)
com.mathworks.activation.AccessLoginInfoPanel$NextAction.actionPerformed(AccessLoginInfoPanel.java:420)
javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
javax.swing.DefaultButtonModel.setPressed(Unknown Source)
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
java.awt.Component.processMouseEvent(Unknown Source)
javax.swing.JComponent.processMouseEvent(Unknown Source)
java.awt.Component.processEvent(Unknown Source)
java.awt.Container.processEvent(Unknown Source)
java.awt.Component.dispatchEventImpl(Unknown Source)
java.awt.Container.dispatchEventImpl(Unknown Source)
java.awt.Component.dispatchEvent(Unknown Source)
java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
java.awt.Container.dispatchEventImpl(Unknown Source)
java.awt.Window.dispatchEventImpl(Unknown Source)
java.awt.Component.dispatchEvent(Unknown Source)
java.awt.EventQueue.dispatchEvent(Unknown Source)
java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
java.awt.EventDispatchThread.run(Unknown Source)I keep getting this error during activation:
There was an unexpected exception:
null
See the log file (C:Users…) for more details.
THe following is the content of the log file:
(Sep 26, 2019 22:07:02)THE ACTIVATOR IS STARTING UP.
(Sep 26, 2019 22:09:46)org.apache.axis2.AxisFault: java.lang.RuntimeException: java.lang.NoClassDefFoundError: Could not initialize class com.mathworks.internal.accesslogin.sva.ProofLocationListFactory
java.lang.RuntimeException: java.lang.NoClassDefFoundError: Could not initialize class com.mathworks.internal.accesslogin.sva.ProofLocationListFactory
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:446)
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:371)
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
com.mathworks.mlwebservices.svact.StudentVersionActivationServiceStub.getLocations(StudentVersionActivationServiceStub.java:987)
com.mathworks.activation.StudentActivationServiceWrapper$LocationsTask.run(StudentActivationServiceWrapper.java:494)
java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
java.util.concurrent.FutureTask.run(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
(Sep 26, 2019 22:10:11)The application could not connect to MathWorks. Please make sure your internet connection is available and that all software and hardware firewalls have been disabled before retrying your request.
(Sep 26, 2019 22:10:11)java.lang.NullPointerException
com.mathworks.activation.AccessLoginInfoPanel$NextAction.getLocations(AccessLoginInfoPanel.java:531)
com.mathworks.activation.AccessLoginInfoPanel$NextAction.doNextButton(AccessLoginInfoPanel.java:473)
com.mathworks.activation.AccessLoginInfoPanel$NextAction.actionPerformed(AccessLoginInfoPanel.java:420)
javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
javax.swing.DefaultButtonModel.setPressed(Unknown Source)
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
java.awt.Component.processMouseEvent(Unknown Source)
javax.swing.JComponent.processMouseEvent(Unknown Source)
java.awt.Component.processEvent(Unknown Source)
java.awt.Container.processEvent(Unknown Source)
java.awt.Component.dispatchEventImpl(Unknown Source)
java.awt.Container.dispatchEventImpl(Unknown Source)
java.awt.Component.dispatchEvent(Unknown Source)
java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
java.awt.Container.dispatchEventImpl(Unknown Source)
java.awt.Window.dispatchEventImpl(Unknown Source)
java.awt.Component.dispatchEvent(Unknown Source)
java.awt.EventQueue.dispatchEvent(Unknown Source)
java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
java.awt.EventDispatchThread.run(Unknown Source) I keep getting this error during activation:
There was an unexpected exception:
null
See the log file (C:Users…) for more details.
THe following is the content of the log file:
(Sep 26, 2019 22:07:02)THE ACTIVATOR IS STARTING UP.
(Sep 26, 2019 22:09:46)org.apache.axis2.AxisFault: java.lang.RuntimeException: java.lang.NoClassDefFoundError: Could not initialize class com.mathworks.internal.accesslogin.sva.ProofLocationListFactory
java.lang.RuntimeException: java.lang.NoClassDefFoundError: Could not initialize class com.mathworks.internal.accesslogin.sva.ProofLocationListFactory
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:446)
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:371)
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
com.mathworks.mlwebservices.svact.StudentVersionActivationServiceStub.getLocations(StudentVersionActivationServiceStub.java:987)
com.mathworks.activation.StudentActivationServiceWrapper$LocationsTask.run(StudentActivationServiceWrapper.java:494)
java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
java.util.concurrent.FutureTask.run(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
(Sep 26, 2019 22:10:11)The application could not connect to MathWorks. Please make sure your internet connection is available and that all software and hardware firewalls have been disabled before retrying your request.
(Sep 26, 2019 22:10:11)java.lang.NullPointerException
com.mathworks.activation.AccessLoginInfoPanel$NextAction.getLocations(AccessLoginInfoPanel.java:531)
com.mathworks.activation.AccessLoginInfoPanel$NextAction.doNextButton(AccessLoginInfoPanel.java:473)
com.mathworks.activation.AccessLoginInfoPanel$NextAction.actionPerformed(AccessLoginInfoPanel.java:420)
javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
javax.swing.DefaultButtonModel.setPressed(Unknown Source)
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
java.awt.Component.processMouseEvent(Unknown Source)
javax.swing.JComponent.processMouseEvent(Unknown Source)
java.awt.Component.processEvent(Unknown Source)
java.awt.Container.processEvent(Unknown Source)
java.awt.Component.dispatchEventImpl(Unknown Source)
java.awt.Container.dispatchEventImpl(Unknown Source)
java.awt.Component.dispatchEvent(Unknown Source)
java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
java.awt.Container.dispatchEventImpl(Unknown Source)
java.awt.Window.dispatchEventImpl(Unknown Source)
java.awt.Component.dispatchEvent(Unknown Source)
java.awt.EventQueue.dispatchEvent(Unknown Source)
java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
java.awt.EventDispatchThread.run(Unknown Source) error, activation, unexpected exception MATLAB Answers — New Questions
[HELP NEEDED] MATLAB download freeze on ubuntu 18.04
Hi all, I am trying to install matlab on my ubuntu 18.04. I have matlab license from the institution and do the sudo installation accordingly.
The problem is that whenever I get to the download stage, it stuck/freeze at less than 2 percent and pop-up error telling me the download has to restart.
So apparently googling "matlab download freeze" tells me that this is a common occurrence on windows due to security settings/firewall etc.
So I turned off my ubuntu UFW, but the issue persisted even after rebooting.
May I know anyone has similar experience and how did you overcome this? Thanks!Hi all, I am trying to install matlab on my ubuntu 18.04. I have matlab license from the institution and do the sudo installation accordingly.
The problem is that whenever I get to the download stage, it stuck/freeze at less than 2 percent and pop-up error telling me the download has to restart.
So apparently googling "matlab download freeze" tells me that this is a common occurrence on windows due to security settings/firewall etc.
So I turned off my ubuntu UFW, but the issue persisted even after rebooting.
May I know anyone has similar experience and how did you overcome this? Thanks! Hi all, I am trying to install matlab on my ubuntu 18.04. I have matlab license from the institution and do the sudo installation accordingly.
The problem is that whenever I get to the download stage, it stuck/freeze at less than 2 percent and pop-up error telling me the download has to restart.
So apparently googling "matlab download freeze" tells me that this is a common occurrence on windows due to security settings/firewall etc.
So I turned off my ubuntu UFW, but the issue persisted even after rebooting.
May I know anyone has similar experience and how did you overcome this? Thanks! ubuntu, download, installation MATLAB Answers — New Questions
Am encountering this error ” Derivative of state ‘1’ in block ‘MATLAB_MPPT_BOOST_CONVERTER/PID Controller/Integrator/Continuous/Integrator’ at time 0.00019999999999999998 is n
I have attached my file done in SIMULINK kindly guide me
T = imread(‘Screenshot 2025-02-01 184514 -icon.png’)
imshow(I)I have attached my file done in SIMULINK kindly guide me
T = imread(‘Screenshot 2025-02-01 184514 -icon.png’)
imshow(I) I have attached my file done in SIMULINK kindly guide me
T = imread(‘Screenshot 2025-02-01 184514 -icon.png’)
imshow(I) power_conversion_control MATLAB Answers — New Questions
how to plot the drivative ?
s= [0,5*10^-2,1*10^-1,1.5*10^-1,2*10^-1,2.5*10^-1,3*10^-1,3.5*10^-1,4*10^-1,4.5*10^-1,5*10^-1,5.5*10^-1,6*10^-1,6.5*10^-1,7*10^-1,7.5*10^-1,8*10^-1,8.5*10^-1,9*10^-1,9.5*10^-1,9.9*10^-1,9.99*10^-1,1,1,1,1,1];
omega= [3.74*10^-1, 3.8*10^-1,3.87*10^-1,3.94*10^-1,4.02*10^-1,4.11*10^-1,4.2*10^-1,4.29*10^-1,4.4*10^-1,4.51*10^-1,4.64*10^-1,4.78*10^-1,4.94*10^-1,5.12*10^-1,5.33*10^-1,5.57*10^-1,5.86*10^-1,6.23*10^-1,6.72*10^-1,7.46*10^-1,8.71*10^-1,9.56*10^-1,9.68*10^-1,9.72*10^-1,9.75*10^-1,9.8*10^-1,9.86*10^-1];
Z1= 1+((1-(s.^2)).^(1/3)).*(((1+s).^(1/3))+(1-s).^(1/3));
Z2= sqrt(3*(s.^2)+(Z1.^2));
Ri= 3+Z2-sqrt((3-Z1).*(3+Z1+2.*Z2));R= 3+Z2+(sqrt((3-Z1).*(3+Z1+2.*Z2)));
Wi= (s+((Ri).^(3/2))).^-1;
WR= (s+((R).^(3/2))).^-1;
Rlr= 2*(1+cos((2/3)*acos(-s)));
Wlr= (s+((Rlr).^2)).^-1;
plot(s,Wi,’r’);
hold on
plot(s,WR,’y’),plot(s,Wlr,’b’),plot(s,omega,’g’);
hold off
xlabel(‘spin’),ylabel(‘angular velocity’),legend(‘r-prograde Isco angular velocity’,’y-retrograde ISCO angular velocity’,’b-LR angular velocity’,’g-given angular velocity’);
y= diff(Wi);
s=diff(s);
c=diff(omega);
plot(s,y,’r’);
how can I plot this ? because it doesn’t give me to plot y over ss= [0,5*10^-2,1*10^-1,1.5*10^-1,2*10^-1,2.5*10^-1,3*10^-1,3.5*10^-1,4*10^-1,4.5*10^-1,5*10^-1,5.5*10^-1,6*10^-1,6.5*10^-1,7*10^-1,7.5*10^-1,8*10^-1,8.5*10^-1,9*10^-1,9.5*10^-1,9.9*10^-1,9.99*10^-1,1,1,1,1,1];
omega= [3.74*10^-1, 3.8*10^-1,3.87*10^-1,3.94*10^-1,4.02*10^-1,4.11*10^-1,4.2*10^-1,4.29*10^-1,4.4*10^-1,4.51*10^-1,4.64*10^-1,4.78*10^-1,4.94*10^-1,5.12*10^-1,5.33*10^-1,5.57*10^-1,5.86*10^-1,6.23*10^-1,6.72*10^-1,7.46*10^-1,8.71*10^-1,9.56*10^-1,9.68*10^-1,9.72*10^-1,9.75*10^-1,9.8*10^-1,9.86*10^-1];
Z1= 1+((1-(s.^2)).^(1/3)).*(((1+s).^(1/3))+(1-s).^(1/3));
Z2= sqrt(3*(s.^2)+(Z1.^2));
Ri= 3+Z2-sqrt((3-Z1).*(3+Z1+2.*Z2));R= 3+Z2+(sqrt((3-Z1).*(3+Z1+2.*Z2)));
Wi= (s+((Ri).^(3/2))).^-1;
WR= (s+((R).^(3/2))).^-1;
Rlr= 2*(1+cos((2/3)*acos(-s)));
Wlr= (s+((Rlr).^2)).^-1;
plot(s,Wi,’r’);
hold on
plot(s,WR,’y’),plot(s,Wlr,’b’),plot(s,omega,’g’);
hold off
xlabel(‘spin’),ylabel(‘angular velocity’),legend(‘r-prograde Isco angular velocity’,’y-retrograde ISCO angular velocity’,’b-LR angular velocity’,’g-given angular velocity’);
y= diff(Wi);
s=diff(s);
c=diff(omega);
plot(s,y,’r’);
how can I plot this ? because it doesn’t give me to plot y over s s= [0,5*10^-2,1*10^-1,1.5*10^-1,2*10^-1,2.5*10^-1,3*10^-1,3.5*10^-1,4*10^-1,4.5*10^-1,5*10^-1,5.5*10^-1,6*10^-1,6.5*10^-1,7*10^-1,7.5*10^-1,8*10^-1,8.5*10^-1,9*10^-1,9.5*10^-1,9.9*10^-1,9.99*10^-1,1,1,1,1,1];
omega= [3.74*10^-1, 3.8*10^-1,3.87*10^-1,3.94*10^-1,4.02*10^-1,4.11*10^-1,4.2*10^-1,4.29*10^-1,4.4*10^-1,4.51*10^-1,4.64*10^-1,4.78*10^-1,4.94*10^-1,5.12*10^-1,5.33*10^-1,5.57*10^-1,5.86*10^-1,6.23*10^-1,6.72*10^-1,7.46*10^-1,8.71*10^-1,9.56*10^-1,9.68*10^-1,9.72*10^-1,9.75*10^-1,9.8*10^-1,9.86*10^-1];
Z1= 1+((1-(s.^2)).^(1/3)).*(((1+s).^(1/3))+(1-s).^(1/3));
Z2= sqrt(3*(s.^2)+(Z1.^2));
Ri= 3+Z2-sqrt((3-Z1).*(3+Z1+2.*Z2));R= 3+Z2+(sqrt((3-Z1).*(3+Z1+2.*Z2)));
Wi= (s+((Ri).^(3/2))).^-1;
WR= (s+((R).^(3/2))).^-1;
Rlr= 2*(1+cos((2/3)*acos(-s)));
Wlr= (s+((Rlr).^2)).^-1;
plot(s,Wi,’r’);
hold on
plot(s,WR,’y’),plot(s,Wlr,’b’),plot(s,omega,’g’);
hold off
xlabel(‘spin’),ylabel(‘angular velocity’),legend(‘r-prograde Isco angular velocity’,’y-retrograde ISCO angular velocity’,’b-LR angular velocity’,’g-given angular velocity’);
y= diff(Wi);
s=diff(s);
c=diff(omega);
plot(s,y,’r’);
how can I plot this ? because it doesn’t give me to plot y over s derivative, diff MATLAB Answers — New Questions