Respondida
Did I draw this circuit correctly ?
The z^-2 should be z^-1 (all delay elements are unit delays), and the 0.48 should be -0.48 (coefficients from the denominator ar...

más de 3 años hace | 0

Respondida
Is there a one line implementation for this?
t = sym('t',[1,10]); A = {}; A {1,1} = sin(t); A {1,2} = cos(t); A {2,1} = tan(t); A {2,2} = t; result = {}; % For the be...

más de 3 años hace | 1

Respondida
Output, input, function
You have to pass mixedsig to the fastica function as an input argument, e.g., from within demosig: function [sig,mixedsig]=demo...

más de 3 años hace | 0

| aceptada

Respondida
Values of selected item in list box moved into a struct
The code above creates and initializes a couple of components (a uilistbox and a uitab). Those components are stored in the app ...

más de 3 años hace | 0

| aceptada

Respondida
Cant use more than one class, strcmp issue?
This error happens because the inputs to strcmp are incompatible sizes. Example 1: both inputs the same size (works): a = {'ba...

más de 3 años hace | 0

Respondida
last xtick label is not showing up!
I think it's because surf doesn't render the last row or column of the matrix (so that the surface doesn't actually go all the w...

más de 3 años hace | 0

| aceptada

Respondida
Axis label getting cutoff in plot with multiple axis
You can set the Position of both axes at the end: clear; clc; clf; close all x1 = [1 2 3 4 5]; x2 = [2 4 8 10 12]; y1 = [3...

más de 3 años hace | 1

| aceptada

Respondida
List box Value Changed
NEXTButton_2 has no Callback (i.e., no ButtonPushedFcn) assigned to it.

más de 3 años hace | 0

| aceptada

Respondida
I want find mean of out.txt file such that this file is replaces at every iteration and hence values changed.
Let's say you have 100 iterations, and data is a vector containing the numbers written to file on each iteration. Then to calcul...

más de 3 años hace | 0

Respondida
Using a quiver function draw a plot
u = @(x,y) y ./ (x.^2 + y.^2); % use ./ instead of / v = @(x,y) -x ./ (x.^2 + y.^2); [x,y] = meshgrid(-1:1, -1:1); quiver...

más de 3 años hace | 0

| aceptada

Respondida
Plot matrix numerical results as image or table
If I understand correctly, maybe use a uitable or two. z = magic(4); surf(z); set(gca(),'Position',[0.05 0.1 0.4 0.8]); t = ...

más de 3 años hace | 0

| aceptada

Respondida
How can I change the size of a circle patch?
In the function y_update there is a mistake: you have cos when it should be sin. (This makes a line since x == y, rather than a ...

más de 3 años hace | 1

| aceptada

Respondida
i have (y) with size of 784*1000 and i mapped this y to get gex, gin , but the result shown only 1 dimension and i want that mapping for the two dimension (784*1000),
Initialize gex and gin to be matrices the same size as y. Then loop over all elements of y: gex = zeros(size(y)); gin = zeros...

más de 3 años hace | 0

| aceptada

Respondida
Why am I getting a error 'Dimensions of arrays being concatenated are not consistent'
This line has only 11 elements: 6*Le(i)*E*Izz/Le(i)^3, 0, 0, 0, 4*Le(i)^2*E*Izz/Le(i)^3, 0, -6*Le(i)*E*Izz/Le(i)^3, 0, 0, 0, 2*...

más de 3 años hace | 0

Respondida
GENERATE CONDITIONS BETWEEN TWO ARRAYS AND RESULT IN A VALUE
Something like this? load('AA.mat') load('BB.mat') disp([AA BB]) % check the data AABB = zeros(size(AA)); AABB(AA >= 0 & ...

más de 3 años hace | 0

| aceptada

Respondida
How do I delete the first X number of rows in a matrix for each participant, where each participant's ID number is specified in one of the columns?
Here is one way: data = [ ... 1 2 5 3; ... 1 4 5 2; ... 1 5 2 3; ... 1 5 2 4; ... 2 6 7 9; ... 2 ...

más de 3 años hace | 0

| aceptada

Respondida
Error gui_mainfcn(gui_State, varargin{:});
The GUI opens ok, but the error I get when clicking the plot button is: Reference to non-existent field 'edInterval'. Error in...

más de 3 años hace | 1

| aceptada

Respondida
2D Plot changing in a for loop - Want to plot in 3D
Something like this? N = 512; % Number of Fourier modes dt = .001; % Time step tfinal = 10; % Final time M = round(tfinal./d...

más de 3 años hace | 0

Respondida
Smoothing 3D Matrix
x=0:21; y=0:17; [x,y]=meshgrid(x,y); z=[-5 -5 0 0 0 0 0 0 0 -5 -5 -5 -5 -5 -5 -5 -5 -5 -5 -5 -5;0 0 5 0 1 0 2 0 0 1 0 -5 -5 -...

más de 3 años hace | 0

| aceptada

Respondida
Create a loop that add data from different datasets into a plot
Maybe something along these lines will get you started: datapath = '.'; files = dir(fullfile(datapath,'*.xlsx')); figure(...

más de 3 años hace | 0

| aceptada

Respondida
A problem with inputting a function from the user
If you run this line on its own: Z0 =@(t) input ('Inter the first bais z0 in terms of t : '); you will notice that no user-inp...

más de 3 años hace | 2

| aceptada

Respondida
How do I get sliders to change the background color/ RGB values of axes in a GUI?
"I feel I may need to do something with the slider callbacks. I am not sure what that is or how to do it however." According to...

más de 3 años hace | 0

| aceptada

Respondida
Write multiple function output in one variable
function ind = myfun(N,k) [temp{1:numel(N)}] = ind2sub(N,k); ind = [temp{:}]; end

más de 3 años hace | 0

| aceptada

Respondida
Suggest an Alternate for Nonzero (nnz) built-in function
"I keep filling binary data row by row in a sequential manner." If you are going row-by-row, one row at a time, keep track of w...

más de 3 años hace | 1

| aceptada

Respondida
How to make subplots from following code?
Remove the calls to clf, which clear the figure. load('XZP.mat') figure; subplot(121); surf(squeeze(X),squeeze(Z),squeeze(V...

más de 3 años hace | 0

| aceptada

Respondida
Plotting vectors making chart
Maybe something like this? M = randn(100,5); % some random data for demo N = M(:,3); idx = find(N > 1.5); plot(idx, N(id...

más de 3 años hace | 0

| aceptada

Respondida
Image and two bubblecharts in one plot
copyobj copies graphics object(s) and their descendants, so when you call copyobj after creating the image, you get a copy of th...

más de 3 años hace | 0

| aceptada

Respondida
I need to create a Table. How do I create the output of the table values of a function?
theta = 0:15:90; m = 55:10:75; uitable( ... 'ColumnName',m, ... 'RowName',theta, ... 'Data',m+sind(theta).');...

más de 3 años hace | 1

| aceptada

Respondida
Editing text file with Matlab.Sort with an ascending order.
% read the file: fid = fopen('velocity-data-empty-domain-urban-configuration.txt'); data = fread(fid,'*char').'; fclose(fid);...

más de 3 años hace | 1

| aceptada

Respondida
title subplots within a for loop
How about if you try title(ll + "(m)")

más de 3 años hace | 0

| aceptada

Cargar más