Category: Matlab
Category Archives: Matlab
Find the variable inside the LCM argument
I came up with a B=lcm(nrt,Nr*Nc) formula how to find Nr*Nc ?? i have B and nrtI came up with a B=lcm(nrt,Nr*Nc) formula how to find Nr*Nc ?? i have B and nrt I came up with a B=lcm(nrt,Nr*Nc) formula how to find Nr*Nc ?? i have B and nrt lcm, least common multiple set MATLAB Answers — New Questions
How to propagate a signal in time and space using Simulink
Hello all, I am interested in creating simplified models of acoustic feedback in fluid flows, and am exploring simulink to deduce simple transfer function. I am a novice of simulink and am not sure if this is the right tool for the job. In short, I want to model my complicated flow as a back and forth signal propogation in 1D as sketched below:
|———->——-<—–|
So far, I have only been able to create signal models as a function of time. My question is, can simulink create models as a function of time and space? ie) can I define a 1D domain and watch a signal propogate back and forth in time? What are some basic steps to go about this? Thanks!!Hello all, I am interested in creating simplified models of acoustic feedback in fluid flows, and am exploring simulink to deduce simple transfer function. I am a novice of simulink and am not sure if this is the right tool for the job. In short, I want to model my complicated flow as a back and forth signal propogation in 1D as sketched below:
|———->——-<—–|
So far, I have only been able to create signal models as a function of time. My question is, can simulink create models as a function of time and space? ie) can I define a 1D domain and watch a signal propogate back and forth in time? What are some basic steps to go about this? Thanks!! Hello all, I am interested in creating simplified models of acoustic feedback in fluid flows, and am exploring simulink to deduce simple transfer function. I am a novice of simulink and am not sure if this is the right tool for the job. In short, I want to model my complicated flow as a back and forth signal propogation in 1D as sketched below:
|———->——-<—–|
So far, I have only been able to create signal models as a function of time. My question is, can simulink create models as a function of time and space? ie) can I define a 1D domain and watch a signal propogate back and forth in time? What are some basic steps to go about this? Thanks!! simulink, signals MATLAB Answers — New Questions
How to create random sequence?
How to generate gaussain random sequence with mean = 817e-9 and standard deviation = 10e-9 and probability = 0.25 (total 50 numbers)How to generate gaussain random sequence with mean = 817e-9 and standard deviation = 10e-9 and probability = 0.25 (total 50 numbers) How to generate gaussain random sequence with mean = 817e-9 and standard deviation = 10e-9 and probability = 0.25 (total 50 numbers) gaussian distribution, random sequence MATLAB Answers — New Questions
Why training stops showing error (out of memory) during implementing transfer learning with pre-trained network despite having a laptop of well configuration?
Trying to use trasnfer learning method for classsify images but I have failed to run. It always stop showing error: out of memory. I have faced the same problem when I have tried to build a large and complex cnn architecture from scratch. At first I have thought that too large dataset caused the problem.I have tried my model with only few images to test and even have tried to run in better configured pc than my laptop also, but I couln’t get rid of the problem. Now I am facing the same issue while trying transfer learing. I do need both runinng a complex network from scratch and using pre-trained network.
I have follwed the documentation of transfer learning using the Prepare Network for Transfer Learning Using Deep Network Designer.
The details of images, choosen pre-trained methods and pc confuguration are:
images no: 60,000
class of image: 13
pre-trained network: DenseNet-201
laptop configuration: Ryzen 7, RAM 16GB, GPU NVIDIA GEFORCE RTX 3050
I am also attaching the Error msg showing and gpu details from gpuDevice:Trying to use trasnfer learning method for classsify images but I have failed to run. It always stop showing error: out of memory. I have faced the same problem when I have tried to build a large and complex cnn architecture from scratch. At first I have thought that too large dataset caused the problem.I have tried my model with only few images to test and even have tried to run in better configured pc than my laptop also, but I couln’t get rid of the problem. Now I am facing the same issue while trying transfer learing. I do need both runinng a complex network from scratch and using pre-trained network.
I have follwed the documentation of transfer learning using the Prepare Network for Transfer Learning Using Deep Network Designer.
The details of images, choosen pre-trained methods and pc confuguration are:
images no: 60,000
class of image: 13
pre-trained network: DenseNet-201
laptop configuration: Ryzen 7, RAM 16GB, GPU NVIDIA GEFORCE RTX 3050
I am also attaching the Error msg showing and gpu details from gpuDevice: Trying to use trasnfer learning method for classsify images but I have failed to run. It always stop showing error: out of memory. I have faced the same problem when I have tried to build a large and complex cnn architecture from scratch. At first I have thought that too large dataset caused the problem.I have tried my model with only few images to test and even have tried to run in better configured pc than my laptop also, but I couln’t get rid of the problem. Now I am facing the same issue while trying transfer learing. I do need both runinng a complex network from scratch and using pre-trained network.
I have follwed the documentation of transfer learning using the Prepare Network for Transfer Learning Using Deep Network Designer.
The details of images, choosen pre-trained methods and pc confuguration are:
images no: 60,000
class of image: 13
pre-trained network: DenseNet-201
laptop configuration: Ryzen 7, RAM 16GB, GPU NVIDIA GEFORCE RTX 3050
I am also attaching the Error msg showing and gpu details from gpuDevice: showing error, out of memory, transfer learning, complex cnn structure MATLAB Answers — New Questions
Can the software read more precise numbers (such as decimal points)?
i have picture but the matlab show data is the number such like 1,2,3 but i want more detail like 1.32 or 2.16 and so on
To put it simply, can it be one or two digits after minor surgery?
above is my coding and my picture which i want read and caculate
data = adjusted_image(:);
fprintf( ‘value:n’);
disp(data);
sample image(jpg) i tried to use tiff but the error is more serious
Note: He should display numbers from 0-5, although there are manyi have picture but the matlab show data is the number such like 1,2,3 but i want more detail like 1.32 or 2.16 and so on
To put it simply, can it be one or two digits after minor surgery?
above is my coding and my picture which i want read and caculate
data = adjusted_image(:);
fprintf( ‘value:n’);
disp(data);
sample image(jpg) i tried to use tiff but the error is more serious
Note: He should display numbers from 0-5, although there are many i have picture but the matlab show data is the number such like 1,2,3 but i want more detail like 1.32 or 2.16 and so on
To put it simply, can it be one or two digits after minor surgery?
above is my coding and my picture which i want read and caculate
data = adjusted_image(:);
fprintf( ‘value:n’);
disp(data);
sample image(jpg) i tried to use tiff but the error is more serious
Note: He should display numbers from 0-5, although there are many image reading MATLAB Answers — New Questions
Need help to implement SEAC technique in MATLAB
I want to use Shared Experience Actor Critic (SEAC) reinforcement learning technique, but there is only actor-critic model in MTALB tool box. What should i do now? how I can implement SEAC technique in MATLAB or is there any easy way to intregate python code in MATLAB for example I do my implementation in python and then call it in MTALB in my MATLAB simulatorI want to use Shared Experience Actor Critic (SEAC) reinforcement learning technique, but there is only actor-critic model in MTALB tool box. What should i do now? how I can implement SEAC technique in MATLAB or is there any easy way to intregate python code in MATLAB for example I do my implementation in python and then call it in MTALB in my MATLAB simulator I want to use Shared Experience Actor Critic (SEAC) reinforcement learning technique, but there is only actor-critic model in MTALB tool box. What should i do now? how I can implement SEAC technique in MATLAB or is there any easy way to intregate python code in MATLAB for example I do my implementation in python and then call it in MTALB in my MATLAB simulator shared-experience actor-critic MATLAB Answers — New Questions
Gaussian Psychometric function – Prepare data
Good morning,
sorry I am new to Matlab and stuck on thins problem for weeks already. Probably t is a basic question and I would be so happy if someone could help.
I am trying to fit a psychometric gaussian function on my data (have 30 different data sets). The important table columns basically look like this:
z1 z2 z3 z4
___ __ __ __
-1 0 0 1
0 2 2 0
1 0 2 1
2 0 2 1
3 2 0 1
4 2 0 1
5 0 2 1
6 4 0 0
7 3 4 0
So z1 is just the number of trials, z2 is a condition (ranging from 1-5) and z3 is another sencond condition (0, 2, 4). z4 is the reaction itself (so 0 and 1).
To fit the curve I thought that I use the following:
[m,s] = normfit(Z4);
y = normpdf(Z4,m,s);
plot(Z4,y,’.’);
However, how can I include the other two conditions so I have trials ranging from 1-5 and 0,2,4. I would have to calculate the mean and standard deviation only for these trials? Or is the overall function incorrect?
So thankful!!Good morning,
sorry I am new to Matlab and stuck on thins problem for weeks already. Probably t is a basic question and I would be so happy if someone could help.
I am trying to fit a psychometric gaussian function on my data (have 30 different data sets). The important table columns basically look like this:
z1 z2 z3 z4
___ __ __ __
-1 0 0 1
0 2 2 0
1 0 2 1
2 0 2 1
3 2 0 1
4 2 0 1
5 0 2 1
6 4 0 0
7 3 4 0
So z1 is just the number of trials, z2 is a condition (ranging from 1-5) and z3 is another sencond condition (0, 2, 4). z4 is the reaction itself (so 0 and 1).
To fit the curve I thought that I use the following:
[m,s] = normfit(Z4);
y = normpdf(Z4,m,s);
plot(Z4,y,’.’);
However, how can I include the other two conditions so I have trials ranging from 1-5 and 0,2,4. I would have to calculate the mean and standard deviation only for these trials? Or is the overall function incorrect?
So thankful!! Good morning,
sorry I am new to Matlab and stuck on thins problem for weeks already. Probably t is a basic question and I would be so happy if someone could help.
I am trying to fit a psychometric gaussian function on my data (have 30 different data sets). The important table columns basically look like this:
z1 z2 z3 z4
___ __ __ __
-1 0 0 1
0 2 2 0
1 0 2 1
2 0 2 1
3 2 0 1
4 2 0 1
5 0 2 1
6 4 0 0
7 3 4 0
So z1 is just the number of trials, z2 is a condition (ranging from 1-5) and z3 is another sencond condition (0, 2, 4). z4 is the reaction itself (so 0 and 1).
To fit the curve I thought that I use the following:
[m,s] = normfit(Z4);
y = normpdf(Z4,m,s);
plot(Z4,y,’.’);
However, how can I include the other two conditions so I have trials ranging from 1-5 and 0,2,4. I would have to calculate the mean and standard deviation only for these trials? Or is the overall function incorrect?
So thankful!! gaussian, function, cumulative function, mean, standard deviation MATLAB Answers — New Questions
Rasbpberry Pi and MATLAB connection
Hello,
I am trying to connect MATLAB to Raspberry Pi. I wrote this code:
targetObj=targetHardware(‘Raspberry Pi’);
deploy(targetObj,’CARPID’);
r=raspi(‘10.0.0.121′,’vanderei’,’vande’)
### Updating Raspberry Pi I/O server…
### Connecting to board…
### Connected to 10.0.0.121…
### Creating server folder…
### Transferring source files…
### Building MATLAB I/O server…
### Launching MATLAB I/O server…
Error retrieving the board revision.
I could not find the reason of this error. Can you help me?
Thank you.Hello,
I am trying to connect MATLAB to Raspberry Pi. I wrote this code:
targetObj=targetHardware(‘Raspberry Pi’);
deploy(targetObj,’CARPID’);
r=raspi(‘10.0.0.121′,’vanderei’,’vande’)
### Updating Raspberry Pi I/O server…
### Connecting to board…
### Connected to 10.0.0.121…
### Creating server folder…
### Transferring source files…
### Building MATLAB I/O server…
### Launching MATLAB I/O server…
Error retrieving the board revision.
I could not find the reason of this error. Can you help me?
Thank you. Hello,
I am trying to connect MATLAB to Raspberry Pi. I wrote this code:
targetObj=targetHardware(‘Raspberry Pi’);
deploy(targetObj,’CARPID’);
r=raspi(‘10.0.0.121′,’vanderei’,’vande’)
### Updating Raspberry Pi I/O server…
### Connecting to board…
### Connected to 10.0.0.121…
### Creating server folder…
### Transferring source files…
### Building MATLAB I/O server…
### Launching MATLAB I/O server…
Error retrieving the board revision.
I could not find the reason of this error. Can you help me?
Thank you. raspberry pi MATLAB Answers — New Questions
I am getting several error messages for my insertObjectAnnotation line of code and I was wondering what is wrong with it.
I am building a code that takes an image, scans it for words, and highlights the text I am scanning for.
global imaget;
ocrResults = ocr(imaget);
words = {ocrResults.Words};
searchWords = {‘Urgent’, ‘Important’, ‘Action required’, ‘Secured Document’};
fprintf(ocrResults.Text);
highlightedImage = insertObjectAnnotation(imaget, ‘rectangle’, ocrResults.WordBoundingBoxes, words);
imshow(highlightedImage, ‘Parent’, app.UIAxes);I am building a code that takes an image, scans it for words, and highlights the text I am scanning for.
global imaget;
ocrResults = ocr(imaget);
words = {ocrResults.Words};
searchWords = {‘Urgent’, ‘Important’, ‘Action required’, ‘Secured Document’};
fprintf(ocrResults.Text);
highlightedImage = insertObjectAnnotation(imaget, ‘rectangle’, ocrResults.WordBoundingBoxes, words);
imshow(highlightedImage, ‘Parent’, app.UIAxes); I am building a code that takes an image, scans it for words, and highlights the text I am scanning for.
global imaget;
ocrResults = ocr(imaget);
words = {ocrResults.Words};
searchWords = {‘Urgent’, ‘Important’, ‘Action required’, ‘Secured Document’};
fprintf(ocrResults.Text);
highlightedImage = insertObjectAnnotation(imaget, ‘rectangle’, ocrResults.WordBoundingBoxes, words);
imshow(highlightedImage, ‘Parent’, app.UIAxes); error, object annotation, ocr MATLAB Answers — New Questions
How to Fix Limiting Variable
%% Calculate the amount of energy in the system’s battery in each time step
for i = 2:length(timesteps)
excess_energy_kWh = E(i) – home_energy_use_kWh(i); % Calculate excess energy
if excess_energy_kWh > 0 % If excess energy is produced
battery_energy_kWh(i) = min(battery_energy_kWh(i-1) + excess_energy_kWh, battery_capacity_kWh); % Charge battery
else % If energy deficit
battery_energy_kWh(i) = max(battery_energy_kWh(i-1) + excess_energy_kWh, 0); % Discharge battery
purchase_from_grid_kWh(i) = -excess_energy_kWh; % Record grid purchase
end
end
%% Calculate how much energy you will need to get from the energy company
total_purchase_from_grid_kWh = sum(purchase_from_grid_kWh);
% Calculate how much money you would save over the hypothetical period
total_savings_with_solar_USD = total_purchase_from_grid_kWh * price_per_kWh_USD;
% Calculate how much money you would save if you didn’t use solar panels
energy_from_company_kWh = sum(home_energy_use_kWh);
% Use price_per_kWh_USD
savings_without_solar_USD = energy_from_company_kWh * price_per_kWh_USD;
As shown above, I’m trying to create a model solar panel energy and revenue predictor. The only problem I’m having is that the revenue I get is different from the actual revenue, with the error being in this battery section. The battery capacity is 14 kWh, and this section is needed as there are days when the solar panel doesn’t produce the required energy amount (home_energy_use_kWh). I’ve tried multiple ways to solve this, and none of them have worked. If needed, I can post the whole code and the datasheet. Thank you for your help.%% Calculate the amount of energy in the system’s battery in each time step
for i = 2:length(timesteps)
excess_energy_kWh = E(i) – home_energy_use_kWh(i); % Calculate excess energy
if excess_energy_kWh > 0 % If excess energy is produced
battery_energy_kWh(i) = min(battery_energy_kWh(i-1) + excess_energy_kWh, battery_capacity_kWh); % Charge battery
else % If energy deficit
battery_energy_kWh(i) = max(battery_energy_kWh(i-1) + excess_energy_kWh, 0); % Discharge battery
purchase_from_grid_kWh(i) = -excess_energy_kWh; % Record grid purchase
end
end
%% Calculate how much energy you will need to get from the energy company
total_purchase_from_grid_kWh = sum(purchase_from_grid_kWh);
% Calculate how much money you would save over the hypothetical period
total_savings_with_solar_USD = total_purchase_from_grid_kWh * price_per_kWh_USD;
% Calculate how much money you would save if you didn’t use solar panels
energy_from_company_kWh = sum(home_energy_use_kWh);
% Use price_per_kWh_USD
savings_without_solar_USD = energy_from_company_kWh * price_per_kWh_USD;
As shown above, I’m trying to create a model solar panel energy and revenue predictor. The only problem I’m having is that the revenue I get is different from the actual revenue, with the error being in this battery section. The battery capacity is 14 kWh, and this section is needed as there are days when the solar panel doesn’t produce the required energy amount (home_energy_use_kWh). I’ve tried multiple ways to solve this, and none of them have worked. If needed, I can post the whole code and the datasheet. Thank you for your help. %% Calculate the amount of energy in the system’s battery in each time step
for i = 2:length(timesteps)
excess_energy_kWh = E(i) – home_energy_use_kWh(i); % Calculate excess energy
if excess_energy_kWh > 0 % If excess energy is produced
battery_energy_kWh(i) = min(battery_energy_kWh(i-1) + excess_energy_kWh, battery_capacity_kWh); % Charge battery
else % If energy deficit
battery_energy_kWh(i) = max(battery_energy_kWh(i-1) + excess_energy_kWh, 0); % Discharge battery
purchase_from_grid_kWh(i) = -excess_energy_kWh; % Record grid purchase
end
end
%% Calculate how much energy you will need to get from the energy company
total_purchase_from_grid_kWh = sum(purchase_from_grid_kWh);
% Calculate how much money you would save over the hypothetical period
total_savings_with_solar_USD = total_purchase_from_grid_kWh * price_per_kWh_USD;
% Calculate how much money you would save if you didn’t use solar panels
energy_from_company_kWh = sum(home_energy_use_kWh);
% Use price_per_kWh_USD
savings_without_solar_USD = energy_from_company_kWh * price_per_kWh_USD;
As shown above, I’m trying to create a model solar panel energy and revenue predictor. The only problem I’m having is that the revenue I get is different from the actual revenue, with the error being in this battery section. The battery capacity is 14 kWh, and this section is needed as there are days when the solar panel doesn’t produce the required energy amount (home_energy_use_kWh). I’ve tried multiple ways to solve this, and none of them have worked. If needed, I can post the whole code and the datasheet. Thank you for your help. variable, homework MATLAB Answers — New Questions
connection error of add-on product installer
The application could not connect to MathWorks.The application could not connect to MathWorks. The application could not connect to MathWorks. add-on product installer MATLAB Answers — New Questions
Output figure as white background in dark mode [2023b beta]
Dear all,
I appreciate for dark mode in 2023b version. However, for the output figure, my output figure works also based on dark mode which means black background and white text color. I take effort to change into "white mode" figure (white background, black text color). I used below code but it just work for one-by-one figure.
set(gca, ‘Color’,’w’, ‘XColor’,’k’, ‘YColor’,’k’)
set(gcf, ‘Color’,’w’)
set(gca,XScale=’log’);
colorPropObjs = findobj(gcf, "-property", "Color");
colorPropObjs(2).Color = [1.0000 1.0000 1.0000];
set(0,’defaultfigurecolor’,[1 1 1]);
I would like to ask there are any ways to work on dark mode but the output figure as normal as white mode. or we can set up output figure at one time.
Thank you for your time,
Best regards,Dear all,
I appreciate for dark mode in 2023b version. However, for the output figure, my output figure works also based on dark mode which means black background and white text color. I take effort to change into "white mode" figure (white background, black text color). I used below code but it just work for one-by-one figure.
set(gca, ‘Color’,’w’, ‘XColor’,’k’, ‘YColor’,’k’)
set(gcf, ‘Color’,’w’)
set(gca,XScale=’log’);
colorPropObjs = findobj(gcf, "-property", "Color");
colorPropObjs(2).Color = [1.0000 1.0000 1.0000];
set(0,’defaultfigurecolor’,[1 1 1]);
I would like to ask there are any ways to work on dark mode but the output figure as normal as white mode. or we can set up output figure at one time.
Thank you for your time,
Best regards, Dear all,
I appreciate for dark mode in 2023b version. However, for the output figure, my output figure works also based on dark mode which means black background and white text color. I take effort to change into "white mode" figure (white background, black text color). I used below code but it just work for one-by-one figure.
set(gca, ‘Color’,’w’, ‘XColor’,’k’, ‘YColor’,’k’)
set(gcf, ‘Color’,’w’)
set(gca,XScale=’log’);
colorPropObjs = findobj(gcf, "-property", "Color");
colorPropObjs(2).Color = [1.0000 1.0000 1.0000];
set(0,’defaultfigurecolor’,[1 1 1]);
I would like to ask there are any ways to work on dark mode but the output figure as normal as white mode. or we can set up output figure at one time.
Thank you for your time,
Best regards, dark mode, output figure, themes, r2023b MATLAB Answers — New Questions
Error Using * and ^
I am trying to ;
varV = sqrt(s^2*var(‘Texaco’)^2 + (1-s)^2*var(‘Exxon’)^2 + 2*s*(1-s)*cov(Texaco,Exxon))
but it gives me
Error using ^
Inputs must be a scalar and a square matrix.
To compute elementwise POWER, use POWER (.^) instead.
After I arrange like this :
varV = sqrt((s.^2)*var(Texaco).^2 + ((1-s).^2)*var(Exxon).^2 + 2*s*(1-s)*cov(Texaco,Exxon))
It gives me :
Error using *
Inner matrix dimensions must agree.
How can I arrange this correctly ?
Note:Texaco and Exxon are my imported datas.I am trying to ;
varV = sqrt(s^2*var(‘Texaco’)^2 + (1-s)^2*var(‘Exxon’)^2 + 2*s*(1-s)*cov(Texaco,Exxon))
but it gives me
Error using ^
Inputs must be a scalar and a square matrix.
To compute elementwise POWER, use POWER (.^) instead.
After I arrange like this :
varV = sqrt((s.^2)*var(Texaco).^2 + ((1-s).^2)*var(Exxon).^2 + 2*s*(1-s)*cov(Texaco,Exxon))
It gives me :
Error using *
Inner matrix dimensions must agree.
How can I arrange this correctly ?
Note:Texaco and Exxon are my imported datas. I am trying to ;
varV = sqrt(s^2*var(‘Texaco’)^2 + (1-s)^2*var(‘Exxon’)^2 + 2*s*(1-s)*cov(Texaco,Exxon))
but it gives me
Error using ^
Inputs must be a scalar and a square matrix.
To compute elementwise POWER, use POWER (.^) instead.
After I arrange like this :
varV = sqrt((s.^2)*var(Texaco).^2 + ((1-s).^2)*var(Exxon).^2 + 2*s*(1-s)*cov(Texaco,Exxon))
It gives me :
Error using *
Inner matrix dimensions must agree.
How can I arrange this correctly ?
Note:Texaco and Exxon are my imported datas. error * ^ MATLAB Answers — New Questions
How to run all the image with format jpg in folder? and save into folder?
Hello. Anyone know how to run a folder with thousand images instead of run one by one the image? and save into folder?
I=imread(’11_285.jpg’);
imshow(I)
magnificationFactor = 1.2;
J=imresize(I,magnificationFactor, ‘bilinear’);
imshowpair(I,J,method="montage")
imwrite(J,’11_285_rescale.jpg’);Hello. Anyone know how to run a folder with thousand images instead of run one by one the image? and save into folder?
I=imread(’11_285.jpg’);
imshow(I)
magnificationFactor = 1.2;
J=imresize(I,magnificationFactor, ‘bilinear’);
imshowpair(I,J,method="montage")
imwrite(J,’11_285_rescale.jpg’); Hello. Anyone know how to run a folder with thousand images instead of run one by one the image? and save into folder?
I=imread(’11_285.jpg’);
imshow(I)
magnificationFactor = 1.2;
J=imresize(I,magnificationFactor, ‘bilinear’);
imshowpair(I,J,method="montage")
imwrite(J,’11_285_rescale.jpg’); images, folder, save MATLAB Answers — New Questions
CLI is not running when i set absolute path
When using CLI in polyspace path polyspace-bug-finder runs normally.
but in absolute path and run it, it will not run.
I think, There are no different, so how i can use absolute path to make auto CLI code?When using CLI in polyspace path polyspace-bug-finder runs normally.
but in absolute path and run it, it will not run.
I think, There are no different, so how i can use absolute path to make auto CLI code? When using CLI in polyspace path polyspace-bug-finder runs normally.
but in absolute path and run it, it will not run.
I think, There are no different, so how i can use absolute path to make auto CLI code? path, absolute path MATLAB Answers — New Questions
The training accuracy and the validation accuracy stay in the range of 50%
Can Anyone help me to understand why the CNN model behave as shown in the SampleCan Anyone help me to understand why the CNN model behave as shown in the Sample Can Anyone help me to understand why the CNN model behave as shown in the Sample cnn, computer vision, deep learning, machine learning MATLAB Answers — New Questions
not enough input arguments
Hello, here is my simple equation of a function to determine total pay after taxes. I’m new to Matlab and i’m getting an error in line 5 but im not really understanding why.
————————————————————————————-
function [takehome_pay, taxes_paid, total_pay] =
PaycheckFunction(HoursWorked, HourlyWage, TaxRate)
end
% Function to determine your take home pay after taxes are taken out
total_pay = HoursWorked * HourlyWage;
taxes_paid = total_pay * TaxRate;
takehome_pay = total_pay – taxes_paid;
Not enough input arguments.
Error in PaycheckFunction (line 5)
total_pay = HoursWorked * HourlyWage;Hello, here is my simple equation of a function to determine total pay after taxes. I’m new to Matlab and i’m getting an error in line 5 but im not really understanding why.
————————————————————————————-
function [takehome_pay, taxes_paid, total_pay] =
PaycheckFunction(HoursWorked, HourlyWage, TaxRate)
end
% Function to determine your take home pay after taxes are taken out
total_pay = HoursWorked * HourlyWage;
taxes_paid = total_pay * TaxRate;
takehome_pay = total_pay – taxes_paid;
Not enough input arguments.
Error in PaycheckFunction (line 5)
total_pay = HoursWorked * HourlyWage; Hello, here is my simple equation of a function to determine total pay after taxes. I’m new to Matlab and i’m getting an error in line 5 but im not really understanding why.
————————————————————————————-
function [takehome_pay, taxes_paid, total_pay] =
PaycheckFunction(HoursWorked, HourlyWage, TaxRate)
end
% Function to determine your take home pay after taxes are taken out
total_pay = HoursWorked * HourlyWage;
taxes_paid = total_pay * TaxRate;
takehome_pay = total_pay – taxes_paid;
Not enough input arguments.
Error in PaycheckFunction (line 5)
total_pay = HoursWorked * HourlyWage; not enough arguments, matlab MATLAB Answers — New Questions
MCSA spectral analysis using FFT
Hi,
I’m new to matlab. I have to do FFT and plots of spectral analysis of an induction motor with short circuit. Here in zip I have csv file (I also have same matlab file if necessary, don’t know what is better) of one phase (without fault). I’ve been trying for several throws to create something, but no luck. The sampling frequency was 5000000 Hz, the recording length was 0,2 s and the number of samples was 1000000. Can I ask for help. Thank you very much.Hi,
I’m new to matlab. I have to do FFT and plots of spectral analysis of an induction motor with short circuit. Here in zip I have csv file (I also have same matlab file if necessary, don’t know what is better) of one phase (without fault). I’ve been trying for several throws to create something, but no luck. The sampling frequency was 5000000 Hz, the recording length was 0,2 s and the number of samples was 1000000. Can I ask for help. Thank you very much. Hi,
I’m new to matlab. I have to do FFT and plots of spectral analysis of an induction motor with short circuit. Here in zip I have csv file (I also have same matlab file if necessary, don’t know what is better) of one phase (without fault). I’ve been trying for several throws to create something, but no luck. The sampling frequency was 5000000 Hz, the recording length was 0,2 s and the number of samples was 1000000. Can I ask for help. Thank you very much. fft, spectral analysis MATLAB Answers — New Questions
How to give random inputs for my simulink design?
I have created a model using importhdl ie. from my verilog code. Now I want to test it with many random inputs just like we do simulation testing on iVerilog or Quartus Prime or any other HDL tool. How can I do that as if I use constant then it works for only one input at a time?I have created a model using importhdl ie. from my verilog code. Now I want to test it with many random inputs just like we do simulation testing on iVerilog or Quartus Prime or any other HDL tool. How can I do that as if I use constant then it works for only one input at a time? I have created a model using importhdl ie. from my verilog code. Now I want to test it with many random inputs just like we do simulation testing on iVerilog or Quartus Prime or any other HDL tool. How can I do that as if I use constant then it works for only one input at a time? simulink, digital image processing, importhdl, random number generator MATLAB Answers — New Questions
Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.
I’m run this script. Could someone help me
rvar_selec=find(sum(Rsel_matrix)>=(ncut)); if (length(rvar_selec)==0) rvar_selec=find(sum(Rsel_matrix)>(0.25*nstab)); end
if (length(rvar_selec)==0) rvar_selec=rset; end
TrDat_rselec=TrDat(:,rvar_selec);
TeDat_rselec=TeDat(:,rvar_selec);
Model3 = fitcecoc(TrDat_rselec,TrLab_perm)
PredLab2(:,perm)=predict(Model2,TeDat_r) %* (Here, it indicates the error: Unable to perform assignment because the indices on the left side are not compatible with the size of the right side)
PredLab3(:,perm)=predict(Model3,TeDat_rselecI’m run this script. Could someone help me
rvar_selec=find(sum(Rsel_matrix)>=(ncut)); if (length(rvar_selec)==0) rvar_selec=find(sum(Rsel_matrix)>(0.25*nstab)); end
if (length(rvar_selec)==0) rvar_selec=rset; end
TrDat_rselec=TrDat(:,rvar_selec);
TeDat_rselec=TeDat(:,rvar_selec);
Model3 = fitcecoc(TrDat_rselec,TrLab_perm)
PredLab2(:,perm)=predict(Model2,TeDat_r) %* (Here, it indicates the error: Unable to perform assignment because the indices on the left side are not compatible with the size of the right side)
PredLab3(:,perm)=predict(Model3,TeDat_rselec I’m run this script. Could someone help me
rvar_selec=find(sum(Rsel_matrix)>=(ncut)); if (length(rvar_selec)==0) rvar_selec=find(sum(Rsel_matrix)>(0.25*nstab)); end
if (length(rvar_selec)==0) rvar_selec=rset; end
TrDat_rselec=TrDat(:,rvar_selec);
TeDat_rselec=TeDat(:,rvar_selec);
Model3 = fitcecoc(TrDat_rselec,TrLab_perm)
PredLab2(:,perm)=predict(Model2,TeDat_r) %* (Here, it indicates the error: Unable to perform assignment because the indices on the left side are not compatible with the size of the right side)
PredLab3(:,perm)=predict(Model3,TeDat_rselec unable to perform assignment because the indices o MATLAB Answers — New Questions