forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Search found 104 matches
forums.silverfrost.com Forum Index
Author Message
  Topic: Find values satsfying condition in array
arctica

Replies: 5
Views: 865

PostForum: General   Posted: Thu Jan 18, 2024 3:24 pm   Subject:
Many thanks for the suggestion and syntax example.
  Topic: Find values satsfying condition in array
arctica

Replies: 5
Views: 865

PostForum: General   Posted: Wed Jan 17, 2024 4:22 pm   Subject:
This will work, but cannot figure out how the same can be done via findloc:


program FindValuesGreaterThan2
implicit none
integer, parameter :: n = 10
real :: testArray ...
  Topic: Find values satsfying condition in array
arctica

Replies: 5
Views: 865

PostForum: General   Posted: Wed Jan 17, 2024 2:55 pm   Subject: Find values satsfying condition in array
Hello

Is there a way to find the indices in array where a condition is satisfied and then extract those values. The equivalent in Matlab/Scilab:

values = x(find(x > 4.7)) where x is an array ...
  Topic: Intersection of two curves
arctica

Replies: 9
Views: 1615

PostForum: General   Posted: Thu Jan 11, 2024 1:34 pm   Subject:
Hi Kenneth

Managed to get the plot working, just followed you original syntax:


iw = winio@('%mn[Exit]&','Exit')
iw = winio@('%mn[Export]&',export_cb ...
  Topic: Intersection of two curves
arctica

Replies: 9
Views: 1615

PostForum: General   Posted: Wed Jan 10, 2024 8:45 am   Subject:
Thanks for the suggestions Kenneth, the test code worked great.

Added the routines to my existing code and it works fine to compute the intersections, but having issues getting it plotting symbols ...
  Topic: Set tight axis limits
arctica

Replies: 4
Views: 1309

PostForum: ClearWin+   Posted: Wed Jan 10, 2024 8:25 am   Subject:
Thanks Kenneth! That worked fine.

Lester
  Topic: Set tight axis limits
arctica

Replies: 4
Views: 1309

PostForum: ClearWin+   Posted: Mon Jan 08, 2024 5:49 pm   Subject:
Here is the code


program Riemann_Zeta

use clrwin
integer :: iw

integer, parameter :: k = 10001
integer, allocatable :: t(:)
real, allocatabl ...
  Topic: Set tight axis limits
arctica

Replies: 4
Views: 1309

PostForum: ClearWin+   Posted: Mon Jan 08, 2024 3:42 pm   Subject: Set tight axis limits
Hello

Quick query. How do you set tight limits on an axis? Currently a plot goes from 0 to 105 on x-axis but I need it to be tight in the range 0-100. An example code would be useful.

Thanks

...
  Topic: Intersection of two curves
arctica

Replies: 9
Views: 1615

PostForum: General   Posted: Mon Jan 08, 2024 2:48 pm   Subject:
Just for fun this is what chatGPT came up with, posted as normal text as it kept getting truncated via [code]!

program FindCurveIntersections
implicit none
integer, parameter :: num_point ...
  Topic: Basic query about plotting
arctica

Replies: 10
Views: 1934

PostForum: General   Posted: Sun Dec 31, 2023 8:51 am   Subject:
Hi Kenneth,

Thanks for explaining the correct syntax for image export, makes it a lot easier to understand to see example code.

Lester
  Topic: Plate flexure code
arctica

Replies: 4
Views: 993

PostForum: General   Posted: Sun Dec 31, 2023 8:43 am   Subject:
Hello

I would be interested to see the structure of your plate flexure code as it will have applications within geology too! As a structural geologist we often apply plate flexure studies to crusta ...
  Topic: Basic query about plotting
arctica

Replies: 10
Views: 1934

PostForum: General   Posted: Sat Dec 30, 2023 9:46 am   Subject:
Hi Kenneth,

Thanks for the pointer, not sure how to get the syntax working. Just adding export_image@(Riemann1.jpg') just makes a blank image file?


iw = winio@('%mn[Exit]&',' ...
  Topic: Intersection of two curves
arctica

Replies: 9
Views: 1615

PostForum: General   Posted: Thu Dec 28, 2023 1:13 pm   Subject:
Hi John

Thanks for the ideas to test. Yes the curves are defined as arrays of x,y values and not functions.

I would think it logical to look for a small region to test an approximation, where a ...
  Topic: Intersection of two curves
arctica

Replies: 9
Views: 1615

PostForum: General   Posted: Thu Dec 28, 2023 9:35 am   Subject: Intersection of two curves
Hello,

Is there a way to calculate the intersections of two different curves given the data of two arrays, (x1, y1) and (x2, y2)?

Thanks
Lester
  Topic: Basic query about plotting
arctica

Replies: 10
Views: 1934

PostForum: General   Posted: Wed Dec 27, 2023 4:23 pm   Subject:
Many thanks Kenneth! That worked fine with the Clearwin usage. Will have to study that more.

Haven't had a thorough look yet, but can the plot be easily saved or exported to an image file?

Thank ...
 
Page 1 of 7 Goto page 1, 2, 3, 4, 5, 6, 7  Next
All times are GMT + 1 Hour
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group