Answered
Bar graph in app designer interface
bar(app.histo,x,y) Try only using the above arguments. I think you want some histogram to be plotted , in that case use *hi...

3 years ago | 0

| accepted

Answered
I can't find what's wrong with my code
clc clear close all %input data D_AB=1.5e-07; D=0.1; t=5058.85; n=5; c=0.02; y=0; %because as n increases, series ...

3 years ago | 0

Question


Is it possible to Merge points from two accounts for same user ?
Hello , Suppose if a user has multiple Mathworks accounts and wants to merge both accounts. If yes, how does it work? Is it ...

3 years ago | 1 answer | 0

1

answer

Answered
Inf or NaN whilst trying to run a function
T_datum_K = 25+273.15; T_in_K = 199.3 + 273.15; T_out_K = 359 + 273.15; %Ar C1_Ar = 20786; C2_Ar = 1; C3_Ar = 0.1; C4_Ar ...

3 years ago | 0

Answered
I am having issues concatenating arrays
In the below line you have several variables, C2m, Fc, Am which may be multidimensional matrices KIc0 = sqrt(1e-3 * (1 - Vv(k...

3 years ago | 1

| accepted

Answered
for generation of 10 i nput in each sequence for a sinusoidal signal
clearvars % size or range of iteration k = 4:1000; x = 1.05 * sin(pi*k/45) for J = 1:length(k)-9 X(J,:) = x(J:J+9); en...

3 years ago | 1

Answered
Inconsisent(?) behaviour of str2num() with a particular usage
The function *str2num* can be used to convert the strings that inherently contain numbers to double class. In your case ther...

3 years ago | 1

| accepted

Answered
how to plot in matlab a formula with multiple summation ?
% parameters dH = 0.5; M = 100; K_UE = 1:20; SNR0_dB = 0; SNR0 = 10^(0/10); beta_bar_dB = -10; beta_bar = 10^(-10/10); n...

3 years ago | 0

Answered
Using variable legend in a for loop
n0 = 1; lam = 3:0.01:7; a1 = 3.263; b1 = 0.1644; n1 = sqrt(1 + (a1.*(lam.^2))./((lam.^2) - (b1^2))); ns = 1.5; th = 0; i...

3 years ago | 0

| accepted

Answered
I got a blank figure while trying to plot the phase space
Choose better initial conditions e.g. for q1 and q2 they are both zero close all D=0.02; r=0.04; A=2.5; B=0.01; z=3.0; C...

3 years ago | 1

| accepted

Answered
How can I set the NaN values to black in a pcolor plot?
% Generate sample data data = rand(10, 10); data(3, 3) = NaN; % Set a specific value as NaN % Create the pcolor plot figur...

3 years ago | 1

Answered
App Designal : write string in a culumn "A" in the table
Try below app.UITable.Data = ["fdgfdg" "gg" "ghh" "jjj"] in place of app.UITable.Data = ["fdgfdg" ;"gg" ;"ghh"; "jjj"]

3 years ago | 1

Answered
How to Italicize either of the axis tick labels ?
Use '\it label text' % italic font xticklabels({'\it text1','\it text2'}) % normal (plain) font xticklabels({'text1','tex...

3 years ago | 1

| accepted

Answered
Generating an error bar plot with a custom equation fit
If you want to add multiple lines for errorbars i.e. both y data and y data fitted along with their deviations, you can plot the...

3 years ago | 0

Answered
Bringing plots to the "front" to make them more visible?
Use a marker and increase fontsize p2 = plot(x, data, 'k'); p2.Color(4) = 0.2; hold on plot(x, means,'ro','MarkerSize',12,'...

3 years ago | 0

Answered
How to take an integral symbolically and then convert it to type double?
syms t omega real A = rand(1000,1); % specify the integration variable t as the argument I = double(vpa(int(A.*sin(omega*t),t...

3 years ago | 0

| accepted

Answered
Replacing sequences in matrix
clear; close all; clc; results = [4 5 6 7 8,9 10 11,12,13, ... 104,105,106,107,108,109,110,111,112,113, ... 204,205,2...

3 years ago | 0

Answered
A line does not appear when I plot
% inside the for loop Temp(h) = q./(6*k_w)*(r_I.^2) + T_sI % outside the for loop Temp(Temp == 0 ) = []; plot(1000:10000,T...

3 years ago | 1

| accepted

Answered
Running a function multiple times and recording outputs for each of the runs in one table.
Assuming some random data, the output data can be fit into a table as shown below % some random data data= randi([2 200],12...

3 years ago | 1

| accepted

Answered
sinc + cos function plot
Delete pi from below line % delete pi from the below line a = (-4:0.001:4); p = 10; f = p*sinc(a) + cos(a) plot(a,f)

3 years ago | 0

| accepted

Answered
Adding fields of two different structs together
part(1) = struct('name', 'x', 'number', 1) part(2) = struct('name', 'y', 'number', 2); part(3) = struct('name', 'z', 'number'...

3 years ago | 0

Answered
Integration with Symbolic Variables
syms theta r a=10; x=a*(1-cos(theta)); y=a*(1-sin(theta)); r=sqrt(x^2+y^2) I = vpaintegral(r,0,2*pi)

3 years ago | 0

| accepted

Answered
Only seven lines of code, the program runs continuously without any results when solving the equation
syms I A B = 0.02;%blocking probability N = 8;%number of channels very huge FN = factorial(N); ACell = solve((A^N)/FN == B*s...

3 years ago | 0

Answered
Not your typical vertcat error. Weird behaviour with it.
load("nlworkspace.mat") m1 = parameters(1) m2 = parameters(2) k1 = parameters(3) k2 = parameters(4) d1 = parameters(5) d2 ...

3 years ago | 0

| accepted

Answered
Change selected item in ListBox
Assign value as output argument to function ParadigmaAuswahlListBoxValue as shown below, and pass it as input argument to functi...

3 years ago | 1

Answered
Latex en la leyenda de los graficos
you can use the $\hat{u}$ in legend function , The latex interpreter fonts usually appear smaller compared to regular fontsiz...

3 years ago | 0

Answered
How to plot like the following scatter plot on MATLAB?
data = [11,10;10,11;9,10;20,18;10,11;11,10;10,9]; figure; plot(data);grid figure; hold on sz = 100; scatter(1:size(data,1)...

3 years ago | 0

Answered
Error using plot - not enough input arguments / invalid data argument
the variables which are trying to plot are cell array of strings from a table. The plot function call takes NUMERIC (DOUBLE) arr...

3 years ago | 1

Answered
Want Cells in Struct to Show Up as a String
T.data = table(["Apple";"Banana"]) T.data = table2array(table(["Apple";"Banana"])) You can use *table2array* function as a...

3 years ago | 0

Answered
(i) x-and-y scales defined as "log", or (ii) calculate the log of variables, or (iii) loglog
% Method 1 figure plot(1:10, 1:10) ax = gca; % put this after plot call and use as below set(ax,'XScale', 'log', 'YScale',...

3 years ago | 0

| accepted

Load more