Answered

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)

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)

2 months ago | 0

| accepted

Answered

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

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

2 months ago | 0

Answered

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)

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)

2 months ago | 0

Answered

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

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

2 months ago | 1

| accepted

Answered

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

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

2 months ago | 0

Answered

Using Solve function but it keeps returning an answer without variables

syms m v solve(Kin,v)

Using Solve function but it keeps returning an answer without variables

syms m v solve(Kin,v)

2 months ago | 0

| accepted

Answered

I get the following error message: "'Value' must be a double scalar." in appdesigner

Try using *readmatrix* function instead of *readtable*

I get the following error message: "'Value' must be a double scalar." in appdesigner

Try using *readmatrix* function instead of *readtable*

2 months ago | 0

Answered

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

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

3 months ago | 0

Answered

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

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

3 months ago | 0

Answered

what way do i remove the flow

syms alpha beta theta U = 8; % Uniform flow velocity z0 = 0.6; % Center of the cylinder R ...

what way do i remove the flow

syms alpha beta theta U = 8; % Uniform flow velocity z0 = 0.6; % Center of the cylinder R ...

3 months ago | 1

| accepted

Answered

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*

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*

3 months ago | 0

Answered

Nested Functions Matlab App Designer

app.volgraphfun(volatility, name, object_type, chosen_date); Change the above lines to app.volgraphfun(~, volatility,...

Nested Functions Matlab App Designer

app.volgraphfun(volatility, name, object_type, chosen_date); Change the above lines to app.volgraphfun(~, volatility,...

3 months ago | 0

| accepted

Answered

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

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

3 months ago | 0

| accepted

Answered

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

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

3 months ago | 0

Answered

I get complex numbers while using "acosd" function

Probably you might have evaluated the equation using incorrect parenthesis enclosing only the dot product for acosd function an...

I get complex numbers while using "acosd" function

Probably you might have evaluated the equation using incorrect parenthesis enclosing only the dot product for acosd function an...

3 months ago | 0

| accepted

Answered

Use cmd to execute .exe

Use a fullfile function to read the files from whichever directory and /or drive they are located as shown below. out = filer...

Use cmd to execute .exe

Use a fullfile function to read the files from whichever directory and /or drive they are located as shown below. out = filer...

3 months ago | 0

Answered

I have calculated 4 standard deviation values for each row of a 4x3 matrix. How to convert these 4 values into a single standard deviation value for the whole matrix?

a=[2 3 5;12 67 54;3 7 8;14 9 23] b = std(a,0,"all") Use the *all* option to get the SD for whole matrix

I have calculated 4 standard deviation values for each row of a 4x3 matrix. How to convert these 4 values into a single standard deviation value for the whole matrix?

a=[2 3 5;12 67 54;3 7 8;14 9 23] b = std(a,0,"all") Use the *all* option to get the SD for whole matrix

3 months ago | 0

Answered

is possible to update parameter function ?

call the function xx inside the Main function using a loop. This would repeatedly call the function xx and update the value of...

is possible to update parameter function ?

call the function xx inside the Main function using a loop. This would repeatedly call the function xx and update the value of...

3 months ago | 0

Answered

fun is doing odd things

fun is defined as anonymous function with two input parameters. In the 1st approach, you are defining both parameters as argume...

fun is doing odd things

fun is defined as anonymous function with two input parameters. In the 1st approach, you are defining both parameters as argume...

3 months ago | 0

Answered

Normalized Wind Rose Plot help

One way is to use the data for air pollution concentration directly and compare with direction data as shown below Data = load(...

Normalized Wind Rose Plot help

One way is to use the data for air pollution concentration directly and compare with direction data as shown below Data = load(...

3 months ago | 0

Answered

Comparing two tables and replacing categorical column, row wise.

Hi @Giridhar sai pavan kumar Konduru, Here's one way to compare Label columns from two tables. Do you also want to add the ...

Comparing two tables and replacing categorical column, row wise.

Hi @Giridhar sai pavan kumar Konduru, Here's one way to compare Label columns from two tables. Do you also want to add the ...

3 months ago | 0

Answered

In app designer the timer call back keeps running after xing out of application.

can you try placing the delete(t) inside the timercallback function ? function startupFcn(app) %Creating timer object ...

In app designer the timer call back keeps running after xing out of application.

can you try placing the delete(t) inside the timercallback function ? function startupFcn(app) %Creating timer object ...

3 months ago | 0

Answered

Average every 3 rows of 1 column in a 12 x 8 array

Data = [ 34 6 4 -6.60874766440390 -40.7725049965035 16217 0.289000000000000 1.02200000000000 35 6 5 -6.54326464638770 -40.5611...

Average every 3 rows of 1 column in a 12 x 8 array

Data = [ 34 6 4 -6.60874766440390 -40.7725049965035 16217 0.289000000000000 1.02200000000000 35 6 5 -6.54326464638770 -40.5611...

3 months ago | 0

Answered

Dimensionality error with plot

Pdata = reshape(pressureData(1,1,:),1,[]) plot(t,Pdata)

Dimensionality error with plot

Pdata = reshape(pressureData(1,1,:),1,[]) plot(t,Pdata)

3 months ago | 1

Answered

Incorrect argument data type or missing argument in call to function 'sqrt'.

clc Lc0 = ureal('Lc0',4.2e-3,'percent',10) Lg0 = ureal('Lgo',2.5e-3,'percent',30) Cf0 = ureal('Cf0',8e-6,'percent',10) ...

Incorrect argument data type or missing argument in call to function 'sqrt'.

clc Lc0 = ureal('Lc0',4.2e-3,'percent',10) Lg0 = ureal('Lgo',2.5e-3,'percent',30) Cf0 = ureal('Cf0',8e-6,'percent',10) ...

3 months ago | 0

Answered

Filtering out y values

Here's what you can do to filter y values from a dataset , by applying a condition x = 0:8e4; y = 20*rand(length(x),1); scatt...

Filtering out y values

Here's what you can do to filter y values from a dataset , by applying a condition x = 0:8e4; y = 20*rand(length(x),1); scatt...

3 months ago | 0

| accepted

Answered

regarding matlab simulink.

Hi @LAXMIDHAR, Delete any files that are previously named untitled in your parent and/or working directory. Close all previ...

regarding matlab simulink.

Hi @LAXMIDHAR, Delete any files that are previously named untitled in your parent and/or working directory. Close all previ...

3 months ago | 0

Answered

Adding more circles to the scatter plot legend

If you want different colors, call the scatter function seperately for each point. Currently, you are assigning the same color ...

Adding more circles to the scatter plot legend

If you want different colors, call the scatter function seperately for each point. Currently, you are assigning the same color ...

3 months ago | 0

Answered

How to remove zero from float value.?

x = [0.9093 0.9074 0.9014] vpa(round(x,1),2)

How to remove zero from float value.?

x = [0.9093 0.9074 0.9014] vpa(round(x,1),2)

3 months ago | 0

| accepted