Answered
Why are my error bars multicoloured with no line?
x = 20:1:25; y = [1.75 1.78 1.81 1.85 1.9 1.95]; err = repmat(0.1,length(x),1); errorbar(x,y,err)

3 months ago | 2

Answered
comparison number on interval
px = 0; py = 1000; pz = 0; if (-524 <= px) & (px <= 524) & (-524 <= py) & (py <= 524) & (0 <= pz) & (pz <= 524) px ...

3 months ago | 0

| accepted

Answered
Function with for loop doesn't always work
With option as rev, it wont work, since the variable deg is undefined option = 'rev' % with this option it wont if strcmp...

3 months ago | 0

Answered
How can i put the values in gradient of a function obtained through the gradient command?
@RADHIKA GOUR, you can use subs and plug-in the values for p1,p2,p3, p4 variables. TT=[1 1 1 1]; noise = randi([2 10]); sym...

3 months ago | 0

Answered
how can i stop this while loop? it doesn;t finish
Another way is to use isequal function if isequal((out.soc_fin(end)-soc_target),1.5) break end

3 months ago | 0

Answered
Turning a double into a scalar
close all; clear all; clc gamma = 1.4; mach = 2.5; theta_a = 0:.1:30; p1 = .2; t1 = 300; t_0 = 675; p_0= 3.417; vm2 = (t...

3 months ago | 1

| accepted

Answered
How to join variables in the title of plot?
title(['PCA scores', num2str(method), num2str(par)]);

3 months ago | 0

Answered
Subs function doesn't fully replace the values
syms X Y Z W q = [X, Y, Z, W]; q_1 = [1, 2, 3, 4]; phi = [(2*X-W)^2 X^2-2*Y Y*sin(Z)]; J = jacobian(phi,q); disp(J); J_1 =...

3 months ago | 0

| accepted

Answered
How to display functions with 2 outputs
a = 212% input('Please enter a number '); disp("Select what conversion you want to do:"); disp('1. Celsius to Fahrenhiet') co...

3 months ago | 1

| accepted

Answered
plot legend shows wrong linespec
d = load('data.mat') %figure plot(d.t,repmat(d.molTot,length(d.t),1),'-rx',d.t,d.molGas,'-bo'); legend('a','b')

3 months ago | 1

| accepted

Answered
for loops within while loop
while t1< 2 & h2 >= 0 % your code end You could put both conditions together as above using single while loop.

3 months ago | 0

Answered
How to Generate Subscripted Arrays in Live Scripts
\left(\begin{array}{ccc} z_{1} & z_{2} & z_{3} \end{array}\right)

3 months ago | 0

Answered
I am having trouble trying to maintain the loop
@Yogesh when array sizes dont match , those errors occur. check the array dimensions in for loop Nt=161224; dt=6e-12; T=9.673...

3 months ago | 0

Answered
how to create a function to solve a series of equitions?
if you have symbolic toolbox then you can define it inside the function as function [a,b,c] = EqSol(var1,var2,var3,var4,var5,va...

4 months ago | 0

| accepted

Answered
How to Fix "Warning: Colon operands must be real scalars" Warning
for k = 1:numel(ply_nums_range) ply_nums = ply_nums_range(k); % for i = 1:length(data) b = data(...

4 months ago | 0

Answered
Error using symsum and arrays for summing over array elements
trial = symsum( array(double(q)).*q.^2 , q,2,7)

4 months ago | 0

| accepted

Question


Why is Run button not visible ?
Look at the snapshot attached Does anyone know why the run button is not visible this way?

4 months ago | 1 answer | 0

1

answer

Answered
'InitalLearnRate' is not an option for solver 'sgdm'.
options = trainingOptions('sgdm', ... 'MiniBatchSize',128, ... 'MaxEpochs',1, ... 'InitialLearn...

4 months ago | 2

| accepted

Answered
ideal-gas specific heats of various common gases function of temperature
Hi @재훈 if you consider a change in sign for the last term it would result in 1.005 M = 28.9; % assune T = 273.15; a=28.11;...

4 months ago | 1

| accepted

Answered
Calculating a Fourier series with MATLAB manually problem
clear all close all hidden clc syms t % time syms n % number of terms to calculate the sum to syms T % period syms a_n(t, ...

4 months ago | 0

Answered
Square wave with randomly varying frequency
To make it appear square, you need to delete the 2*pi part in the square function, and use randi instead of rand for scalar ...

4 months ago | 0

Answered
Not getting the expected size matrix from evaluating a function handle that is equal to zero
h = @(x,y) zeros(10) [X, Y] = meshgrid(linspace(0, 2, 10)); Z = h(X,Y)

4 months ago | 0

Answered
Unable to convert expression into double array. Cannot use quiver.
@Tai Nguyen, Use a different variable name for meshgrid outputs and use subs for symbolic expressions to replace with numeric ar...

4 months ago | 0

Answered
Filters in pop up menu
Hi @Basanagouda Kenchanagoudra, You can use switch-case inside the Callback as shown below Item = get(handles.Module_PopUp,'S...

4 months ago | 0

Answered
How to use Unicode numeric values in regexprep?
regexprep('Häagen-Dasz','ä','A') regexprep('Häagen-Dasz','ä','\x{C4}')

4 months ago | 0

Answered
How to determe the Fatigue Damage according Miner's Rule via rainflow counting
Use linspace function in this line and evaluate the damage cigma_delta= linspace(1e-3,2*Yield,length(C_7.Values)); clear a...

4 months ago | 1

| accepted

Answered
Add column in specific number range to available table
A.B(:,1) = (400:2970).'; % use transpose

4 months ago | 0

Answered
Error in paired t-test between corresponding elements.
% Define the data for two groups group1 = [10, 15, 20, 25, 30]; group2 = [12, 18, 22, 28, 32]; % Initialize array to store ...

4 months ago | 0

| accepted

Answered
Unable to perform assignment because brace indexing is not supported for variables of this type
Try the folliowing sLineMajor = simout.logsout.get("<B_x_VS_LaneBoundaries>").Values.LaneBoundaries(IdxLines); vLineWidth{Id...

4 months ago | 0

| accepted

Answered
How can I put an output from the display function in a table?
Section = ['254 x 254 x 73';'254 x 146 x 31';'254 x 146 x 31';'254 x 254 x 73';'254 x 254 x 73';'152 x 152 x 51';'152 x 152 x 51...

4 months ago | 0

Load more