Respondida
error in multiplying symbolic variable in a matrix
clear clc syms z L [1 11] z , L x=[0 300 1000 1500 1700 2000 3000 3300 4000 4500 5000]; y=[32.0 122.4 296.4 405.7 447.6 60...

más de 3 años hace | 0

Respondida
How to write the output of matlab iteration results of many equations in excel in row by row specifying the starting row?
k = 1; for Xref1=0:0.1:1 % Loop through the range of inputs Xref1; Hi=Xref1*10; Lo=Xref1*5; out_put(k,:...

más de 3 años hace | 0

| aceptada

Respondida
Stateflow onramp unreachable state task 4 error
Did you give the conditions & condition actions also from previous tasks ? It looks like you've added only transition

más de 3 años hace | 0

Respondida
plot w=exp(-x/0.3042) (when 0<w<1)
w=@(x) exp(-x/0.3042) fplot(w,[0 1])

más de 3 años hace | 1

Respondida
simple function plot in MATLAB
Hi @Sanjida Use element wise division for evaluatiing the vector Y, It seems you have used incorrect operator ' \ ' this is...

más de 3 años hace | 1

Respondida
Properties of exponentials - symbolic algebra
Hi @Luca Lazzizzera You can of course use simplify as @Mischa Kim mentioned. However, if you want to obtain the simplified ex...

más de 3 años hace | 0

Respondida
How to design a robust PI controller based on the Sensitivity peak value
Define or write these lines of code before the symbolic equation M_eqn. This equation contains two undefined variables, alpha a...

más de 3 años hace | 1

Respondida
How to convert a symbolic matrix into matrix polynomial
syms x N = [1 5-3*x 0;0 1 5-3*x;1 0 x^2-5] K = poly2sym(N,[x]) simplify(K)

más de 3 años hace | 0

Respondida
Scatter plot does not display multiplied values
If I add multiplication by a constant, the vectors are scattered well with the new values, but the numbers are not This is some...

más de 3 años hace | 1

Respondida
Splitting numbers of vector in multiple parts
If you want to split array of numbers, but using a loop , here's one way V = string([2022024 2023074 2022044 2023014 2023054])...

más de 3 años hace | 1

Respondida
Is it possible to set gca for all subplots?
yes, its possible to set the YTick to [ ] for all subplots you want by using axes handles for individual subplots as shown bel...

más de 3 años hace | 1

Respondida
Insert number in polynomial
You can use symsum function in place of for loop. since polynomial p is function of x, its easier to use symbolic summation fo...

más de 3 años hace | 0

Respondida
Can someone please help! I cannot plot this graph. Multiple 3 line graph.
clear; clc; r = 0.05; %radius in meter viscosity = [256E-3, 544E-3, 1200E-3, 3680E-3, 5440E-3]; %viscosity in pa.s l = 0.0...

más de 3 años hace | 0

| aceptada

Respondida
Equation in the exported text file is truncated
fprintf(fileID, '%50s\t %50s\n','mu33_1 = ', Solution); Since you want to print *mu33_1* and *Solution* as characters to the fi...

más de 3 años hace | 0

| aceptada

Respondida
Reading an Array Data from the Serial Port
data=read(s); Try using *read* function which has option to read how many data samples you want at a time. It also allows t...

más de 3 años hace | 0

Respondida
best approximation for double numbers
format long syms f(x) syms x f(x) = 1 / (1 + exp(-((x + 8.4730) / 10 ))) vpa(f(400),100)

más de 3 años hace | 0

| aceptada

Respondida
How to use 'for loop' to check user input?
modify the upper limit in exit condition line according to the user input, x = [ 1 2 3 1 2 3 1 2...

más de 3 años hace | 0

Respondida
Parse error at '>' and at 'end'
while T > Tf

más de 3 años hace | 0

| aceptada

Respondida
I want to fill my table in a loop, the variable names do not change along
for u=1:length(change) Replace the *for loop* to below for u=1:length(changen)

más de 3 años hace | 0

Respondida
how can I process several files
You can use a for loop tiledlayout('flow') for k = 1 : 7 D = sprintf('PIVlab_%1d.mat',k) hResult = surfheight(D,h0...

más de 3 años hace | 1

| aceptada

Respondida
Error reading uo file
u1 = ncread(filename,'uo',[1 1 nz 1],[length(lon) length(lat) 1 ntime]); v1 = ncread(filename,'uo',[1 1 nz 1],[length(lon) leng...

más de 3 años hace | 0

Respondida
Using Solve function but it keeps returning an answer without variables
syms m v solve(Kin,v)

más de 3 años hace | 0

| aceptada

Respondida
I get the following error message: "'Value' must be a double scalar." in appdesigner
Try using *readmatrix* function instead of *readtable*

más de 3 años hace | 0

Respondida
Why does geodensityplot create a line rather than a full-cover colormap?
Use *geoplot3* or *geoglobe* functions if you want 3D plots. They are able to handle the data well than other 2D/3D plot functio...

más de 3 años hace | 0

Respondida
Getting 'empty' Compiled Port Data Types
Run the model once (insted of just compiling) and check if model generates any data from ports and call or run the command get...

más de 3 años hace | 0

Respondida
what way do i remove the flow
syms alpha beta theta U = 8; % Uniform flow velocity z0 = 0.6; % Center of the cylinder R ...

más de 3 años hace | 1

| aceptada

Respondida
When map is plotted in appDesigner, it is greyed out and not interactive, but did not behave this way initially.
h = get(gca,"Children") delete(h) Try using *gca* instead of *app.MapPlotFourPanel*

más de 3 años hace | 0

Respondida
Nested Functions Matlab App Designer
app.volgraphfun(volatility, name, object_type, chosen_date); Change the above lines to app.volgraphfun(~, volatility,...

más de 3 años hace | 0

| aceptada

Respondida
Stopping a MATLAB loop after certain condition
Rudder = repmat([rand(1,5), 0, rand(1,5), 0, rand(1,5), 0, rand(1,5), 0],2,1) count = 0; for x = 1:size(Rudder,1) for k =...

más de 3 años hace | 0

| aceptada

Respondida
Double sum with odd number
n = [1:2:1000]; gamma = 1; ss = sum(sum((2./(n.*pi)).^6.*(3.*(1 - tanh(n.*pi./(2*gamma))./(n.*pi./(2*gamma))) - tanh(n.*pi./(...

más de 3 años hace | 0

Cargar más