Community Profile

photo

VBBV


PEC

Last seen: Today Aktiv seit 2017

Followers: 0   Following: 1

Kontakt

MATLAB enthusiast , Mechanical engineer (MeMe) :-)

Statistiken

All
  • MATLAB Central Treasure Hunt Finisher
  • 36 Month Streak
  • Guiding Light
  • CUP Challenge Master
  • Creator
  • Personal Best Downloads Level 2
  • First Review
  • Introduction to MATLAB Master
  • Commenter
  • Community Group Solver
  • Thankful Level 5
  • Knowledgeable Level 5

Abzeichen anzeigen

Feeds

Anzeigen nach

Beantwortet
Extract certain values in .mat file
data= [-0.13793 -0.114746 -0.204773 -0.224304 -0.181274 -0.192566 -0.159912 -0.174866 -0.134888 -0.148926] data(2:2:end) dat...

etwa 18 Stunden vor | 0

Beantwortet
Function definitions are not permitted in this context.
Rename the file *ok.m* to *uniform_pcm.m* and save file. Type the name of function from command window (giving input arguments)...

etwa 19 Stunden vor | 0

Beantwortet
Create a solid line instead of single points in the plot
If the plot function is inside a loop, you could put it outside the loop as shown below, in order to plot solid line plot(vR(1,...

etwa 22 Stunden vor | 0

Beantwortet
Plotting a diagram and getting some errors
There is no function called plotv in Matlab (or it must have been removed in new release), Please refer to the following link f...

ein Tag vor | 0

| akzeptiert

Beantwortet
fsolve stopped because the last step was ineffective
The problem seems to occur if you have the same initial conditions for all the angles. Try giving different initial conditions/...

2 Tage vor | 1

Beantwortet
summation of aij & i, j dependent function in matlab
% % initial contraction from flow, formula from diagram 4.10 % % %given test values Re_0=60.46; f0=1; f1=2.7225; % ind=...

3 Tage vor | 0

| akzeptiert

Beantwortet
Why am I receiving a "Too many output arguments" error on this particular code?
Load the data and assign to a variable. When you load a MAT file using load function, it returns a struct with different data ...

3 Tage vor | 1

| akzeptiert

Beantwortet
Keeping getting gradient error and no figure 2
%function [] =ZacharyC1 clear all clc U=4.7; m=6; a=0.5; [X,Y]=meshgrid (linspace(-2,2,100),linspace(-2,2,100)); r=sqrt...

3 Tage vor | 0

Beantwortet
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)

4 Tage vor | 2

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

4 Tage vor | 0

| akzeptiert

Beantwortet
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...

4 Tage vor | 0

Beantwortet
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...

4 Tage vor | 0

Beantwortet
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

6 Tage vor | 0

Beantwortet
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...

6 Tage vor | 1

| akzeptiert

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

7 Tage vor | 0

Beantwortet
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 =...

8 Tage vor | 0

| akzeptiert

Beantwortet
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...

9 Tage vor | 1

| akzeptiert

Beantwortet
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')

9 Tage vor | 1

| akzeptiert

Beantwortet
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.

9 Tage vor | 0

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

11 Tage vor | 0

Beantwortet
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...

16 Tage vor | 0

Beantwortet
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...

17 Tage vor | 0

| akzeptiert

Beantwortet
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(...

18 Tage vor | 0

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

18 Tage vor | 0

| akzeptiert

Frage


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

19 Tage vor | 1 Antwort | 0

1

Antwort

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

22 Tage vor | 2

| akzeptiert

Beantwortet
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;...

23 Tage vor | 1

| akzeptiert

Beantwortet
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, ...

25 Tage vor | 0

Beantwortet
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 ...

26 Tage vor | 0

Beantwortet
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)

27 Tage vor | 0

Mehr laden