Nathaniel H Werner
Followers: 0 Following: 0
Programming Languages:
MATLAB
MATLAB
Feeds
질문
Symbolic expressions with pi are displaying as decimals
I am trying to write a livescript that has pi show up a lot in the expressions. Here is a sample of my script. clc, clear, clo...
10개월 전 | 답변 수: 2 | 0
2
답변질문
Trouble with MuPad when evaluating symfun at a symbolic variable instead of a number in MATLAB
I created a symbolic function in MATLAB R2021b using this script with the goal of solving an ODE. syms phi(x) lambda L assume(...
거의 2년 전 | 답변 수: 1 | 0
1
답변질문
Nx4 Table of randi(1,M) so that the columns are not equal and each number only repeats P times
I need to create an N x 4 table array that where each column contains random integers between 1 and M. However the number of tim...
거의 2년 전 | 답변 수: 1 | 0
1
답변질문
Count number of unique symbols in an expression
I'm trying to develop an algorithm that can count how many times each of the syms in a list of parameters (called dimensions sho...
거의 2년 전 | 답변 수: 1 | 0
1
답변질문
How to use Camera Toolbar in a MatLab Live Script
Hello, I have a 3D plot made in a live script that I am getting ready to present to my students. In a normal script, I can make...
거의 3년 전 | 답변 수: 1 | 0
1
답변답변 있음
Remove specific field and "push up" its contents without losing the data.
Looks like something as simple as this works. A = struct2cell(Data); B = A{1}; C = B.Data.s; Data.c1 = C;
Remove specific field and "push up" its contents without losing the data.
Looks like something as simple as this works. A = struct2cell(Data); B = A{1}; C = B.Data.s; Data.c1 = C;
거의 3년 전 | 0
| 수락됨
질문
Remove specific field and "push up" its contents without losing the data.
I am loading a structure into MatLab and I would like to remove a field without losing the contents of that field. I'll explain ...
거의 3년 전 | 답변 수: 2 | 0
2
답변질문
Trouble using atan2 for coordinate transform, maybe recommend other tools.
I am trying to use atan2 on a 2D plane (X,Z) centered at (0,0) to define an angle phi. I know that using atan(Z./X) or atan2(Z,...
대략 3년 전 | 답변 수: 1 | 0
1
답변질문
Array size from Stateflow is different after simulation is complete after sending to workspace.
I'm generating a signal that is output from a Stateflow chart in Simulink R2016a. The size of the variable that is ultimately ou...
3년 초과 전 | 답변 수: 0 | 0
0
답변질문
Where to find Variable Size for output of Matlab function in Simulink
I am working with a Simulink code with a Stateflow chart in R2016a. My code communicates with a real time machine (Speedgoat) th...
3년 초과 전 | 답변 수: 1 | 0
1
답변질문
Reset timer to zero after leaving a state with a transition action
I am working on a Stateflow block. In it I have a state A. In the block, the state A can transition to B, back to A, from A t...
3년 초과 전 | 답변 수: 1 | 0
1
답변질문
Multiple X-Axes with separate scales and xlabels
Hello, I am trying to make a figure with two x-axes, and I want each axis to have a separate scale because they represent dif...
4년 초과 전 | 답변 수: 1 | 0
1
답변질문
Make white portions of slice of flow data transparent
I have created this figure (one of five) with the code (I have edited it for the question) below. I would like to make the wh...
4년 초과 전 | 답변 수: 1 | 0
1
답변질문
Change portion of text color in matlab label
I know that it is possible to change the color of a label in a figure in matlab from the default black to another color. I have ...
거의 5년 전 | 답변 수: 2 | 0
2
답변질문
Shade the region between a curve and the vertical axis
I have several velocity profiles in a figure, and I've been trying to play around with the area function to try and shade the re...
거의 5년 전 | 답변 수: 1 | 0
1
답변질문
Error using latex in colorbar title
Hello, I'm trying to make my color bar have a title, and I want to give it a math equation. Here is my code. cbh = findall(fh,...
거의 5년 전 | 답변 수: 1 | 0
1
답변질문
Put block behind colorbar
I have several contour plots on a cylinder that I made in MatLab. In some of them the black text from the colorbar is obstructed...
대략 5년 전 | 답변 수: 1 | 0
1
답변답변 있음
integral of contour plot
You can calculate the circulation using the bounds of a contour in 2018b. I completed this on cylindrical slices for my purpose...
integral of contour plot
You can calculate the circulation using the bounds of a contour in 2018b. I completed this on cylindrical slices for my purpose...
5년 초과 전 | 0
질문
Draw contourslice on patch surface
I am trying to get the XData and YData on a contourslice in matlab. I want this contourline to be on a patch that I have already...
5년 초과 전 | 답변 수: 1 | 0
1
답변질문
Plotting semilogy on two axes covering the same range, one side is log the other is not.
I'm trying to make a figure with two vertical log axes, and the horizontal x axis still be linear. I need to compare plots who c...
5년 초과 전 | 답변 수: 1 | 0
1
답변질문
Problem solving system of nonlinear equations with fsolve trying to change inputs
I am trying to solve a system of six nonlinear equations using fsolve (see below). There are additional parameters in my equatio...
5년 초과 전 | 답변 수: 0 | 0
0
답변질문
How to grab field data from the intersection of two slices
Hi, I have velocity field data in a NxMxP array, and I would like to find the values of the data at the intersection of two sur...
거의 6년 전 | 답변 수: 0 | 0
0
답변질문
Getting 'Argument must contain string error' error when saving, it's always worked before
Here is a short piece of my code. queue = '\Q0'; Case = '\02'; path = 'D:\Data'; folder4Mfiles = strcat(path,'\Raw',queue,Ca...
거의 6년 전 | 답변 수: 1 | 0
1
답변질문
interp and interp3 give different size arrays
If I start with the following two arrays x0 = 1:100; y0 = 1:80; z0 = 1:100; and I make a mesh grid with them [...
대략 6년 전 | 답변 수: 1 | 0
1
답변질문
Draw contour data on slice with a patch
I'm having trouble making a contour of my volume data on a plane with specified coordinates designed for patch. I have 5 slic...
대략 6년 전 | 답변 수: 0 | 0
0
답변질문
Replace portion of array with another array of different size
I have this grid A = 0:0.01:1; And I want to refine the grid but only in a small part where some interesting things happ...
대략 6년 전 | 답변 수: 1 | 0