Réponse apportée
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])...

plus de 2 ans il y a | 1

Réponse apportée
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...

plus de 2 ans il y a | 1

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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)

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
Parse error at '>' and at 'end'
while T > Tf

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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)

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
Using Solve function but it keeps returning an answer without variables
syms m v solve(Kin,v)

plus de 2 ans il y a | 0

| A accepté

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

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

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

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
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*

plus de 2 ans il y a | 0

Réponse apportée
Nested Functions Matlab App Designer
app.volgraphfun(volatility, name, object_type, chosen_date); Change the above lines to app.volgraphfun(~, volatility,...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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 =...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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./(...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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(...

presque 3 ans il y a | 0

Réponse apportée
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 ...

presque 3 ans il y a | 0

Réponse apportée
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 ...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

Charger plus